sci-misc/apertium: add 3.9.12

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2026-05-01 07:43:27 +02:00
parent 9d76f64248
commit 634c075f99
2 changed files with 62 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST apertium-3.8.3.tar.bz2 560957 BLAKE2B c610395fb1e725ddc628a15b1234c434d174c5b5664ed8fa2d1480d438e143bcd194b6f5a2e79ede6fec0d4fa156be2b7725134727e2f976fe7ecd053a88c520 SHA512 78da8ffcc01706563c4e34c73355b3c65bc2b22abf1501169638b89eae95cd0a4bff095eef5488cba58d0e67b8dd7efd93759981ebd28a9115028e7ad75fa551
DIST apertium-3.9.12.tar.bz2 576841 BLAKE2B d7c4a6bcf159219662cf04195e821879cedc835fc0e2b406378fa004a3fb9b0c3863aa61cd103e97330da370a65cc715eb3173a092361e9656418442dc934f2e SHA512 fa13f20eab71d9a8bc0d805cef681cbc2106ef55fda8ba96a0b45bdd1745a0c0f77a58a5693da491ef8bce033b8c2f5914bdc028f330177be6bc5facb2127ffa
+61
View File
@@ -0,0 +1,61 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..14} )
inherit autotools python-any-r1
DESCRIPTION="Shallow-transfer machine Translation engine and toolbox"
HOMEPAGE="https://apertium.sourceforge.net/"
SRC_URI="https://github.com/apertium/apertium/releases/download/v${PV}/${P}.tar.bz2"
LICENSE="GPL-2"
# PKG_VERSION_ABI in configure.ac
SLOT="0/3"
KEYWORDS="~amd64 ~x86"
IUSE="test"
# TODO: test_null_flush fails
RESTRICT="!test? ( test ) test"
RDEPEND="
dev-libs/icu:=
>=dev-libs/libxml2-2.6.17:=
dev-libs/utfcpp
>=sci-misc/lttoolbox-3.7.2:=
virtual/libiconv
"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
test? (
${PYTHON_DEPS}
dev-libs/libzip[tools]
)
"
pkg_setup() {
use test && python-any-r1_pkg_setup
}
src_prepare() {
default
# Requires shellcheck, not useful for us in Gentoo
cat <<-EOF > tests/sh/run || die
#!/usr/bin/env bash
exit 77
EOF
eautoreconf
}
src_configure() {
econf --disable-python-bindings
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}