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/string-lite | |
Diffstat (limited to 'vcpkg/ports/string-lite')
| -rw-r--r-- | vcpkg/ports/string-lite/portfile.cmake | 32 | ||||
| -rw-r--r-- | vcpkg/ports/string-lite/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/string-lite/vcpkg.json | 17 |
3 files changed, 53 insertions, 0 deletions
diff --git a/vcpkg/ports/string-lite/portfile.cmake b/vcpkg/ports/string-lite/portfile.cmake new file mode 100644 index 0000000..be14eb4 --- /dev/null +++ b/vcpkg/ports/string-lite/portfile.cmake @@ -0,0 +1,32 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO martinmoene/string-lite
+ REF "v${VERSION}"
+ SHA512 b61667660d32a96232737e0d38e02a0e6d934830e7dafdb9844eb87d855dbea43392797c291d9f39a0f352c43bcd6e5af9510b656887532be99f02982ff38dfa
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DSTRING_LITE_OPT_BUILD_TESTS=OFF
+ -DSTRING_LITE_OPT_BUILD_EXAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(
+ CONFIG_PATH lib/cmake/${PORT}
+)
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug"
+ "${CURRENT_PACKAGES_DIR}/lib"
+)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+
+file(INSTALL
+ "${CMAKE_CURRENT_LIST_DIR}/usage"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
+)
diff --git a/vcpkg/ports/string-lite/usage b/vcpkg/ports/string-lite/usage new file mode 100644 index 0000000..d7ba3e2 --- /dev/null +++ b/vcpkg/ports/string-lite/usage @@ -0,0 +1,4 @@ +string-lite provides CMake targets:
+
+ find_package(string-lite CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE string-lite::string-lite)
diff --git a/vcpkg/ports/string-lite/vcpkg.json b/vcpkg/ports/string-lite/vcpkg.json new file mode 100644 index 0000000..f801d7a --- /dev/null +++ b/vcpkg/ports/string-lite/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "string-lite", + "version": "0.0.0", + "description": "String algorithms for C+11 and later in a single-file header-only library", + "homepage": "https://github.com/martinmoene/string-lite", + "license": "BSL-1.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |