diff options
Diffstat (limited to 'app-text/crf++/crf++-0.58-r2.ebuild')
-rw-r--r-- | app-text/crf++/crf++-0.58-r2.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app-text/crf++/crf++-0.58-r2.ebuild b/app-text/crf++/crf++-0.58-r2.ebuild new file mode 100644 index 000000000000..abab5dad11cd --- /dev/null +++ b/app-text/crf++/crf++-0.58-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Yet Another CRF toolkit for segmenting/labelling sequential data" +HOMEPAGE="https://taku910.github.io/crfpp/" +SRC_URI="mirror://gentoo/${P^^}.tar.gz" +S="${WORKDIR}/${P^^}" + +LICENSE="|| ( BSD LGPL-2.1 )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +PATCHES=( + "${FILESDIR}"/${P}-autotools.patch + "${FILESDIR}"/${P}-registers.patch +) +HTML_DOCS=( doc/. ) + +src_prepare() { + default + eautoreconf +} + +src_test() { + local d + for d in example/*; do + pushd "${d}" >/dev/null || die + ./exec.sh || die "failed test in ${d}" + popd >/dev/null || die + done +} + +src_install() { + default + + if use examples; then + dodoc -r example + docompress -x /usr/share/doc/${PF}/example + fi + + find "${ED}" -name '*.la' -type f -delete || die +} |