sci-misc/hfst - 3.16.2 (flammie)

Search

Package Information

Description:
Helsinki Finite-State Technology libraries and tools
Homepage:
http://hfst.sf.net/
License:
GPL-2 GPL-3 Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
3.16.2 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
DISTUTILS_OPTIONAL=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10,11,12,13} )
inherit distutils-r1  autotools

DESCRIPTION="Helsinki Finite-State Technology libraries and tools"
HOMEPAGE="http://hfst.sf.net/"
SRC_URI="https://github.com/hfst/hfst/releases/download/v${PV}/${P}.tar.gz"
LICENSE="GPL-2 GPL-3 Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="minimal python"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

COMMON_DEPEND="python? ( ${PYTHON_DEPS} )
sci-misc/openfst
dev-libs/foma
"
DEPEND=">=sys-devel/flex-2.5.35
>=sys-devel/bison-2.4
${COMMON_DEPEND}"
RDEPEND="${COMMON_DEPEND}"

src_prepare() {
	eapply_user
	eautoreconf
}

src_configure() {
	econf $(use_enable !minimal all-tools )
}

src_compile() {
	default_src_compile
	if use python ; then
		cd "${S}/python"
		python_foreach_impl esetup.py build_ext --inplace --local-hfst
		distutils-r1_src_compile
	fi
}

src_install() {
	default_src_install
	if use python ; then
		cd "${S}/python"
		distutils-r1_src_install
	fi
}

USE Flags

Dependencies

DEPEND

>=sys-devel/flex-2.5.35
>=sys-devel/bison-2.4
python? ( ${PYTHON_DEPS} )
sci-misc/openfst
dev-libs/foma

RDEPEND

python? ( ${PYTHON_DEPS} )
sci-misc/openfst
dev-libs/foma

Manifest for 3.16.2

Type File Size Source URLs
DIST hfst-3.16.2.tar.gz 2647229 bytes https://github.com/hfst/hfst/releases/download/v3.16.2/hfst-3.16.2.tar.gz