aboutsummaryrefslogtreecommitdiff
path: root/scripts/boost
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2020-02-04 15:50:10 -0800
committerRobert Schumacher <roschuma@microsoft.com>2020-02-04 15:50:10 -0800
commit6f66ad14fe9da11d4bf50f5b25b4da86ed971c53 (patch)
tree0f5dbcd1719cd6a8e486c4058cfefd607d58aa6c /scripts/boost
parentd502f061bb3ee0258d6453acbf258b9e5d93d564 (diff)
parentd808514c9df44bb97d6eccff952bfe8ec4e156f7 (diff)
downloadvcpkg-6f66ad14fe9da11d4bf50f5b25b4da86ed971c53.tar.gz
vcpkg-6f66ad14fe9da11d4bf50f5b25b4da86ed971c53.zip
Merge remote-tracking branch 'origin/master' into HEAD
Diffstat (limited to 'scripts/boost')
-rw-r--r--scripts/boost/generate-ports.ps172
-rw-r--r--scripts/boost/post-source-stubs/iostreams.cmake2
-rw-r--r--scripts/boost/post-source-stubs/python.cmake2
3 files changed, 40 insertions, 36 deletions
diff --git a/scripts/boost/generate-ports.ps1 b/scripts/boost/generate-ports.ps1
index 5f5897718..200b8376e 100644
--- a/scripts/boost/generate-ports.ps1
+++ b/scripts/boost/generate-ports.ps1
@@ -1,7 +1,7 @@
[CmdletBinding()]
param (
$libraries = @(),
- $version = "1.71.0"
+ $version = "1.72.0"
)
$scriptsDir = split-path -parent $MyInvocation.MyCommand.Definition
@@ -37,6 +37,7 @@ function Generate()
{
param (
[string]$Name,
+ [string]$PortName,
[string]$Hash,
[bool]$NeedsBuild,
$Depends = @()
@@ -44,29 +45,18 @@ function Generate()
$controlDeps = ($Depends | sort) -join ", "
- $sanitizedName = $name -replace "_","-"
+ $versionSuffix = ""
- $versionsuffix = ""
- if ($Name -eq "asio" -or $Name -eq "mpi")
- {
- $versionsuffix = "-1"
- }
-
- if ($Name -eq "python" -or $Name -eq "test")
- {
- $versionsuffix = "-2"
- }
-
- mkdir "$portsDir/boost-$sanitizedName" -erroraction SilentlyContinue | out-null
+ mkdir "$portsDir/boost-$PortName" -erroraction SilentlyContinue | out-null
$controlLines = @(
"# Automatically generated by boost-vcpkg-helpers/generate-ports.ps1"
- "Source: boost-$sanitizedName"
- "Version: $version$versionsuffix"
+ "Source: boost-$PortName"
+ "Version: $version$versionSuffix"
"Build-Depends: $controlDeps"
- "Homepage: https://github.com/boostorg/$name"
+ "Homepage: https://github.com/boostorg/$Name"
"Description: Boost $Name module"
)
- if ($Name -eq "locale")
+ if ($PortName -eq "locale")
{
$controlLines += @(
""
@@ -75,7 +65,7 @@ function Generate()
"Build-Depends: icu"
)
}
- if ($Name -eq "regex")
+ if ($PortName -eq "regex")
{
$controlLines += @(
""
@@ -84,13 +74,24 @@ function Generate()
"Build-Depends: icu"
)
}
- $controlLines | out-file -enc ascii "$portsDir/boost-$sanitizedName/CONTROL"
+ $controlLines | out-file -enc ascii "$portsDir/boost-$PortName/CONTROL"
$portfileLines = @(
"# Automatically generated by boost-vcpkg-helpers/generate-ports.ps1"
""
"include(vcpkg_common_functions)"
""
+ )
+
+ if ($PortName -eq "system")
+ {
+ $portfileLines += @(
+ "vcpkg_buildpath_length_warning(37)"
+ ""
+ )
+ }
+
+ $portfileLines += @(
"vcpkg_from_github("
" OUT_SOURCE_PATH SOURCE_PATH"
" REPO boostorg/$Name"
@@ -98,11 +99,11 @@ function Generate()
" SHA512 $Hash"
" HEAD_REF master"
)
- if ($Name -eq "asio")
+ if ($PortName -eq "asio")
{
$portfileLines += @(" PATCHES windows_alloca_header.patch")
}
- if ($Name -eq "iostreams")
+ if ($PortName -eq "iostreams")
{
$portfileLines += @(" PATCHES Removeseekpos.patch")
}
@@ -111,14 +112,14 @@ function Generate()
""
)
- if (Test-Path "$scriptsDir/post-source-stubs/$Name.cmake")
+ if (Test-Path "$scriptsDir/post-source-stubs/$PortName.cmake")
{
- $portfileLines += @(get-content "$scriptsDir/post-source-stubs/$Name.cmake")
+ $portfileLines += @(get-content "$scriptsDir/post-source-stubs/$PortName.cmake")
}
if ($NeedsBuild)
{
- if ($Name -eq "locale")
+ if ($PortName -eq "locale")
{
$portfileLines += @(
"if(`"icu`" IN_LIST FEATURES)"
@@ -139,7 +140,7 @@ function Generate()
")"
)
}
- elseif ($Name -eq "regex")
+ elseif ($PortName -eq "regex")
{
$portfileLines += @(
"if(`"icu`" IN_LIST FEATURES)"
@@ -152,7 +153,7 @@ function Generate()
"boost_modular_build(SOURCE_PATH `${SOURCE_PATH} REQUIREMENTS `"`${REQUIREMENTS}`")"
)
}
- elseif ($Name -eq "thread")
+ elseif ($PortName -eq "thread")
{
$portfileLines += @(
"include(`${CURRENT_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)"
@@ -164,7 +165,7 @@ function Generate()
")"
)
}
- elseif ($Name -eq "iostreams")
+ elseif ($PortName -eq "iostreams")
{
}
else
@@ -175,7 +176,7 @@ function Generate()
)
}
}
- if ($Name -ne "iostreams")
+ if ($PortName -ne "iostreams")
{
$portfileLines += @(
"include(`${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)"
@@ -183,12 +184,12 @@ function Generate()
)
}
- if (Test-Path "$scriptsDir/post-build-stubs/$Name.cmake")
+ if (Test-Path "$scriptsDir/post-build-stubs/$PortName.cmake")
{
- $portfileLines += @(get-content "$scriptsDir/post-build-stubs/$Name.cmake")
+ $portfileLines += @(get-content "$scriptsDir/post-build-stubs/$PortName.cmake")
}
- $portfileLines | out-file -enc ascii "$portsDir/boost-$sanitizedName/portfile.cmake"
+ $portfileLines | out-file -enc ascii "$portsDir/boost-$PortName/portfile.cmake"
}
if (!(Test-Path "$scriptsDir/boost"))
@@ -383,13 +384,16 @@ foreach ($library in $libraries)
$deps += @("mpi")
}
+ $portName = $library -replace "_","-"
+
Generate `
-Name $library `
+ -PortName $portName `
-Hash $hash `
-Depends $deps `
-NeedsBuild $needsBuild
- $libraries_in_boost_port += @(TransformReference $library)
+ $libraries_in_boost_port += @(TransformReference $portName)
}
finally
{
@@ -400,7 +404,7 @@ foreach ($library in $libraries)
if ($libraries_in_boost_port.length -gt 1) {
# Generate master boost control file which depends on each individual library
# mpi is excluded due to it having a dependency on msmpi
- $boostDependsList = @($libraries_in_boost_port | % { "boost-$_" -replace "_","-" } | ? { $_ -notmatch "boost-mpi" }) -join ", "
+ $boostDependsList = @($libraries_in_boost_port | % { "boost-$_" } | ? { $_ -notmatch "boost-mpi" }) -join ", "
@(
"# Automatically generated by boost-vcpkg-helpers/generate-ports.ps1"
diff --git a/scripts/boost/post-source-stubs/iostreams.cmake b/scripts/boost/post-source-stubs/iostreams.cmake
index 55841bb3f..df1479fb8 100644
--- a/scripts/boost/post-source-stubs/iostreams.cmake
+++ b/scripts/boost/post-source-stubs/iostreams.cmake
@@ -1,5 +1,5 @@
vcpkg_download_distfile(LICENSE
- URLS "https://raw.githubusercontent.com/boostorg/boost/boost-1.70.0/LICENSE_1_0.txt"
+ URLS "https://raw.githubusercontent.com/boostorg/boost/boost-1.72.0/LICENSE_1_0.txt"
FILENAME "boost_LICENSE_1_0.txt"
SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
)
diff --git a/scripts/boost/post-source-stubs/python.cmake b/scripts/boost/post-source-stubs/python.cmake
index 40b8e0a0b..5610c489d 100644
--- a/scripts/boost/post-source-stubs/python.cmake
+++ b/scripts/boost/post-source-stubs/python.cmake
@@ -1,5 +1,5 @@
# Find Python. Can't use find_package here, but we already know where everything is
-file(GLOB PYTHON_INCLUDE_PATH "${CURRENT_INSTALLED_DIR}/include/python[0-9.]*")
+file(GLOB PYTHON_INCLUDE_PATH "${CURRENT_INSTALLED_DIR}/include/python3.*")
set(PYTHONLIBS_RELEASE "${CURRENT_INSTALLED_DIR}/lib")
set(PYTHONLIBS_DEBUG "${CURRENT_INSTALLED_DIR}/debug/lib")
string(REGEX REPLACE ".*python([0-9\.]+)$" "\\1" PYTHON_VERSION "${PYTHON_INCLUDE_PATH}")