[Turbobase64] Adopt maintainer guidelines (#26498)

* [turbobase64] Fix maintainer guideline violations

* [turbobase64] Update version database
This commit is contained in:
Henrik Gaßmann 2022-08-25 19:44:12 +02:00 committed by GitHub
parent b8b8efa56d
commit 23e74ca2c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 41 additions and 28 deletions

View File

@ -34,37 +34,33 @@ else ()
endif ()
if (ARCH_AMD64)
add_library(base64
add_library(tb64
$<TARGET_OBJECTS:base64_scalar>
$<TARGET_OBJECTS:base64_ssse3>
$<TARGET_OBJECTS:base64_avx>
$<TARGET_OBJECTS:base64_avx2>)
else ()
add_library(base64
add_library(tb64
$<TARGET_OBJECTS:base64_scalar>
$<TARGET_OBJECTS:base64_ssse3>)
endif ()
# End of Yandex code
target_include_directories(base64 SYSTEM PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
set_target_properties(base64 PROPERTIES PUBLIC_HEADER "${CMAKE_SOURCE_DIR}/turbob64.h")
include(CMakePackageConfigHelpers)
include(GNUInstallDirs)
install(TARGETS base64
EXPORT base64Config
RUNTIME DESTINATION "bin"
LIBRARY DESTINATION "lib"
ARCHIVE DESTINATION "lib"
PUBLIC_HEADER DESTINATION "include"
COMPONENT dev
target_include_directories(tb64 PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
export(TARGETS base64
NAMESPACE TURBO::
FILE "share/base64/base64Config.cmake"
)
install(TARGETS tb64
EXPORT unofficial-turbobase64-config
)
install(FILES "${CMAKE_SOURCE_DIR}/turbob64.h" TYPE INCLUDE)
install(EXPORT base64Config
DESTINATION "share/base64"
NAMESPACE TURBO::
install(EXPORT unofficial-turbobase64-config
DESTINATION "${CMAKE_INSTALL_DATADIR}/unofficial-turbobase64"
NAMESPACE unofficial::turbobase64::
)

View File

@ -6,14 +6,15 @@ vcpkg_from_github(
HEAD_REF master
)
configure_file(${CURRENT_PORT_DIR}/CMakeLists.txt ${SOURCE_PATH}/CMakeLists.txt COPYONLY)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_install_cmake()
vcpkg_cmake_install()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
vcpkg_cmake_config_fixup(PACKAGE_NAME "unofficial-${PORT}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -1,8 +1,19 @@
{
"name": "turbobase64",
"version-date": "2020-01-12",
"port-version": 2,
"port-version": 3,
"description": "Fastest Base64 SIMD/Neon library",
"homepage": "https://github.com/powturbo/Turbo-Base64",
"supports": "!windows"
"license": "GPL-3.0-only",
"supports": "!windows",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -7330,7 +7330,7 @@
},
"turbobase64": {
"baseline": "2020-01-12",
"port-version": 2
"port-version": 3
},
"tvision": {
"baseline": "2021-08-10",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "20d23821ef39944689c9ec0e8cf02d17c7b68901",
"version-date": "2020-01-12",
"port-version": 3
},
{
"git-tree": "1077b7996d7d22e798b337bc29177a566ec64e4b",
"version-date": "2020-01-12",