diff --git a/app-text/nuspell/Manifest b/app-text/nuspell/Manifest new file mode 100644 index 0000000..03e7c51 --- /dev/null +++ b/app-text/nuspell/Manifest @@ -0,0 +1,5 @@ +DIST nuspell-3.1.2.tar.gz 379029 BLAKE2B 80f773ffdcbfbeee0dd13cd325bb4fec5efa5b54ece92ac1589c418aab46c925419e9e1bc7e257a8320e24399f49bb867600679e34a5e40070b01a660578c92c SHA512 ed5206cb9ffa7e4ec6843988a75627d4ae7d5170444b6e7bd3496c1bf61c25412c4e68864800f2ad238d014b4e50d25282f367de2900f8a230f3ecc9ae5772be +DIST nuspell-4.0.0.tar.gz 379136 BLAKE2B 90aebe8318cd28240dfb7c1b034b2c045ac208c6d25344a3f2fc2f1a38995a1d6f81e70399c644c70255fbbb30f61e340808d1a71dfccab1726f89b742cf7b65 SHA512 2b08e30c4ac91a243c74f21eaf4a8d55d8b1c834e0f293fea76a9f02660f2ee89fe4d4071b1b9ed97b8c1db80b0645c71f8746738d97fc3ae779a65dc1583d3b +DIST nuspell-4.0.1.tar.gz 379342 BLAKE2B be52797ddd737c523a6141fc1c2683690cfcd1aa09e6548d7eed593ab023d2b45d3538f2a9964a7c2b4abc6506c67058cdc2479ec12ae5438ffe9faa00f0680c SHA512 122616fd24c2de35000ba12d680d3617e7fe97881d33febbcb106ce70d3bac356a00d90680a1bc8ee631ed532ace0f4b4f9fce4760a25b0f7fc1d60553e74528 +DIST nuspell-4.1.0.tar.gz 380814 BLAKE2B 500da0797e4f0d1939afd8451b734f309b5c58e66532150614dd3463eda95ab421094e6c0485396b7ef1dd4b7fc03cadf10316d9cfdb1390b2769ddcc963d8b3 SHA512 d0c01dd73fefd8b9c800e6419fe916e55a53b8b19f5848d3766cdcb50383fdcd9e9bb49362b5cea4d9d2d7fda21aed055f28cb47b006e2049b2a904355f7f9ed +DIST nuspell-4.2.0.tar.gz 382635 BLAKE2B cc141e764ce4e649a7a10f213c392973eb98eb21adddc7d2cd46c01f3cc9a6c85432bfb13ce178fba387a01aa1661e7c9b6a4717fca18fb3bfa220732daf53eb SHA512 ae9157e9753868c002ed69a765fb705d29d993f3940e11efbc2699778a8b1abee2eb7daa0ff51187b899d6935a215a24662e5b52ec1ef5c644e90a0245f7583d diff --git a/app-text/nuspell/nuspell-4.2.0.ebuild b/app-text/nuspell/nuspell-4.2.0.ebuild new file mode 100644 index 0000000..9b50c4e --- /dev/null +++ b/app-text/nuspell/nuspell-4.2.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Spell checker library and CLI for complex natural languages" +HOMEPAGE="https://nuspell.github.io/ https://github.com/nuspell/nuspell" +SRC_URI="https://github.com/nuspell/nuspell/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3+" +SLOT="0/4" # due to libnuspell.so.4 +KEYWORDS="~amd64 ~x86 ~arm ~arm64" +IUSE="doc test" + +RDEPEND="dev-libs/icu" +DEPEND="${RDEPEND} + doc? ( app-text/pandoc ) + test? ( >=dev-cpp/catch-2.3.0:0 ) + " + +DOCS=( CHANGELOG.md ) + +RESTRICT="!test? ( test )" + +src_prepare() { + rm -R external/Catch2/ || die + if ! use test ; then + rm -R external/hunspell/ || die + fi + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test) + ) + + cmake_src_configure +} + +pkg_postinst() { + einfo + einfo 'Nuspell needs language packs and/or dictionaries to be of use' + einfo 'e.g. package app-dicts/myspell-en or one of its siblings.' + einfo + einfo 'Besides MySpell dictionaries, for other options please' + einfo 'see https://nuspell.github.io/#languages-and-users .' + einfo +} diff --git a/net-libs/libvoikko/Manifest b/net-libs/libvoikko/Manifest new file mode 100644 index 0000000..1c6ccfc --- /dev/null +++ b/net-libs/libvoikko/Manifest @@ -0,0 +1,2 @@ +DIST libvoikko-4.3.1.tar.gz 658079 BLAKE2B 4f52789b5d62991333ba9b979259a631ef2989bc70358b398a4281d56765046209657fd3e41afd47ee7ba1dbafeeb4a34ffd007e55037bca9958fb813e4b7202 SHA512 6677fac7c0cba1289dda23b0c0a4bbe44480ce747189d40634ac57811728c1942a795efd50270e933373fabab9c54e82a8f9fde06d936442820e3f8019574f08 +DIST libvoikko-4.3.1.tar.gz.asc 833 BLAKE2B 4a69ae75da1973e383ab21cb557352be1344dc6e34fef13e28616fbd9e0003b93ef5e3488f1e776eb476a750980281463ee144edc5849ec7e3159badc160ceb7 SHA512 04a5e8899679e1503ec0d378903b8ff17e8065aa105ba61559b584eb4cde2a5a9b622fd39bd0126bb87915c7dcbac8495e874c3cdabf25232b1ae41491275ba0 diff --git a/net-libs/libvoikko/files/libvoikko-4.3-disable-wall-werror.patch b/net-libs/libvoikko/files/libvoikko-4.3-disable-wall-werror.patch new file mode 100644 index 0000000..59369a6 --- /dev/null +++ b/net-libs/libvoikko/files/libvoikko-4.3-disable-wall-werror.patch @@ -0,0 +1,30 @@ +diff -Naur a/configure b/configure +--- a/configure 2019-10-17 17:28:10.000000000 +0300 ++++ b/configure 2021-02-19 11:32:45.084523937 +0200 +@@ -17652,7 +17652,7 @@ + + + tmp_CXXFLAGS="$CXXFLAGS" +-CXXFLAGS="$CXXFLAGS -Wall -Werror -fvisibility=hidden" ++CXXFLAGS="$CXXFLAGS -fvisibility=hidden" + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports the visibility attribute" >&5 + $as_echo_n "checking whether $CC supports the visibility attribute... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +@@ -18413,7 +18413,7 @@ + if test "x$ax_pthread_try" = "xunknown"; then : + break + fi +- CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" ++ CFLAGS="-Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" + ac_link="$ax_pthread_save_ac_link" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ +@@ -19102,7 +19102,7 @@ + done + + +-CXXFLAGS="$CXXFLAGS -Wall -Werror -pedantic" ++CXXFLAGS="$CXXFLAGS -pedantic" + + ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile java/Makefile test/Makefile cs/Makefile cl/Makefile src/libvoikko.pc" + diff --git a/net-libs/libvoikko/libvoikko-4.3.1.ebuild b/net-libs/libvoikko/libvoikko-4.3.1.ebuild new file mode 100644 index 0000000..269fb8b --- /dev/null +++ b/net-libs/libvoikko/libvoikko-4.3.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +inherit python-r1 verify-sig + +DESCRIPTION="Spell checking, hyphenation and morphological analysis tool for Finnish language" +HOMEPAGE="https://voikko.puimula.org/" +SRC_URI="https://www.puimula.org/voikko-sources/${PN}/${P}.tar.gz + verify-sig? ( https://www.puimula.org/voikko-sources/libvoikko/${P}.tar.gz.asc )" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~arm ~arm64" + +IUSE="+expvfst +hfst verify-sig" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RESTRICT="test" + +DEPEND="${PYTHON_DEPS} + hfst? ( >=dev-util/hfstospell-0.5.0 )" +RDEPEND="${DEPEND}" +BDEPEND="verify-sig? ( app-crypt/openpgp-keys-voikko )" + +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/voikko.asc + +PATCHES=( "${FILESDIR}"/libvoikko-4.3-disable-wall-werror.patch ) + +src_configure() { + local myconf=( + --prefix=/usr + --with-dictionary-path=/usr/share/voikko + $(use_enable expvfst) + ) + + if ! use hfst ; then + myconf+=( --disable-hfst ) + fi + + econf "${myconf[@]}" +} + +src_install() { + python_setup + default + + python_foreach_impl python_domodule python/libvoikko.py + + find "${D}" -name '*.la' -delete -o -name '*.a' -delete || die +}