diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/argh | |
Diffstat (limited to 'vcpkg/ports/argh')
| -rw-r--r-- | vcpkg/ports/argh/portfile.cmake | 30 | ||||
| -rw-r--r-- | vcpkg/ports/argh/vcpkg.json | 18 |
2 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg/ports/argh/portfile.cmake b/vcpkg/ports/argh/portfile.cmake new file mode 100644 index 0000000..25df241 --- /dev/null +++ b/vcpkg/ports/argh/portfile.cmake @@ -0,0 +1,30 @@ +# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO adishavit/argh
+ REF "v${VERSION}"
+ SHA512 66073718ef1fc31fbd0feb9daf366a2e28c759de44fb1882dc46a6d10f7a44635ae1155882dff916f55c51fad88bedebdfe361418f7669fac241feead68f2b5b
+ HEAD_REF master
+)
+
+set(VCPKG_BUILD_TYPE release)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTS=OFF
+ -DBUILD_EXAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+
+set(CONFIG_PATH lib/cmake/argh)
+if(EXISTS "${CURRENT_PACKAGES_DIR}/cmake")
+ set(CONFIG_PATH cmake)
+endif()
+vcpkg_cmake_config_fixup(CONFIG_PATH "${CONFIG_PATH}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc" "${CURRENT_PACKAGES_DIR}/lib")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/argh/vcpkg.json b/vcpkg/ports/argh/vcpkg.json new file mode 100644 index 0000000..5dea74d --- /dev/null +++ b/vcpkg/ports/argh/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "argh", + "version": "1.3.2", + "port-version": 1, + "description": "Argh! A minimalist argument handler.", + "homepage": "https://github.com/adishavit/argh", + "license": "BSD-3-Clause", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |