commit:     0b1e1d868ca34c28fcfbcb5e30d2ed0e63c94039
Author:     Bernd Waibel <waebbl <AT> gmail <DOT> com>
AuthorDate: Fri Nov  9 16:36:54 2018 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Fri Jul 12 10:55:21 2019 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=0b1e1d86

sci-mathematics/petsc: fix blas configuration error

* add blas to call to pkg-config for blas/lapack
* make EAPI 7 compatible, remove versionator.eclass
* change --with-cmake= variable to avoid warning

Thanks to @ycoudier for hint on pkg-config

Suggested-by: @ycoudier
Closes: https://bugs.gentoo.org/669040
Closes: https://github.com/gentoo/sci/issues/892
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Bernd Waibel <waebbl <AT> gmail.com>
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>

 sci-mathematics/petsc/petsc-3.10.0.ebuild | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/sci-mathematics/petsc/petsc-3.10.0.ebuild 
b/sci-mathematics/petsc/petsc-3.10.0.ebuild
index b67536ef6..80dfd5255 100644
--- a/sci-mathematics/petsc/petsc-3.10.0.ebuild
+++ b/sci-mathematics/petsc/petsc-3.10.0.ebuild
@@ -1,17 +1,15 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
 PYTHON_COMPAT=( python2_7 )
 
-inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator
-
-MY_P="${PN}-$(replace_version_separator _ -)"
+inherit flag-o-matic fortran-2 python-any-r1 toolchain-funcs
 
 DESCRIPTION="Portable, Extensible Toolkit for Scientific Computation"
 HOMEPAGE="http://www.mcs.anl.gov/petsc/";
-SRC_URI="http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/${MY_P}.tar.gz";
+SRC_URI="http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/${P}.tar.gz";
 
 LICENSE="BSD-2"
 SLOT="0"
@@ -54,8 +52,6 @@ DEPEND="${RDEPEND}
        dev-util/cmake
 "
 
-S="${WORKDIR}/${MY_P}"
-
 PATCHES=(
        "${FILESDIR}"/${PN}-3.7.0-disable-rpath.patch \
        "${FILESDIR}"/${PN}-3.9.0-fix_sandbox_violation.patch
@@ -143,7 +139,7 @@ src_configure() {
                --with-petsc-arch=${PETSC_ARCH} \
                --with-precision=double \
                --with-gnu-compilers \
-               --with-blas-lapack-lib="$($(tc-getPKG_CONFIG) --libs lapack)" \
+               --with-blas-lapack-lib="$($(tc-getPKG_CONFIG) --libs blas 
lapack)" \
                $(petsc_enable debug debugging) \
                $(petsc_enable mpi) \
                $(petsc_select mpi cc mpicc $(tc-getCC)) \
@@ -154,7 +150,7 @@ src_configure() {
                $(petsc_select complex-scalars scalar-type complex real) \
                --with-windows-graphics=0 \
                --with-matlab=0 \
-               --with-cmake=cmake \
+               --with-cmake:BOOL=1 \
                $(petsc_enable threads pthread) \
                $(petsc_with afterimage afterimage \
                        /usr/include/libAfterImage -lAfterImage) \

Reply via email to