aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ctre
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/ctre')
-rw-r--r--vcpkg/ports/ctre/portfile.cmake23
-rw-r--r--vcpkg/ports/ctre/vcpkg.json17
2 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/ctre/portfile.cmake b/vcpkg/ports/ctre/portfile.cmake
new file mode 100644
index 0000000..0229de2
--- /dev/null
+++ b/vcpkg/ports/ctre/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO hanickadot/compile-time-regular-expressions
+ REF "v${VERSION}"
+ SHA512 4bed66b8adbf1de4f73963370e8b210787ace2f50d956cac141f1353c6a4e0ed0dcd62eb61cf54ae3e64875752ffdc04b67985a25aa50a2a245bc9039ab39f46
+ HEAD_REF main
+)
+
+set(VCPKG_BUILD_TYPE release) # header-only port
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DCTRE_BUILD_TESTS=OFF
+ -DCTRE_BUILD_PACKAGE=OFF
+)
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/ctre")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/ctre/vcpkg.json b/vcpkg/ports/ctre/vcpkg.json
new file mode 100644
index 0000000..b3fbc45
--- /dev/null
+++ b/vcpkg/ports/ctre/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "ctre",
+ "version": "3.10.0",
+ "description": "A Compile time PCRE (almost) compatible regular expression matcher",
+ "homepage": "https://github.com/hanickadot/compile-time-regular-expressions",
+ "license": "Apache-2.0",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}