summaryrefslogtreecommitdiff
path: root/app-text/crf++/crf++-0.58-r1.ebuild
blob: c10b4b472085ec41bdff6034844c794238a85e1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2022 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 )
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
}