forked from mia/Aegisub
Add boost to the automatically fetched dependencies
This commit is contained in:
parent
9344493558
commit
2c4908caf5
2 changed files with 8 additions and 1 deletions
|
@ -109,6 +109,9 @@ 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")
|
||||
|
@ -119,7 +122,7 @@ type TarballProject() =
|
|||
use tarArchive = ICSharpCode.SharpZipLib.Tar.TarArchive.CreateInputTarArchive tarStream
|
||||
|
||||
sprintf @"%s\.." directory |> tarArchive.ExtractContents
|
||||
IO.Directory.Move(sprintf @"%s\..\%s-%s" directory project.ItemSpec version, directory)
|
||||
IO.Directory.Move(project.GetMetadata "Url" |> dirname |> sprintf @"%s\..\%s" directory, directory)
|
||||
|
||||
IO.File.WriteAllText(sprintf @"%s\version.aegisub" directory, version)
|
||||
|
||||
|
|
|
@ -54,6 +54,10 @@ Aegisub Project http://www.aegisub.org/
|
|||
<Version>3.3.2</Version>
|
||||
<Url>http://www.fftw.org/fftw-3.3.2.tar.gz</Url>
|
||||
</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>
|
||||
</TarballProject>
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="$(MSBuildThisFileDirectory)\..\aegisub.props" />
|
||||
|
|
Loading…
Reference in a new issue