commit: df48c15b3746f2ad00f9051a06d0f4917cd24ea9 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> AuthorDate: Fri Feb 23 07:11:18 2024 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Fri Feb 23 07:19:44 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df48c15b
dev-util/hfstospell: add 0.5.4 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> dev-util/hfstospell/Manifest | 1 + dev-util/hfstospell/hfstospell-0.5.4.ebuild | 70 +++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/dev-util/hfstospell/Manifest b/dev-util/hfstospell/Manifest index ad85e4212a25..c2b700647a51 100644 --- a/dev-util/hfstospell/Manifest +++ b/dev-util/hfstospell/Manifest @@ -1 +1,2 @@ DIST hfstospell-0.5.3.tar.gz 152654 BLAKE2B f77c86e18b9dcb098460bdaec2f6a148b4bf515670aad3d17002b3027026483658d0df924a5d71b12251128ba89bee3a9d7c1d03a5983830accf0340445a1331 SHA512 f25bae6c083894139ba1e3dbd24f010e1c4695bdfe4c2499d31f2f0bd2f5688b662ea15666b46f174fc75f0aa6f5cd114456f735b1d49bcf33322221b6f57ff5 +DIST hfstospell-0.5.4.tar.gz 158435 BLAKE2B fdf044f23a020d412b4bbca269cfbafd89955535a76e20c6ce9500ce1295dc052352560779587c95c43d7a4e984dfc081b78b2e0fff7c57f587967682e022925 SHA512 989d218718010a3f1ad7c3284287f62cb5aeef9d0dcd14f5898d919d088b212977a3e98fc7faf4040a65c3a7791b6fd4a54e10c6ca4e9a68595dfbd0227555a3 diff --git a/dev-util/hfstospell/hfstospell-0.5.4.ebuild b/dev-util/hfstospell/hfstospell-0.5.4.ebuild new file mode 100644 index 000000000000..270fe676f6a7 --- /dev/null +++ b/dev-util/hfstospell/hfstospell-0.5.4.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools toolchain-funcs + +DESCRIPTION="HFST spell checker library and command line tool" +HOMEPAGE="https://github.com/hfst/hfst-ospell" +SRC_URI="https://github.com/hfst/hfst-ospell/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~loong ~riscv ~x86" +IUSE="clang" + +DEPEND="app-arch/libarchive:= + dev-libs/icu:= + !clang? ( + dev-cpp/glibmm:2 + dev-cpp/libxmlpp:2.6 + dev-libs/glib:2 + dev-libs/libsigc++:2 + dev-libs/libxml2 + )" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +S="${WORKDIR}/hfst-ospell-${PV}" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + + local myeconfargs=( + --disable-extra-demos + + --enable-hfst-ospell-office + --enable-hfst-ospell-predict + --enable-zhfst + ) + + # https://github.com/hfst/hfst-ospell/issues/48 + if tc-is-clang; then + myeconfargs+=( + --without-libxmlpp + --without-tinyxml2 + ) + elif use clang; then + myeconfargs+=( + --without-libxmlpp + --without-tinyxml2 + ) + else + myeconfargs+=( + --with-libxmlpp + --without-tinyxml2 + ) + fi + + econf "${myeconfargs[@]}" +} + +src_install() { + default + find "${D}" -name '*.la' -delete -o -name '*.a' -delete || die +}