From 2c4908caf5d0f926f83dd94da3f7daeee75de73e Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 17 Nov 2012 09:39:31 -0800 Subject: [PATCH] Add boost to the automatically fetched dependencies --- aegisub/build/BuildTasks/DependencyFetchers.fs | 5 ++++- aegisub/build/deps/deps.vcxproj | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/aegisub/build/BuildTasks/DependencyFetchers.fs b/aegisub/build/BuildTasks/DependencyFetchers.fs index bffa73a01..7a70c71dc 100644 --- a/aegisub/build/BuildTasks/DependencyFetchers.fs +++ b/aegisub/build/BuildTasks/DependencyFetchers.fs @@ -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) diff --git a/aegisub/build/deps/deps.vcxproj b/aegisub/build/deps/deps.vcxproj index eea544d2f..d15bb0295 100644 --- a/aegisub/build/deps/deps.vcxproj +++ b/aegisub/build/deps/deps.vcxproj @@ -54,6 +54,10 @@ Aegisub Project http://www.aegisub.org/ 3.3.2 http://www.fftw.org/fftw-3.3.2.tar.gz + + 1.52.0 + http://downloads.sourceforge.net/project/boost/boost/1.52.0/boost_1_52_0.tar.gz +