Add ICU to the libraries downloaded by the dependencies fetcher

This commit is contained in:
Thomas Goyne 2013-01-28 08:54:18 -08:00
parent be930e68ef
commit 855902edb8
2 changed files with 9 additions and 4 deletions

View file

@ -108,9 +108,6 @@ type TarballProject() =
with | :? IO.IOException -> true with | :? IO.IOException -> true
let update directory (project : ITaskItem) version = 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 -> () try IO.Directory.Delete(directory, true) with | :? IO.IOException -> ()
this.Log.LogMessage ("Downloading {0} {1} from {2}", project.ItemSpec, version, project.GetMetadata "Url") 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 use tarArchive = ICSharpCode.SharpZipLib.Tar.TarArchive.CreateInputTarArchive tarStream
sprintf @"%s\.." directory |> tarArchive.ExtractContents 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) IO.File.WriteAllText(sprintf @"%s\version.aegisub" directory, version)

View file

@ -47,10 +47,16 @@ Aegisub Project http://www.aegisub.org/
<TarballProject Include="fftw"> <TarballProject Include="fftw">
<Version>3.3.2</Version> <Version>3.3.2</Version>
<Url>http://www.fftw.org/fftw-3.3.2.tar.gz</Url> <Url>http://www.fftw.org/fftw-3.3.2.tar.gz</Url>
<DirName>fftw-3.3.2</DirName>
</TarballProject> </TarballProject>
<TarballProject Include="boost"> <TarballProject Include="boost">
<Version>1.52.0</Version> <Version>1.52.0</Version>
<Url>http://downloads.sourceforge.net/project/boost/boost/1.52.0/boost_1_52_0.tar.gz</Url> <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> </TarballProject>
</ItemGroup> </ItemGroup>