forked from mia/Aegisub
Add ICU to the libraries downloaded by the dependencies fetcher
This commit is contained in:
parent
be930e68ef
commit
855902edb8
2 changed files with 9 additions and 4 deletions
|
@ -108,9 +108,6 @@ type TarballProject() =
|
|||
with | :? IO.IOException -> true
|
||||
|
||||
let update directory (project : ITaskItem) version =
|
||||
let dirname url =
|
||||
Uri(url).Segments.Last().Replace(".tar.gz", "")
|
||||
|
||||
try IO.Directory.Delete(directory, true) with | :? IO.IOException -> ()
|
||||
|
||||
this.Log.LogMessage ("Downloading {0} {1} from {2}", project.ItemSpec, version, project.GetMetadata "Url")
|
||||
|
@ -121,7 +118,9 @@ type TarballProject() =
|
|||
use tarArchive = ICSharpCode.SharpZipLib.Tar.TarArchive.CreateInputTarArchive tarStream
|
||||
|
||||
sprintf @"%s\.." directory |> tarArchive.ExtractContents
|
||||
IO.Directory.Move(project.GetMetadata "Url" |> dirname |> sprintf @"%s\..\%s" directory, directory)
|
||||
let dirname = project.GetMetadata "DirName"
|
||||
if not <| String.IsNullOrWhiteSpace dirname
|
||||
then IO.Directory.Move(dirname |> sprintf @"%s\..\%s" directory, directory)
|
||||
|
||||
IO.File.WriteAllText(sprintf @"%s\version.aegisub" directory, version)
|
||||
|
||||
|
|
|
@ -47,10 +47,16 @@ Aegisub Project http://www.aegisub.org/
|
|||
<TarballProject Include="fftw">
|
||||
<Version>3.3.2</Version>
|
||||
<Url>http://www.fftw.org/fftw-3.3.2.tar.gz</Url>
|
||||
<DirName>fftw-3.3.2</DirName>
|
||||
</TarballProject>
|
||||
<TarballProject Include="boost">
|
||||
<Version>1.52.0</Version>
|
||||
<Url>http://downloads.sourceforge.net/project/boost/boost/1.52.0/boost_1_52_0.tar.gz</Url>
|
||||
<DirName>boost_1_52_0</DirName>
|
||||
</TarballProject>
|
||||
<TarballProject Include="icu">
|
||||
<Version>50.1.1</Version>
|
||||
<Url>http://download.icu-project.org/files/icu4c/50.1.1/icu4c-50_1_1-src.tgz</Url>
|
||||
</TarballProject>
|
||||
</ItemGroup>
|
||||
|
||||
|
|
Loading…
Reference in a new issue