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/nuspell | |
Diffstat (limited to 'vcpkg/ports/nuspell')
| -rw-r--r-- | vcpkg/ports/nuspell/portfile.cmake | 41 | ||||
| -rw-r--r-- | vcpkg/ports/nuspell/vcpkg.json | 31 |
2 files changed, 72 insertions, 0 deletions
diff --git a/vcpkg/ports/nuspell/portfile.cmake b/vcpkg/ports/nuspell/portfile.cmake new file mode 100644 index 0000000..094a44d --- /dev/null +++ b/vcpkg/ports/nuspell/portfile.cmake @@ -0,0 +1,41 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO nuspell/nuspell + REF "v${VERSION}" + SHA512 ab6d9394a55d9a2a347ccae47aeef6a96af70f421ad6ea8f7ac7fde2052790f37fb1c7ec3112daac7600d193430a560cb1915ab6557c9353717f65cb32f13ab8 + HEAD_REF master +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + tools BUILD_TOOLS +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${FEATURE_OPTIONS} + -DBUILD_TESTING=OFF + -DBUILD_DOCS=OFF +) +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/nuspell) +vcpkg_fixup_pkgconfig( + # nuspell.pc depends on icu-uc.pc which has -lm specified as private + # library. Ignore this -lm, otherwise this function shows error + # because it can't find this. -lm is part of glibc on Linux. + SYSTEM_LIBRARIES m +) + +if (BUILD_TOOLS) + vcpkg_copy_tools(TOOL_NAMES nuspell AUTO_CLEAN) +endif() + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/share" +) + +file(INSTALL "${SOURCE_PATH}/COPYING.LESSER" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/nuspell/vcpkg.json b/vcpkg/ports/nuspell/vcpkg.json new file mode 100644 index 0000000..ef61425 --- /dev/null +++ b/vcpkg/ports/nuspell/vcpkg.json @@ -0,0 +1,31 @@ +{ + "name": "nuspell", + "version-semver": "5.1.6", + "description": [ + "Nuspell is a fast and safe spelling checker software program.", + "It is designed for languages with rich morphology and complex word compounding.", + "Nuspell is written in modern C++ and it supports Hunspell dictionaries." + ], + "homepage": "https://nuspell.github.io/", + "license": "LGPL-3.0-or-later", + "supports": "!xbox", + "dependencies": [ + "icu", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "tools": { + "description": "Build tools", + "dependencies": [ + "getopt" + ] + } + } +} |