diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cpp-kana | |
Diffstat (limited to 'vcpkg/ports/cpp-kana')
| -rw-r--r-- | vcpkg/ports/cpp-kana/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/cpp-kana/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/cpp-kana/vcpkg.json | 17 |
3 files changed, 46 insertions, 0 deletions
diff --git a/vcpkg/ports/cpp-kana/portfile.cmake b/vcpkg/ports/cpp-kana/portfile.cmake new file mode 100644 index 0000000..33b9eab --- /dev/null +++ b/vcpkg/ports/cpp-kana/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO wolfgitpr/cpp-kana
+ REF "${VERSION}"
+ SHA512 7fab4134c2caca4229fc6b459df10c92ad4385e3e724d9dc0cd3346d15b9862df3ebe99b0a345b9f468866d03b2d0c0c8f0f3e126e797a5e61e3179c317ba3d5
+ 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/vcpkg/ports/cpp-kana/usage b/vcpkg/ports/cpp-kana/usage new file mode 100644 index 0000000..ad21409 --- /dev/null +++ b/vcpkg/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/vcpkg/ports/cpp-kana/vcpkg.json b/vcpkg/ports/cpp-kana/vcpkg.json new file mode 100644 index 0000000..45853f2 --- /dev/null +++ b/vcpkg/ports/cpp-kana/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "cpp-kana", + "version": "1.0.2", + "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 + } + ] +} |