[uni-algo] Add new port (#29717)

* [uni-algo] Add new port

* [uni-algo] Update hash

* [uni-algo] Remove header-only feature

vcpkg maintainer-guide.md: Do not use features to implement alternatives
Header-only/constexpr feature in v0.7.0 doesn't implement
one system locale function so it violates this rule.

* [uni-algo] Clean excessive comments

vcpkg maintainer-guide.md: Avoid excessive comments in portfiles

* [uni-algo] Format json

* [uni-algo] Update baseline

Run: vcpkg x-add-version uni-algo

* [uni-algo] Remove vcpkg_minimum_required

* [uni-algo] Update baseline

* [uni-algo] Enable install always

* [uni-algo] Rerun x-add-version
This commit is contained in:
mg152 2023-02-21 21:08:16 +03:00 committed by GitHub
parent 3ceba3d976
commit fd5058aad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,27 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO uni-algo/uni-algo
REF "v${VERSION}"
SHA512 031d6ec2a1a2c09972a68d7b9bf49a209441e69802d5d8d37b2a37d9b6e002427496d420629d2119dc1d0e80f38c7b220e253b0858db5f172789472447041799
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DUNI_ALGO_INSTALL=ON
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(NO_PREFIX_CORRECTION)
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Remove empty directory
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/uni_algo/impl/doc")
# Install copyright and usage
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
ports/uni-algo/usage Normal file
View File

@ -0,0 +1,4 @@
The package uni-algo provides CMake targets:
find_package(uni-algo CONFIG REQUIRED)
target_link_libraries(main PRIVATE uni-algo::uni-algo)

17
ports/uni-algo/vcpkg.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "uni-algo",
"version-semver": "0.7.0",
"description": "Unicode Algorithms Implementation",
"homepage": "https://github.com/uni-algo/uni-algo",
"license": "Unlicense OR MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -7924,6 +7924,10 @@
"baseline": "2022-01-21",
"port-version": 1
},
"uni-algo": {
"baseline": "0.7.0",
"port-version": 0
},
"unicorn": {
"baseline": "1.0.3",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "ae30ff42462d61d142eca81383fb9a7c9df3703a",
"version-semver": "0.7.0",
"port-version": 0
}
]
}