aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/xproperty
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/xproperty
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/xproperty')
-rw-r--r--vcpkg/ports/xproperty/fix-target.patch13
-rw-r--r--vcpkg/ports/xproperty/portfile.cmake26
-rw-r--r--vcpkg/ports/xproperty/vcpkg.json16
3 files changed, 55 insertions, 0 deletions
diff --git a/vcpkg/ports/xproperty/fix-target.patch b/vcpkg/ports/xproperty/fix-target.patch
new file mode 100644
index 0000000..d3458db
--- /dev/null
+++ b/vcpkg/ports/xproperty/fix-target.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index accd038..2451bf0 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -7,7 +7,7 @@
+ ############################################################################
+
+ cmake_minimum_required(VERSION 3.20)
+-project(xproperty)
++project(xproperty CXX)
+
+ set(XPROPERTY_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
+
diff --git a/vcpkg/ports/xproperty/portfile.cmake b/vcpkg/ports/xproperty/portfile.cmake
new file mode 100644
index 0000000..bcddd07
--- /dev/null
+++ b/vcpkg/ports/xproperty/portfile.cmake
@@ -0,0 +1,26 @@
+# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO QuantStack/xproperty
+ REF ${VERSION}
+ SHA512 e070427d75e5f1b7edab67599c9e61eb375b68e683db864ec1758d331bb0fcf8d20051831f69a36db5a2e9efc6eb2822f62f8cc1ed563d728a534c1cbec40d77
+ HEAD_REF master
+ PATCHES
+ fix-target.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTS=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
+
+# Handle copyright
+configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
diff --git a/vcpkg/ports/xproperty/vcpkg.json b/vcpkg/ports/xproperty/vcpkg.json
new file mode 100644
index 0000000..21f20cb
--- /dev/null
+++ b/vcpkg/ports/xproperty/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "xproperty",
+ "version": "0.12.1",
+ "description": "Traitlets-like C++ properties and implementation of the observer pattern",
+ "dependencies": [
+ "nlohmann-json",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}