From 45e8a9d6dbbd8e18332f8b500fdb97ae7c9a4648 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sun, 27 May 2018 09:36:39 +0200 Subject: [PATCH] sci-mathematics/lpsolve: Port to EAPI 6 Package-Manager: Portage-2.3.40, Repoman-2.3.9 --- sci-mathematics/lpsolve/lpsolve-5.5.2.0.ebuild | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sci-mathematics/lpsolve/lpsolve-5.5.2.0.ebuild b/sci-mathematics/lpsolve/lpsolve-5.5.2.0.ebuild index dd828ca40d5a..5de810343b29 100644 --- a/sci-mathematics/lpsolve/lpsolve-5.5.2.0.ebuild +++ b/sci-mathematics/lpsolve/lpsolve-5.5.2.0.ebuild @@ -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 } -- 2.26.2