aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/xpack
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/xpack
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/xpack')
-rw-r--r--vcpkg/ports/xpack/portfile.cmake19
-rw-r--r--vcpkg/ports/xpack/vcpkg.json11
2 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/xpack/portfile.cmake b/vcpkg/ports/xpack/portfile.cmake
new file mode 100644
index 0000000..e1a53fa
--- /dev/null
+++ b/vcpkg/ports/xpack/portfile.cmake
@@ -0,0 +1,19 @@
+# xpack - Header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO xyz347/xpack
+ REF "v${VERSION}"
+ SHA512 2c74e0ede211603266470177c90619a5826504e23d91922daf97e9e1a1c1e8448bc748ce2494cc552442a1531f0f94a5692cabe53c83a65f7e11a1bbe67e7065
+ HEAD_REF master
+)
+
+file(GLOB header_files
+ "${SOURCE_PATH}/*.h"
+ "${SOURCE_PATH}/*.hpp")
+file(COPY ${header_files}
+ "${SOURCE_PATH}/xpack.pri"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
+
+# Handle copyright
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/xpack/vcpkg.json b/vcpkg/ports/xpack/vcpkg.json
new file mode 100644
index 0000000..895cac7
--- /dev/null
+++ b/vcpkg/ports/xpack/vcpkg.json
@@ -0,0 +1,11 @@
+{
+ "name": "xpack",
+ "version": "1.0.6",
+ "description": "Convert C++ struct from/to json/xml",
+ "homepage": "https://github.com/xyz347/xpack",
+ "license": "Apache-2.0",
+ "dependencies": [
+ "rapidjson",
+ "rapidxml"
+ ]
+}