From 096dd1caf829e0fc6e26efd0105fc418e9668f90 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Wed, 18 Apr 2018 21:28:54 +0200 Subject: sci-libs/libnova: Port to EAPI 6 Package-Manager: Portage-2.3.30, Repoman-2.3.9 --- sci-libs/libnova/libnova-0.15.0.ebuild | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) (limited to 'sci-libs/libnova') diff --git a/sci-libs/libnova/libnova-0.15.0.ebuild b/sci-libs/libnova/libnova-0.15.0.ebuild index 5f190893d757..ae5bae199566 100644 --- a/sci-libs/libnova/libnova-0.15.0.ebuild +++ b/sci-libs/libnova/libnova-0.15.0.ebuild @@ -1,10 +1,9 @@ # Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=6 -AUTOTOOLS_AUTORECONF=1 -inherit autotools-utils +inherit autotools DESCRIPTION="Celestial Mechanics and Astronomical Calculation Library" HOMEPAGE="http://libnova.sourceforge.net/" @@ -19,22 +18,33 @@ DEPEND="doc? ( app-doc/doxygen )" RDEPEND="" src_prepare() { + default sed -i -e '/CFLAGS=-Wall/d' configure.in || die - autotools-utils_src_prepare + mv configure.{in,ac} || die + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) } src_compile() { - autotools-utils_src_compile - use doc && autotools-utils_src_compile -C doc doc + default + use doc && emake -C doc doc } src_install() { - autotools-utils_src_install - use doc && dohtml doc/html/* + use doc && HTML_DOCS=( doc/html/. ) + default + if use examples; then - make clean - rm examples/Makefile* - insinto /usr/share/doc/${PF} - doins -r examples + emake clean + rm examples/Makefile* || die + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + if ! use static-libs; then + find "${D}" -name '*.la' -delete || die fi } -- cgit v1.2.3-65-gdbad