summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-01-05 22:51:02 +0000
committerSam James <sam@gentoo.org>2021-01-05 22:51:05 +0000
commit888e587e4f54bf6871db1e0dc8e9ab3809902ebe (patch)
treecfbe60ceace790273ea86b366a8bd3f934158f90 /sci-libs
parentmedia-tv/dtv-scan-tables: Drop ppc64 keywords (diff)
downloadgentoo-888e587e4f54bf6871db1e0dc8e9ab3809902ebe.tar.gz
gentoo-888e587e4f54bf6871db1e0dc8e9ab3809902ebe.tar.bz2
gentoo-888e587e4f54bf6871db1e0dc8e9ab3809902ebe.zip
sci-libs/superlu: convert to EAPI 7 in 4.x
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/superlu/superlu-4.3-r2.ebuild (renamed from sci-libs/superlu/superlu-4.3-r1.ebuild)53
1 files changed, 31 insertions, 22 deletions
diff --git a/sci-libs/superlu/superlu-4.3-r1.ebuild b/sci-libs/superlu/superlu-4.3-r2.ebuild
index 1c9edf1a9d4a..7ff9a6d2020e 100644
--- a/sci-libs/superlu/superlu-4.3-r1.ebuild
+++ b/sci-libs/superlu/superlu-4.3-r2.ebuild
@@ -1,37 +1,34 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
-AUTOTOOLS_AUTORECONF=true
-AUTOTOOLS_IN_SOURCE_BUILD=1
-
-inherit autotools-utils fortran-2 toolchain-funcs multilib
+inherit autotools fortran-2 toolchain-funcs
MY_PN=SuperLU
DESCRIPTION="Sparse LU factorization library"
HOMEPAGE="https://crd-legacy.lbl.gov/~xiaoye/SuperLU/"
SRC_URI="https://crd-legacy.lbl.gov/~xiaoye/SuperLU/${PN}_${PV}.tar.gz"
+S="${WORKDIR}/${MY_PN}_${PV}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~hppa ppc ppc64 x86 ~amd64-linux ~x86-linux"
-IUSE="doc examples static-libs test"
+IUSE="doc examples test"
RESTRICT="!test? ( test )"
-RDEPEND="
- virtual/blas"
-DEPEND="${RDEPEND}
+RDEPEND="virtual/blas"
+DEPEND="${RDEPEND}"
+BDEPEND="
virtual/pkgconfig
- test? ( app-shells/tcsh )"
-
-S="${WORKDIR}/${MY_PN}_${PV}"
+ test? ( app-shells/tcsh )
+"
PATCHES=(
"${FILESDIR}"/${P}-autotools.patch
"${FILESDIR}"/${P}-format-security.patch
- )
+)
src_prepare() {
unset VERBOSE
@@ -40,17 +37,22 @@ src_prepare() {
-e "s:= ranlib:= $(tc-getRANLIB):g" \
-i make.inc || die
- autotools-utils_src_prepare
+ default
+ eautoreconf
}
src_configure() {
- local myeconfargs=( --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" )
- autotools-utils_src_configure
+ local myeconfargs=(
+ --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
+ )
+
+ econf
+
rm EXAMPLE/*itersol1 || die
}
src_test() {
- cd "${BUILD_DIR}"/TESTING
+ cd TESTING || die
emake -j1 \
CC="$(tc-getCC)" \
FORTRAN="$(tc-getFC)" \
@@ -65,10 +67,17 @@ src_test() {
}
src_install() {
- autotools-utils_src_install
- use doc && dodoc DOC/ug.pdf && dohtml DOC/html/*
+ default
+
+ if use doc; then
+ dodoc DOC/ug.pdf
+ dodoc DOC/html/*
+ fi
+
if use examples; then
- insinto /usr/share/doc/${PF}/examples
- doins -r EXAMPLE FORTRAN
+ docinto examples
+ dodoc EXAMPLE FORTRAN
fi
+
+ find "${ED}" -name "*.a" -delete || die
}