sci-mathematics/lpsolve: Port to EAPI 6
authorDavid Seifert <soap@gentoo.org>
Sun, 27 May 2018 07:36:39 +0000 (09:36 +0200)
committerDavid Seifert <soap@gentoo.org>
Sun, 27 May 2018 07:54:19 +0000 (09:54 +0200)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

sci-mathematics/lpsolve/lpsolve-5.5.2.0.ebuild

index dd828ca40d5a9ad0016b2a79e18803d67680db73..5de810343b298a7bedd9051379d42d4b8889d0d6 100644 (file)
@@ -1,7 +1,7 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
+EAPI=6
 
 DESCRIPTION="Mixed Integer Linear Programming (MILP) solver"
 HOMEPAGE="https://sourceforge.net/projects/lpsolve/"
@@ -17,12 +17,14 @@ RDEPEND="${DEPEND}"
 
 src_configure() {
        econf \
-               $(use_enable static-libs static) \
-               --docdir="${EPREFIX}/usr/share/doc/${PF}"
+               $(use_enable static-libs static)
 }
 
 src_install() {
        default
+
        # required because it does not provide .pc file
-       use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
+       if ! use static-libs; then
+               find "${D}" -name '*.la' -delete || die
+       fi
 }