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/fixed-string | |
Diffstat (limited to 'vcpkg/ports/fixed-string')
| -rw-r--r-- | vcpkg/ports/fixed-string/portfile.cmake | 26 | ||||
| -rw-r--r-- | vcpkg/ports/fixed-string/vcpkg.json | 17 |
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/fixed-string/portfile.cmake b/vcpkg/ports/fixed-string/portfile.cmake new file mode 100644 index 0000000..5442bfe --- /dev/null +++ b/vcpkg/ports/fixed-string/portfile.cmake @@ -0,0 +1,26 @@ +# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO unterumarmung/fixed_string
+ REF v0.1.1 + SHA512 8367f7cf898dd88918913f6e788cc5841eab7cd56d61f3ea21636bf3253f450d5dd6207a259d4c5980d863c2ce55fba35e3e8944341f56dbfd56faa29c39746e + HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DFIXED_STRING_OPT_BUILD_EXAMPLES=OFF
+ -DFIXED_STRING_OPT_BUILD_TESTS=OFF
+ -DFIXED_STRING_OPT_INSTALL=ON
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(PACKAGE_NAME fixed_string CONFIG_PATH lib/cmake/fixed_string)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
+
+# Handle copyright
+configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
diff --git a/vcpkg/ports/fixed-string/vcpkg.json b/vcpkg/ports/fixed-string/vcpkg.json new file mode 100644 index 0000000..cbb1a27 --- /dev/null +++ b/vcpkg/ports/fixed-string/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "fixed-string", + "version": "0.1.1", + "description": "Header-only C++17 library provides a string class with std::array fixed-size semantic.", + "homepage": "https://github.com/unterumarmung/fixed_string", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |