[string-lite] Add a new port (#47410)

This commit is contained in:
Martin Moene
2025-09-24 18:31:32 +02:00
committed by GitHub
parent 633afd0db7
commit 714fae11f7
5 changed files with 66 additions and 0 deletions

View File

@@ -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}"
)

4
ports/string-lite/usage Normal file
View File

@@ -0,0 +1,4 @@
string-lite provides CMake targets:
find_package(string-lite CONFIG REQUIRED)
target_link_libraries(main PRIVATE string-lite::string-lite)

View File

@@ -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
}
]
}

View File

@@ -9292,6 +9292,10 @@
"baseline": "0.5",
"port-version": 2
},
"string-lite": {
"baseline": "0.0.0",
"port-version": 0
},
"string-theory": {
"baseline": "3.9",
"port-version": 0

View File

@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "86f99967c2f0e89841f08e49633ff2803a339622",
"version": "0.0.0",
"port-version": 0
}
]
}