You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.2 KiB
60 lines
1.2 KiB
13 years ago
|
# Copyright 1999-2011 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/app-text/crf++/crf++-0.54.ebuild,v 1.4 2011/09/04 10:19:01 maekke Exp $
|
||
|
|
||
|
EAPI="3"
|
||
|
inherit autotools eutils
|
||
|
|
||
|
MY_P="${P/crf/CRF}"
|
||
|
DESCRIPTION="Yet Another CRF toolkit for segmenting/labelling sequential data"
|
||
|
HOMEPAGE="http://crfpp.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/crfpp/${MY_P}.tar.gz"
|
||
|
|
||
|
LICENSE="|| ( BSD LGPL-2.1 )"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="amd64 x86 ~x86-fbsd"
|
||
|
IUSE="examples static-libs"
|
||
|
|
||
|
S="${WORKDIR}/${MY_P}"
|
||
|
|
||
|
src_prepare() {
|
||
|
sed -i \
|
||
|
-e "/CFLAGS/s/-O3/${CFLAGS}/" \
|
||
|
-e "/CXXFLAGS/s/-O3/${CXXFLAGS}/" \
|
||
|
configure.in || die
|
||
|
|
||
|
# bug #365921
|
||
|
epatch "${FILESDIR}/${P}-gcc46.patch"
|
||
|
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf $(use_enable static-libs static) || die
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
for task in example/* ; do
|
||
|
(
|
||
|
cd "${task}"
|
||
|
./exec.sh || die "failed test in ${task}"
|
||
|
)
|
||
|
done
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
emake DESTDIR="${D}" install || die
|
||
|
|
||
|
if ! use static-libs ; then
|
||
|
find "${ED}" -name "*.la" -type f -delete || die
|
||
|
fi
|
||
|
|
||
|
dodoc AUTHORS README || die
|
||
|
dohtml -r doc/* || die
|
||
|
|
||
|
if use examples ; then
|
||
|
insinto /usr/share/doc/${PF}
|
||
|
doins -r example || die
|
||
|
fi
|
||
|
}
|