aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/pistache
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/pistache
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/pistache')
-rw-r--r--vcpkg/ports/pistache/portfile.cmake29
-rw-r--r--vcpkg/ports/pistache/vcpkg.json15
2 files changed, 44 insertions, 0 deletions
diff --git a/vcpkg/ports/pistache/portfile.cmake b/vcpkg/ports/pistache/portfile.cmake
new file mode 100644
index 0000000..3191587
--- /dev/null
+++ b/vcpkg/ports/pistache/portfile.cmake
@@ -0,0 +1,29 @@
+if(NOT VCPKG_TARGET_IS_LINUX)
+ message(FATAL_ERROR "${PORT} currently only supports Linux platform.")
+endif()
+
+vcpkg_download_distfile(ADD_CSTDINT_PATCH
+ URLS https://github.com/pistacheio/pistache/commit/dabe9fcd3eaaa6b0b8723369b2565778341630c0.diff?full_index=1
+ FILENAME pistache-cstdint-dabe9fcd3eaaa6b0b8723369b2565778341630c0.diff
+ SHA512 1cef4b084050a5cb409a2f055e12f03184ad3cd07c8b896c38152f9c0c630d812a73fb78ccb3e7270ffe8001d877c3da173be06810744c2e0807a20e488ee66d
+)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO pistacheio/pistache
+ REF 9dc080b9ebbe6fc1726b45e9db1550305938313e #2021-03-31
+ SHA512 b55c395fb98af85317590ed2502564af5e92e30a35618132568c6ab589a6d0971570ad20ddbd1f49d9dd8cf54692866c69cfc1350c6fdccf9efb039aacf153b4
+ HEAD_REF master
+ PATCHES
+ "${ADD_CSTDINT_PATCH}"
+)
+
+vcpkg_configure_meson(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+vcpkg_install_meson()
+
+vcpkg_fixup_pkgconfig()
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/pistache/vcpkg.json b/vcpkg/ports/pistache/vcpkg.json
new file mode 100644
index 0000000..e1ab20e
--- /dev/null
+++ b/vcpkg/ports/pistache/vcpkg.json
@@ -0,0 +1,15 @@
+{
+ "name": "pistache",
+ "version-date": "2021-03-31",
+ "port-version": 4,
+ "description": "Pistache is a modern and elegant HTTP and REST framework for C++. It is entirely written in pure-C++11 and provides a clear and pleasant API",
+ "homepage": "https://github.com/oktal/pistache",
+ "supports": "linux",
+ "dependencies": [
+ "rapidjson",
+ {
+ "name": "vcpkg-tool-meson",
+ "host": true
+ }
+ ]
+}