sys-cluster/openais: bump EAPI and drop base eclass
authorAaron Bauman <bman@gentoo.org>
Thu, 31 May 2018 21:54:23 +0000 (17:54 -0400)
committerAaron Bauman <bman@gentoo.org>
Fri, 1 Jun 2018 14:05:16 +0000 (10:05 -0400)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

sys-cluster/openais/openais-1.1.4-r1.ebuild

index bf42581c57c3a20aad183ecca7a0e2ce05db60fd..7a6db5be9bb29960ddad71c52fb17b7f81c54cdb 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="2"
+EAPI=6
 
-inherit autotools base
+inherit autotools
 
 DESCRIPTION="Open Application Interface Specification cluster framework"
 HOMEPAGE="http://www.openais.org/"
@@ -21,6 +21,8 @@ DEPEND="${RDEPEND}
 DOCS=( "${S}/AUTHORS" "${S}/README.amf" )
 
 src_prepare() {
+       default
+
        # respect CFLAGS
        sed -i -e "s/\$OPT_CFLAGS \$GDB_FLAGS//" configure.ac || die
        # respect LDFLAGS
@@ -28,18 +30,22 @@ src_prepare() {
                services/Makefile.am || die
        # don't install docs
        sed -i -e "/^dist_doc/d" Makefile.am || die
+
        eautoreconf
 }
 
 src_configure() {
        econf \
-               --disable-dependency-tracking \
-               --docdir=/usr/share/doc/${PF} \
-               --localstatedir=/var
+               --docdir="${EPREFIX}"/usr/share/doc/${PF} \
+               --localstatedir="${EPREFIX}"/var
 }
 
 src_install() {
-       base_src_install
        rm -rf "${D}"/etc/init.d/openais || die
-       use static-libs || rm -rf "${D}"/usr/$(get_libdir)/*.a || die
+
+       if ! use static-libs; then
+               find "${D}" -name '*.la' -delete || die "Pruning failed"
+       fi
+
+       default
 }