aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/string-lite
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/string-lite')
-rw-r--r--vcpkg/ports/string-lite/portfile.cmake32
-rw-r--r--vcpkg/ports/string-lite/usage4
-rw-r--r--vcpkg/ports/string-lite/vcpkg.json17
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
+ }
+ ]
+}