aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorRyan <ryan__mckenzie@hotmail.com>2021-08-30 10:28:20 -0700
committerGitHub <noreply@github.com>2021-08-30 10:28:20 -0700
commit29916bbee5c3c60e1af197c5bcb747877ea4921a (patch)
treebd54a0553a6035bfde00360a5ae6925394e0da9f /ports
parentfebda9603402eb4a8ceb70c2b042db9c8a74c3d1 (diff)
downloadvcpkg-29916bbee5c3c60e1af197c5bcb747877ea4921a.tar.gz
vcpkg-29916bbee5c3c60e1af197c5bcb747877ea4921a.zip
[ctre] Update to 3.4.1 (#19614)
* update to 3.4.1 * update baseline
Diffstat (limited to 'ports')
-rw-r--r--ports/ctre/CONTROL3
-rw-r--r--ports/ctre/portfile.cmake21
-rw-r--r--ports/ctre/vcpkg.json16
3 files changed, 30 insertions, 10 deletions
diff --git a/ports/ctre/CONTROL b/ports/ctre/CONTROL
deleted file mode 100644
index 9fdadd3d8..000000000
--- a/ports/ctre/CONTROL
+++ /dev/null
@@ -1,3 +0,0 @@
-Source: ctre
-Version: 2.10
-Description: A Compile time PCRE (almost) compatible regular expression matcher
diff --git a/ports/ctre/portfile.cmake b/ports/ctre/portfile.cmake
index d88d21b1d..112ad13d5 100644
--- a/ports/ctre/portfile.cmake
+++ b/ports/ctre/portfile.cmake
@@ -1,13 +1,20 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO hanickadot/compile-time-regular-expressions
- REF 4fea9f2745129b3542382646d032787713667448 # v2.10
- SHA512 a6137c6c19e8b535b4794c45a988206df71fe4b91378b2bc48ab265c8e850c20b42e6556a2665fdd5e542d8d7d5109eb0421a1f47b035c6d60d0296c36bdfeb5
- HEAD_REF master
+ REF v3.4.1
+ SHA512 a7b44df9c30fb46373e34d8b98fe3ef3fd0486d33ba4d7bbf58a29eef05b22b8c903bf79ae539008a564f46e0bdee3e7700819d8d072c00537f8d175af59be3e
+ HEAD_REF main
)
-# Install header files
-file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR})
+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 "share/cmake/ctre")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
-# Handle copyright
-file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/ctre RENAME copyright)
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/ctre/vcpkg.json b/ports/ctre/vcpkg.json
new file mode 100644
index 000000000..724d2c9b1
--- /dev/null
+++ b/ports/ctre/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "ctre",
+ "version-semver": "3.4.1",
+ "description": "A Compile time PCRE (almost) compatible regular expression matcher",
+ "homepage": "https://github.com/hanickadot/compile-time-regular-expressions",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}