aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/parson
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/parson
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/parson')
-rw-r--r--vcpkg/ports/parson/fix-cmake-files-path.patch12
-rw-r--r--vcpkg/ports/parson/portfile.cmake24
-rw-r--r--vcpkg/ports/parson/vcpkg.json17
3 files changed, 53 insertions, 0 deletions
diff --git a/vcpkg/ports/parson/fix-cmake-files-path.patch b/vcpkg/ports/parson/fix-cmake-files-path.patch
new file mode 100644
index 0000000..1b69455
--- /dev/null
+++ b/vcpkg/ports/parson/fix-cmake-files-path.patch
@@ -0,0 +1,12 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7d656fa..993e859 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -24,6 +24,6 @@ install(
+ EXPORT parsonTargets
+ FILE parsonConfig.cmake
+ NAMESPACE parson::
+- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
++ DESTINATION share/${PROJECT_NAME}
+ )
+
diff --git a/vcpkg/ports/parson/portfile.cmake b/vcpkg/ports/parson/portfile.cmake
new file mode 100644
index 0000000..6a6f50c
--- /dev/null
+++ b/vcpkg/ports/parson/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO kgabis/parson
+ REF ba29f4eda9ea7703a9f6a9cf2b0532a2605723c3 # accessed on 2023-10-31
+ SHA512 fdb8c66e9b8966488a22db2e6437d0bfa521c73abc043c7bd18227247fd52de9dd1856dec0d5ebd88f1dacce2493b2c68707b5e16ca4e3032ff6342933f16030
+ HEAD_REF master
+ PATCHES
+ fix-cmake-files-path.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+
+vcpkg_copy_pdbs()
diff --git a/vcpkg/ports/parson/vcpkg.json b/vcpkg/ports/parson/vcpkg.json
new file mode 100644
index 0000000..444d62b
--- /dev/null
+++ b/vcpkg/ports/parson/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "parson",
+ "version-date": "2023-10-31",
+ "description": "a lightweight json library written in C",
+ "homepage": "https://github.com/kgabis/parson",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}