diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-12-18 15:11:02 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-12-18 15:11:02 +0000 |
commit | 0fb71e0215ed52863e462cccef73c01aff44d43d (patch) | |
tree | 428fc3fa92f9c69ed02878e9b6151a9fb810e651 /app-text/crf++/crf++-0.58.ebuild | |
parent | 9bd54251864651f49e673a08aec9ef79cfe08f04 (diff) |
gentoo resync : 18.12.2017
Diffstat (limited to 'app-text/crf++/crf++-0.58.ebuild')
-rw-r--r-- | app-text/crf++/crf++-0.58.ebuild | 52 |
1 files changed, 29 insertions, 23 deletions
diff --git a/app-text/crf++/crf++-0.58.ebuild b/app-text/crf++/crf++-0.58.ebuild index 7518e894e2e9..c358043e7e8e 100644 --- a/app-text/crf++/crf++-0.58.ebuild +++ b/app-text/crf++/crf++-0.58.ebuild @@ -1,55 +1,61 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI="3" -inherit autotools eutils +EAPI="6" + +inherit autotools + +MY_P="${P^^[crf]}" -MY_P="${P/crf/CRF}" DESCRIPTION="Yet Another CRF toolkit for segmenting/labelling sequential data" -HOMEPAGE="https://crfpp.googlecode.com/svn/trunk/doc/index.html" -SRC_URI="https://crfpp.googlecode.com/files/${MY_P}.tar.gz" +HOMEPAGE="https://taku910.github.io/crfpp/" +SRC_URI="mirror://gentoo/${MY_P}.tar.gz" LICENSE="|| ( BSD LGPL-2.1 )" SLOT="0" -KEYWORDS="~amd64 ~x86 ~x86-fbsd" +KEYWORDS="amd64 x86 ~x86-fbsd" IUSE="examples static-libs" S="${WORKDIR}/${MY_P}" +PATCHES=( "${FILESDIR}"/${PN}-automake-1.13.patch ) +HTML_DOCS=( doc/. ) + src_prepare() { sed -i \ -e "/CFLAGS/s/-O3/${CFLAGS}/" \ -e "/CXXFLAGS/s/-O3/${CXXFLAGS}/" \ - configure.in || die + configure.in + default + mv configure.{in,ac} || die eautoreconf } src_configure() { - econf $(use_enable static-libs static) || die + econf $(use_enable static-libs static) } src_test() { - for task in example/* ; do - ( - cd "${task}" - ./exec.sh || die "failed test in ${task}" - ) + local d + for d in example/*; do + cd "${d}" + ./exec.sh || die "failed test in ${d}" + cd - >/dev/null done } src_install() { - emake DESTDIR="${D}" install || die + emake DESTDIR="${D}" install + einstalldocs - if ! use static-libs ; then - find "${ED}" -name "*.la" -type f -delete || die + if use examples; then + docompress -x /usr/share/doc/${PF}/example + insinto /usr/share/doc/${PF} + doins -r example fi - dodoc AUTHORS README || die - dohtml -r doc/* || die - - if use examples ; then - insinto /usr/share/doc/${PF} - doins -r example || die + if ! use static-libs; then + find "${ED}" -name "*.la" -type f -delete || die fi } |