diff options
Diffstat (limited to 'vcpkg/ports/boost-regex')
| -rw-r--r-- | vcpkg/ports/boost-regex/compat.diff | 16 | ||||
| -rw-r--r-- | vcpkg/ports/boost-regex/features.cmake | 7 | ||||
| -rw-r--r-- | vcpkg/ports/boost-regex/portfile.cmake | 18 | ||||
| -rw-r--r-- | vcpkg/ports/boost-regex/vcpkg.json | 58 |
4 files changed, 99 insertions, 0 deletions
diff --git a/vcpkg/ports/boost-regex/compat.diff b/vcpkg/ports/boost-regex/compat.diff new file mode 100644 index 0000000..277de6a --- /dev/null +++ b/vcpkg/ports/boost-regex/compat.diff @@ -0,0 +1,16 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index ccd4223..a0f58a3 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -34,9 +34,9 @@ else() + endif() + + find_package(ICU COMPONENTS data i18n uc QUIET) +-#option(BOOST_REGEX_ENABLE_ICU "Boost.Regex: enable ICU support" ${ICU_FOUND}) ++option(BOOST_REGEX_ENABLE_ICU "Boost.Regex: enable ICU support" ${ICU_FOUND}) + +-if(ICU_FOUND) ++if(BOOST_REGEX_ENABLE_ICU) + + add_library(boost_regex_icu INTERFACE) + add_library(Boost::regex_icu ALIAS boost_regex_icu) diff --git a/vcpkg/ports/boost-regex/features.cmake b/vcpkg/ports/boost-regex/features.cmake new file mode 100644 index 0000000..8b356e5 --- /dev/null +++ b/vcpkg/ports/boost-regex/features.cmake @@ -0,0 +1,7 @@ +vcpkg_check_features(
+ OUT_FEATURE_OPTIONS
+ FEATURE_OPTIONS
+ FEATURES
+ "icu" BOOST_REGEX_ENABLE_ICU
+)
+set(Z_VCPKG_BOOST_FORCE_HEADER_ONLY ON)
\ No newline at end of file diff --git a/vcpkg/ports/boost-regex/portfile.cmake b/vcpkg/ports/boost-regex/portfile.cmake new file mode 100644 index 0000000..bbe21cb --- /dev/null +++ b/vcpkg/ports/boost-regex/portfile.cmake @@ -0,0 +1,18 @@ +# Automatically generated by scripts/boost/generate-ports.ps1 + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO boostorg/regex + REF boost-${VERSION} + SHA512 5319e20f93f6618f911366e05132d376b16f11a5c55f7f712d550d7c7eb5151f2c2fc9dde25fd1c8ac39aafc4852ed73292b287a1de847df00ff1a358fcd1983 + HEAD_REF master + PATCHES + compat.diff +) + +set(FEATURE_OPTIONS "") +include("${CMAKE_CURRENT_LIST_DIR}/features.cmake") +boost_configure_and_install( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS ${FEATURE_OPTIONS} +) diff --git a/vcpkg/ports/boost-regex/vcpkg.json b/vcpkg/ports/boost-regex/vcpkg.json new file mode 100644 index 0000000..c312051 --- /dev/null +++ b/vcpkg/ports/boost-regex/vcpkg.json @@ -0,0 +1,58 @@ +{ + "$comment": "Automatically generated by scripts/boost/generate-ports.ps1", + "name": "boost-regex", + "version": "1.89.0", + "description": "Boost regex module", + "homepage": "https://www.boost.org/libs/regex", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "boost-assert", + "version>=": "1.89.0" + }, + { + "name": "boost-cmake", + "version>=": "1.89.0" + }, + { + "name": "boost-concept-check", + "version>=": "1.89.0" + }, + { + "name": "boost-config", + "version>=": "1.89.0" + }, + { + "name": "boost-core", + "version>=": "1.89.0" + }, + { + "name": "boost-headers", + "version>=": "1.89.0" + }, + { + "name": "boost-predef", + "version>=": "1.89.0" + }, + { + "name": "boost-static-assert", + "version>=": "1.89.0" + }, + { + "name": "boost-throw-exception", + "version>=": "1.89.0" + }, + { + "name": "boost-type-traits", + "version>=": "1.89.0" + } + ], + "features": { + "icu": { + "description": "ICU backend for Boost.Regex", + "dependencies": [ + "icu" + ] + } + } +} |