[strtk] Add feature boost (#32629)

This commit is contained in:
Lily Wang 2023-07-19 14:09:31 -07:00 committed by GitHub
parent f78466713f
commit 37e138c4bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 7 deletions

View File

@ -5,5 +5,11 @@ vcpkg_from_github(
SHA512 c37c0df1dd3f7bc1dfcceea83ed9303cf9388ba400ee645f26a24bca50bf85209f7b8a2169f6b98b0267ece986a29a27605ff3eaef50a44629fb7e042d06f26a
)
file(COPY ${SOURCE_PATH}/strtk.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/strtk)
file(COPY "${SOURCE_PATH}/strtk.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
if("boost" IN_LIST FEATURES)
else()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/strtk.hpp" "#ifndef strtk_no_tr1_or_boost" "#if 0")
endif()
vcpkg_install_copyright(FILE_LIST "${CMAKE_CURRENT_LIST_DIR}/copyright")

View File

@ -1,10 +1,16 @@
{
"name": "strtk",
"version-date": "2020-09-14",
"port-version": 2,
"port-version": 3,
"description": "robust, optimized and portable string processing algorithms for the C++ language",
"homepage": "https://github.com/ArashPartow/strtk",
"dependencies": [
"boost"
]
"license": null,
"features": {
"boost": {
"description": "Request boost libraries",
"dependencies": [
"boost"
]
}
}
}

View File

@ -7886,7 +7886,7 @@
},
"strtk": {
"baseline": "2020-09-14",
"port-version": 2
"port-version": 3
},
"stx": {
"baseline": "0.0.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "25bd007473e6ece64e317dc8b4ea97d29188a173",
"version-date": "2020-09-14",
"port-version": 3
},
{
"git-tree": "42d71cbd4755eecc7183ac64b262ddd87450c431",
"version-date": "2020-09-14",