[astr] New port (#38734)

---------
Co-authored-by: Rostyslav Skrypnyk <rostylsav.skrypnyk@elekta.com>
Co-authored-by: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com>
Co-authored-by: Monica <liuyumei01@beyondsoft.com>
This commit is contained in:
Rostyslav Skrypnyk 2024-06-07 11:09:58 +02:00 committed by GitHub
parent 6e31ee33cc
commit ec5dd00496
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 59 additions and 0 deletions

25
ports/astr/portfile.cmake Normal file
View File

@ -0,0 +1,25 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO a4z/astr
REF "${VERSION}"
SHA512 4b730674d992efa94c3b4d290aeafc0b076fc6ca6033cc2aed90b92d77ff19498fb5af9fa83fa7b136d428e762518d9fb28bacf3965a9f4030f39e73aca89630
HEAD_REF main
)
set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

4
ports/astr/usage Normal file
View File

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

17
ports/astr/vcpkg.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "astr",
"version": "0.2.1",
"description": "Compile-time array string header-only library.",
"homepage": "https://github.com/a4z/astr",
"license": "MPL-2.0",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

9
versions/a-/astr.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "a1f0a0fddb4d32a4b31a61a3ba5fb4ce21ef998f",
"version": "0.2.1",
"port-version": 0
}
]
}

View File

@ -280,6 +280,10 @@
"baseline": "5.4.0",
"port-version": 0
},
"astr": {
"baseline": "0.2.1",
"port-version": 0
},
"async-mqtt": {
"baseline": "5.1.1",
"port-version": 0