aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-05-31 17:58:46 -0700
committerGitHub <noreply@github.com>2017-05-31 17:58:46 -0700
commit18f9d17a6b2ff14deba779461bc9aea9c3c4cc98 (patch)
tree037746231447ac1148ca264686ff07804d9e10ed /scripts
parentb8a2aa738207fae6f5716eaba237669a7b4ec280 (diff)
parentdc43c4271b85a2cc74e0847113af4bbf64140163 (diff)
downloadvcpkg-18f9d17a6b2ff14deba779461bc9aea9c3c4cc98.tar.gz
vcpkg-18f9d17a6b2ff14deba779461bc9aea9c3c4cc98.zip
Merge pull request #1188 from bagong/acquire_add
Correct path bison/flex add ruby 2.4.1 and gperf 3.0.1
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmake/vcpkg_find_acquire_program.cmake36
1 files changed, 24 insertions, 12 deletions
diff --git a/scripts/cmake/vcpkg_find_acquire_program.cmake b/scripts/cmake/vcpkg_find_acquire_program.cmake
index e7e33c692..03216058c 100644
--- a/scripts/cmake/vcpkg_find_acquire_program.cmake
+++ b/scripts/cmake/vcpkg_find_acquire_program.cmake
@@ -70,7 +70,7 @@ function(vcpkg_find_acquire_program VAR)
set(ARCHIVE "python-3.5.3-embed-win32.zip")
set(HASH c8cfdc09d052dc27e4380e8e4bf0d32a4c0def7e03896c1fa6cabc26dde78bb74dbb04e3673cc36e3e307d65a1ef284d69174f0cc80008c83bc6178f192ac5cf)
elseif(VAR MATCHES "PYTHON2")
- find_program(PYTHON2 NAMES python2 python PATHS C:/python27 ENV PYTHON)
+ find_program(PYTHON2 NAMES python2 python PATHS C:/python27 c:/Python27amd64 ENV PYTHON)
if(NOT PYTHON2 MATCHES "NOTFOUND")
execute_process(
COMMAND ${PYTHON2} --version
@@ -90,6 +90,12 @@ function(vcpkg_find_acquire_program VAR)
" https://www.python.org/ftp/python/2.7.13/python-2.7.13.msi\n"
)
endif()
+ elseif(VAR MATCHES "RUBY")
+ set(PROGNAME "ruby")
+ set(PATHS ${DOWNLOADS}/tools/ruby/rubyinstaller-2.4.1-1-x86/bin)
+ set(URL https://github.com/oneclick/rubyinstaller2/releases/download/2.4.1-1/rubyinstaller-2.4.1-1-x86.7z)
+ set(ARCHIVE rubyinstaller-2.4.1-1-x86.7z)
+ set(HASH b51112e9b58cfcbe8cec0607e8a16fff6a943d9b4e31b2a7fbf5df5f83f050bf0a4812d3dd6000ff21a3d5fd219cd0a309c58ac1c1db950a9b0072405e4b70f5)
elseif(VAR MATCHES "JOM")
set(PROGNAME jom)
set(SUBDIR "jom-1.1.2")
@@ -118,18 +124,24 @@ function(vcpkg_find_acquire_program VAR)
set(URL "https://github.com/mesonbuild/meson/archive/0.40.1.zip")
set(ARCHIVE "meson-0.40.1.zip")
set(HASH 4c1d07f32d527859f762c34de74d31d569573fc833335ab9652ed38d1f9e64b49869e826527c28a6a07cb8e594fd5c647b34aa95e626236a2707f75df0a2d435)
- elseif(VAR MATCHES "FLEX")
- set(PROGNAME win_flex)
- set(PATHS ${DOWNLOADS}/tools/winflexbison)
- set(URL "https://sourceforge.net/projects/winflexbison/files/win_flex_bison-2.5.9.zip/download")
- set(ARCHIVE "win_flex_bison-2.5.9.zip")
- set(HASH 9580f0e46893670a011645947c1becda69909a41a38bb4197fe33bd1ab7719da6b80e1be316f269e1a4759286870d49a9b07ef83afc4bac33232bd348e0bc814)
+ elseif(VAR MATCHES "FLEX")
+ set(PROGNAME win_flex)
+ set(PATHS ${DOWNLOADS}/tools/win_flex)
+ set(URL "https://sourceforge.net/projects/winflexbison/files/win_flex_bison-2.5.9.zip/download")
+ set(ARCHIVE "win_flex_bison-2.5.9.zip")
+ set(HASH 9580f0e46893670a011645947c1becda69909a41a38bb4197fe33bd1ab7719da6b80e1be316f269e1a4759286870d49a9b07ef83afc4bac33232bd348e0bc814)
elseif(VAR MATCHES "BISON")
- set(PROGNAME win_bison)
- set(PATHS ${DOWNLOADS}/tools/winflexbison)
- set(URL "https://sourceforge.net/projects/winflexbison/files/win_flex_bison-2.5.9.zip/download")
- set(ARCHIVE "win_flex_bison-2.5.9.zip")
- set(HASH 9580f0e46893670a011645947c1becda69909a41a38bb4197fe33bd1ab7719da6b80e1be316f269e1a4759286870d49a9b07ef83afc4bac33232bd348e0bc814)
+ set(PROGNAME win_bison)
+ set(PATHS ${DOWNLOADS}/tools/win_bison)
+ set(URL "https://sourceforge.net/projects/winflexbison/files/win_flex_bison-2.5.9.zip/download")
+ set(ARCHIVE "win_flex_bison-2.5.9.zip")
+ set(HASH 9580f0e46893670a011645947c1becda69909a41a38bb4197fe33bd1ab7719da6b80e1be316f269e1a4759286870d49a9b07ef83afc4bac33232bd348e0bc814)
+ elseif(VAR MATCHES "GPERF")
+ set(PROGNAME gperf)
+ set(PATHS ${DOWNLOADS}/tools/gperf/bin)
+ set(URL "https://sourceforge.net/projects/gnuwin32/files/gperf/3.0.1/gperf-3.0.1-bin.zip/download")
+ set(ARCHIVE "gperf-3.0.1-bin.zip")
+ set(HASH 3f2d3418304390ecd729b85f65240a9e4d204b218345f82ea466ca3d7467789f43d0d2129fcffc18eaad3513f49963e79775b10cc223979540fa2e502fe7d4d9)
else()
message(FATAL "unknown tool ${VAR} -- unable to acquire.")
endif()