commit:     36e58bd383f463bc43de82b5c0691adf7454915e
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 15 11:53:31 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Dec 15 11:53:31 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36e58bd3

sci-libs/colpack: Remove USE="static-libs"

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sci-libs/colpack/colpack-1.0.10.ebuild | 25 +++++++++++--------------
 1 file changed, 11 insertions(+), 14 deletions(-)

diff --git a/sci-libs/colpack/colpack-1.0.10.ebuild 
b/sci-libs/colpack/colpack-1.0.10.ebuild
index 9ba8c09a081..b432192067c 100644
--- a/sci-libs/colpack/colpack-1.0.10.ebuild
+++ b/sci-libs/colpack/colpack-1.0.10.ebuild
@@ -1,31 +1,29 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-inherit autotools eutils ltprune toolchain-funcs
+inherit autotools toolchain-funcs
 
 MYPN="ColPack"
 
 DESCRIPTION="C++ algorithms for specialized vertex coloring problems"
-LICENSE="GPL-3 LGPL-3"
 HOMEPAGE="http://cscapes.cs.purdue.edu/coloringpage/";
 SRC_URI="https://github.com/CSCsw/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
+LICENSE="GPL-3 LGPL-3"
 SLOT="0"
-IUSE="openmp static-libs"
 KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 
~amd64-linux ~x86-linux"
-
-RDEPEND=""
-DEPEND="${RDEPEND}"
+IUSE="openmp"
 
 S="${WORKDIR}/${MYPN}-${PV}"
 
+pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
 pkg_setup() {
-       if [[ ${MERGE_TYPE} != "binary" ]] && use openmp && [[ $(tc-getCC)$ == 
*gcc* ]] &&      ! tc-has-openmp; then
-               ewarn "You are using gcc without OpenMP"
-               die "Need an OpenMP capable compiler"
-       fi
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
 
 src_prepare() {
@@ -36,13 +34,12 @@ src_prepare() {
 
 src_configure() {
        econf \
-               --enable-shared \
-               $(use_enable static-libs static) \
+               --disable-static \
                $(use_enable openmp)
 }
 
 src_install() {
        default
        rm -rf "${ED}"/usr/examples
-       use static-libs || prune_libtool_files --all
+       find "${ED}" -name '*.la' -delete || die
 }

Reply via email to