diff --git a/ports/cpp-kana/portfile.cmake b/ports/cpp-kana/portfile.cmake new file mode 100644 index 0000000000..05369a6de1 --- /dev/null +++ b/ports/cpp-kana/portfile.cmake @@ -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) diff --git a/ports/cpp-kana/usage b/ports/cpp-kana/usage new file mode 100644 index 0000000000..ad21409ec6 --- /dev/null +++ b/ports/cpp-kana/usage @@ -0,0 +1,4 @@ +cpp-kana provides CMake targets: + + find_package(cpp-kana CONFIG REQUIRED) + target_link_libraries(main PRIVATE cpp-kana::cpp-kana) diff --git a/ports/cpp-kana/vcpkg.json b/ports/cpp-kana/vcpkg.json new file mode 100644 index 0000000000..254e230081 --- /dev/null +++ b/ports/cpp-kana/vcpkg.json @@ -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 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index f16f78c585..cf91951593 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/c-/cpp-kana.json b/versions/c-/cpp-kana.json new file mode 100644 index 0000000000..da6700b6c2 --- /dev/null +++ b/versions/c-/cpp-kana.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "6eda2f3f76b28b4454d608f8407dda45a548c099", + "version": "1.0.0", + "port-version": 0 + } + ] +}