mirror of
https://github.com/microsoft/vcpkg
synced 2024-11-21 16:09:03 -07:00
[cpp-kana] Add new port (#42066)
Co-authored-by: Kai Pastor <dg0yt@darc.de>
This commit is contained in:
parent
acdbbbaab9
commit
36878184ff
5 changed files with 59 additions and 0 deletions
25
ports/cpp-kana/portfile.cmake
Normal file
25
ports/cpp-kana/portfile.cmake
Normal file
|
@ -0,0 +1,25 @@
|
|||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO wolfgitpr/cpp-kana
|
||||
REF "${VERSION}"
|
||||
SHA512 b1e992f7172f080f74612e515713c3fd74d15d25d088923b834563c6ee06155bb0b073a39a480e82cb6d87c4066b10e65d45f913e26975ece88bf1f4d24dcc2b
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" CPP_KANA_BUILD_STATIC)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DCPP_KANA_BUILD_STATIC=${CPP_KANA_BUILD_STATIC}
|
||||
-DCPP_KANA_BUILD_TESTS=FALSE
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
|
4
ports/cpp-kana/usage
Normal file
4
ports/cpp-kana/usage
Normal file
|
@ -0,0 +1,4 @@
|
|||
cpp-kana provides CMake targets:
|
||||
|
||||
find_package(cpp-kana CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE cpp-kana::cpp-kana)
|
17
ports/cpp-kana/vcpkg.json
Normal file
17
ports/cpp-kana/vcpkg.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"name": "cpp-kana",
|
||||
"version": "1.0.0",
|
||||
"description": "A lightweight library for converting Japanese kana to romaji and vice versa.",
|
||||
"homepage": "https://github.com/wolfgitpr/cpp-kana",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1912,6 +1912,10 @@
|
|||
"baseline": "2022-08-27",
|
||||
"port-version": 1
|
||||
},
|
||||
"cpp-kana": {
|
||||
"baseline": "1.0.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"cpp-netlib": {
|
||||
"baseline": "0.13.0",
|
||||
"port-version": 9
|
||||
|
|
9
versions/c-/cpp-kana.json
Normal file
9
versions/c-/cpp-kana.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "6eda2f3f76b28b4454d608f8407dda45a548c099",
|
||||
"version": "1.0.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue