commit:     5eec562e1e2087215ffbac240b5a53abcbac2414
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Sat May 24 05:07:14 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat May 24 05:07:14 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5eec562e

dev-libs/libvoikko: add 4.3.3

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-libs/libvoikko/Manifest               |  2 ++
 dev-libs/libvoikko/libvoikko-4.3.3.ebuild | 57 +++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/dev-libs/libvoikko/Manifest b/dev-libs/libvoikko/Manifest
index 27032288f6ea..1afe8756a4ad 100644
--- a/dev-libs/libvoikko/Manifest
+++ b/dev-libs/libvoikko/Manifest
@@ -1,2 +1,4 @@
 DIST libvoikko-4.3.2.tar.gz 672196 BLAKE2B 
fb5cf5d415cb2bfd9849a62ffc7822ee2d79b153035e326cdf9103f17fbeab36edb878604980a09346ed5a9fce0b8006012a92483dc886b20d932802bc9bedd9
 SHA512 
d510a9344501f86b2f644c1237faf8709f02b5d17bca76f7934c8422495aeee307f12c60dde47df15a39c24c3311253d3dea2d0648050fc3a056a22497de695c
 DIST libvoikko-4.3.2.tar.gz.asc 833 BLAKE2B 
e1abeb8fb376c83a09ac26a5ffda98c86bb17fc6b7e2b1d4e0976e2b563aeabbeae7200c9a0298051d6e11bc28b83d540e7e2cfff7253030253e81fd39115256
 SHA512 
5416123b9610225e2baf26ebb8be27d98ac04d34af9c2ed9252fa6e2c2909276a47967a297fc9bf0b51a6bf8650a55919ea4071dd976752b26a3dfec271ddf0a
+DIST libvoikko-4.3.3.tar.gz 691854 BLAKE2B 
93f533590b290443f90468a5154989cf9568a8e255d6e324cdfdfce406bad593e361bdcd6a82257cfbf2d2ba03840ad5e762f38ab227d1b94d4401a06d8d8950
 SHA512 
8b6a8d52a43414c5acbc4582dbee4ba4687c204fdf59f097b202f80138bbe079d1feedcc9e13819078b7366de9a629d81c491e782435b64634e5ff38701038f5
+DIST libvoikko-4.3.3.tar.gz.asc 833 BLAKE2B 
24f6259c216457ac2fb7b1322dd472a948dc4e1c1a0f72bb8e020889ac561aafb00e9bf32927eb71f087837731bab6c2865296e0d84082cb5ed9ccca803a21d3
 SHA512 
a753957531c4f581f455c7a0d7dd69b9f7cb259fa19e783ecee426123039d5f7981aa8af7ced78b610ceb4922dd9c159bce94a8129f250600fa3f55c923cf45c

diff --git a/dev-libs/libvoikko/libvoikko-4.3.3.ebuild 
b/dev-libs/libvoikko/libvoikko-4.3.3.ebuild
new file mode 100644
index 000000000000..801546e6a0a2
--- /dev/null
+++ b/dev-libs/libvoikko/libvoikko-4.3.3.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..14} )
+
+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/1.16.3"
+KEYWORDS="~amd64 ~loong ~riscv ~x86"
+
+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="virtual/pkgconfig
+       >=dev-build/autoconf-2.71
+       verify-sig? ( sec-keys/openpgp-keys-voikko )"
+
+VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/voikko.asc
+
+PATCHES=( "${FILESDIR}"/libvoikko-4.3.2-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
+}

Reply via email to