aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/restclient-cpp
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/restclient-cpp
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/restclient-cpp')
-rw-r--r--vcpkg/ports/restclient-cpp/portfile.cmake30
-rw-r--r--vcpkg/ports/restclient-cpp/vcpkg.json18
2 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg/ports/restclient-cpp/portfile.cmake b/vcpkg/ports/restclient-cpp/portfile.cmake
new file mode 100644
index 0000000..9b7ffe2
--- /dev/null
+++ b/vcpkg/ports/restclient-cpp/portfile.cmake
@@ -0,0 +1,30 @@
+if (VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mrtazz/restclient-cpp
+ REF fdf722bbab55d0838200dfbf2c3a2815741c8a7e #v2024-01-09
+ SHA512 da1c0286b782c7baa3c40bf5bede5c78e0adde9a3172233cbdede792705b074c26e746f192cccb2eded4bf528f10d1fd5bc276fc1b6a3b9cc695fbeb9feadfff
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DCMAKE_DISABLE_FIND_PACKAGE_GTest=TRUE
+ -DCMAKE_DISABLE_FIND_PACKAGE_jsoncpp=TRUE
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/restclient-cpp)
+
+vcpkg_copy_pdbs()
+
+# Remove includes in debug
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/restclient-cpp/vcpkg.json b/vcpkg/ports/restclient-cpp/vcpkg.json
new file mode 100644
index 0000000..a3f6b9c
--- /dev/null
+++ b/vcpkg/ports/restclient-cpp/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "restclient-cpp",
+ "version-date": "2024-01-09",
+ "description": "Simple REST client for C++. It wraps libcurl for HTTP requests.",
+ "homepage": "https://code.mrtazz.com/restclient-cpp/",
+ "license": "MIT",
+ "dependencies": [
+ "curl",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}