[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/files/, sci-mathematics/petsc/
commit: 56534d2726843525afa4f90024a8ba51c5c66383 Author: Matthias Maier gentoo org> AuthorDate: Mon Aug 5 06:46:08 2019 + Commit: Matthias Maier gentoo org> CommitDate: Mon Aug 5 06:46:08 2019 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=56534d27 sci-mathematics/petsc: merge into ::gentoo and remove from overlay. Signed-off-by: Matthias Maier gentoo.org> .../petsc/files/petsc-3.7.0-disable-rpath.patch| 18 -- .../files/petsc-3.9.0-fix_sandbox_violation.patch | 17 -- sci-mathematics/petsc/metadata.xml | 23 --- sci-mathematics/petsc/petsc-3.10.0.ebuild | 192 - sci-mathematics/petsc/petsc-3.10.4.ebuild | 192 - sci-mathematics/petsc/petsc-3.11.1.ebuild | 191 sci-mathematics/petsc/petsc-3.11.3.ebuild | 191 7 files changed, 824 deletions(-) diff --git a/sci-mathematics/petsc/files/petsc-3.7.0-disable-rpath.patch b/sci-mathematics/petsc/files/petsc-3.7.0-disable-rpath.patch deleted file mode 100644 index 8d0d99330..0 --- a/sci-mathematics/petsc/files/petsc-3.7.0-disable-rpath.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff --git a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py -index 219a35b..ad2ed8c 100644 a/config/BuildSystem/config/setCompilers.py -+++ b/config/BuildSystem/config/setCompilers.py -@@ -1385,12 +1385,7 @@ class Configure(config.base.Configure): - for language in languages: - flag = '-L' - self.pushLanguage(language) -- # test '-R' before '-rpath' as sun compilers [c,fortran] don't give proper errors with wrong options. -- if not Configure.isDarwin(self.log): --testFlags = ['-Wl,-rpath,', '-R','-rpath ' , '-Wl,-R,'] -- else: --testFlags = ['-Wl,-rpath,'] -- # test '-R' before '-Wl,-rpath' for SUN compilers [as cc on linux accepts -Wl,-rpath, but f90 & CC do not. -+ testFlags = [] - if self.isSun(self.framework.getCompiler(), self.log): - testFlags.insert(0,'-R') - for testFlag in testFlags: diff --git a/sci-mathematics/petsc/files/petsc-3.9.0-fix_sandbox_violation.patch b/sci-mathematics/petsc/files/petsc-3.9.0-fix_sandbox_violation.patch deleted file mode 100644 index 97f8dfed4..0 --- a/sci-mathematics/petsc/files/petsc-3.9.0-fix_sandbox_violation.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/config/PETSc/options/installDir.py b/config/PETSc/options/installDir.py -index 92f190d..047c85b 100644 a/config/PETSc/options/installDir.py -+++ b/config/PETSc/options/installDir.py -@@ -41,12 +41,6 @@ class Configure(config.base.Configure): - self.dir = os.path.abspath(os.path.expanduser(self.framework.argDB['prefix'])) - self.petscDir = self.dir - self.petscArch = '' -- try: --os.makedirs(os.path.join(self.dir,'PETScTestDirectory')) --os.rmdir(os.path.join(self.dir,'PETScTestDirectory')) -- except: --self.installSudoMessage = 'You do not have write permissions to the --prefix directory '+self.dir+'\nYou will be prompted for the sudo password for any external package installs' --self.installSudo = 'sudo ' - else: - self.dir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) - self.petscDir = self.petscdir.dir diff --git a/sci-mathematics/petsc/metadata.xml b/sci-mathematics/petsc/metadata.xml deleted file mode 100644 index 8c9c01d83..0 --- a/sci-mathematics/petsc/metadata.xml +++ /dev/null @@ -1,23 +0,0 @@ - -http://www.gentoo.org/dtd/metadata.dtd";> - - - tam...@gentoo.org - Matthias Maier - - - sci-mathemat...@gentoo.org - Gentoo Mathematics Project - - - Use Afterstep image library (media-libs/libafterimage) - Use boost (dev-libs/boost) - Use HYPRE (sci-mathematics/hypre) and for preconditioning - Make scalars complex - Add support for metis (sci-libs/parmetis) - Use suitesparse (sci-libs/suitesparse) including cholmod (sci-libs/cholmod) for sparse factorization - Use superlu (sci-libs/superlu) for preconditioning - Add support for mumps (sci-libs/mumps) - Add support for scotch (sci-libs/scotch) - - diff --git a/sci-mathematics/petsc/petsc-3.10.0.ebuild b/sci-mathematics/petsc/petsc-3.10.0.ebuild deleted file mode 100644 index 80dfd5255..0 --- a/sci-mathematics/petsc/petsc-3.10.0.ebuild +++ /dev/null @@ -1,192 +0,0 @@ -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 ) - -inherit flag-o-matic fortran-2 python-any-r1 toolchain-funcs - -DESCRIPTION="Portable, Extensible Toolkit for Scientific Computation" -HOMEPAGE="http://www.m
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: b3ce34b463fb20b65ade548d959fae9ac81ed606 Author: Matthias Maier gentoo org> AuthorDate: Fri Jul 12 12:12:08 2019 + Commit: Matthias Maier gentoo org> CommitDate: Fri Jul 12 12:12:08 2019 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=b3ce34b4 sci-mathematics/petsc: switch back to EAPI 6 for the time being Package-Manager: Portage-2.3.68, Repoman-2.3.16 Signed-off-by: Matthias Maier gentoo.org> sci-mathematics/petsc/petsc-3.11.3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-mathematics/petsc/petsc-3.11.3.ebuild b/sci-mathematics/petsc/petsc-3.11.3.ebuild index 59a9cff21..99676386d 100644 --- a/sci-mathematics/petsc/petsc-3.11.3.ebuild +++ b/sci-mathematics/petsc/petsc-3.11.3.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=6 PYTHON_COMPAT=( python2_7 )
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/files/, sci-mathematics/petsc/
commit: fd85a467bb08d7e711568fd09cc890755878ba62 Author: Matthias Maier gentoo org> AuthorDate: Fri Jul 12 10:56:29 2019 + Commit: Matthias Maier gentoo org> CommitDate: Fri Jul 12 10:56:29 2019 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=fd85a467 sci-mathematics/petsc: drop old Package-Manager: Portage-2.3.68, Repoman-2.3.16 Signed-off-by: Matthias Maier gentoo.org> .../files/petsc-3.8.3-fix_sandbox_violation.patch | 17 -- sci-mathematics/petsc/petsc-3.8.4.ebuild | 205 - sci-mathematics/petsc/petsc-3.9.4.ebuild | 196 3 files changed, 418 deletions(-) diff --git a/sci-mathematics/petsc/files/petsc-3.8.3-fix_sandbox_violation.patch b/sci-mathematics/petsc/files/petsc-3.8.3-fix_sandbox_violation.patch deleted file mode 100644 index 4f51aee81..0 --- a/sci-mathematics/petsc/files/petsc-3.8.3-fix_sandbox_violation.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/config/PETSc/options/installDir.py b/config/PETSc/options/installDir.py -index 975dc8a..c216941 100644 a/config/PETSc/options/installDir.py -+++ b/config/PETSc/options/installDir.py -@@ -39,12 +39,6 @@ class Configure(config.base.Configure): - if self.framework.argDB['prefix']: - self.dir = os.path.abspath(os.path.expanduser(self.framework.argDB['prefix'])) - self.addMakeMacro('PREFIXDIR',self.dir) -- try: --os.makedirs(os.path.join(self.dir,'PETScTestDirectory')) --os.rmdir(os.path.join(self.dir,'PETScTestDirectory')) -- except: --self.installSudoMessage = 'You do not have write permissions to the --prefix directory '+self.dir+'\nYou will be prompted for the sudo password for any external package installs' --self.installSudo = 'sudo ' - else: - self.dir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) - self.confDir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) diff --git a/sci-mathematics/petsc/petsc-3.8.4.ebuild b/sci-mathematics/petsc/petsc-3.8.4.ebuild deleted file mode 100644 index c47619aaf..0 --- a/sci-mathematics/petsc/petsc-3.8.4.ebuild +++ /dev/null @@ -1,205 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# 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 _ -)" - -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"; - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="afterimage boost complex-scalars cxx debug doc fftw - fortran hdf5 hypre mpi metis mumps scotch sparse superlu threads X" - -# hypre and superlu curretly exclude each other due to missing linking to hypre -# if both are enabled -REQUIRED_USE=" - afterimage? ( X ) - complex-scalars? ( !hypre !superlu ) - hdf5? ( mpi ) - hypre? ( cxx mpi !superlu ) - mumps? ( mpi scotch ) - scotch? ( mpi ) - superlu? ( !hypre ) -" - -RDEPEND=" - virtual/blas - virtual/lapack - afterimage? ( media-libs/libafterimage ) - boost? ( dev-libs/boost ) - fftw? ( sci-libs/fftw:3.0[mpi?] ) - hdf5? ( sci-libs/hdf5[mpi?] ) - hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) - metis? ( >=sci-libs/parmetis-4 ) - mpi? ( virtual/mpi[cxx?,fortran?] ) - mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) - scotch? ( sci-libs/scotch[mpi?] ) - sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) - superlu? ( >=sci-libs/superlu-5 ) - X? ( x11-libs/libX11 ) -" - -DEPEND="${RDEPEND} - ${PYTHON_DEPS} - virtual/pkgconfig - dev-util/cmake -" - -# -# PETSc does not want its Makefiles to be invoked with anything higher than -# -j1. The underlying build system does automatically invoke a parallel -# build. This might not be what you want, but *hey* not your choice. -# -# V=1 enables verbose output with full compiler and linker invocation -# -MAKEOPTS="${MAKEOPTS} -j1 V=1" - -S="${WORKDIR}/${MY_P}" - -PATCHES=( - "${FILESDIR}"/${PN}-3.7.0-disable-rpath.patch \ - "${FILESDIR}"/${PN}-3.8.3-fix_sandbox_violation.patch -) - -src_prepare() { - default - - sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die -} - -# petsc uses --with-blah=1 and --with-blah=0 to en/disable options -petsc_enable() { - use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" -} -# add external library: -# petsc_with use_flag libname libdir -# petsc_with use_flag libname include linking_libs -petsc_with() { - local myuse p=${2:-${1}} - if use ${1}; then - myuse="--with-${p}=1" - if [[ $# -ge 4 ]]; then - myuse="${
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 817744adda580e8ccdbc83ec6b29e00426f83591 Author: Matthias Maier gentoo org> AuthorDate: Fri Jul 12 10:58:53 2019 + Commit: Matthias Maier gentoo org> CommitDate: Fri Jul 12 10:58:53 2019 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=817744ad sci-mathematics/petsc: version bump to 3.11.3 Package-Manager: Portage-2.3.68, Repoman-2.3.16 Signed-off-by: Matthias Maier gentoo.org> sci-mathematics/petsc/petsc-3.11.3.ebuild | 191 ++ 1 file changed, 191 insertions(+) diff --git a/sci-mathematics/petsc/petsc-3.11.3.ebuild b/sci-mathematics/petsc/petsc-3.11.3.ebuild new file mode 100644 index 0..59a9cff21 --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.11.3.ebuild @@ -0,0 +1,191 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 ) + +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/${P}.tar.gz"; + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi metis mumps scotch sparse superlu threads X" + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + complex-scalars? ( !hypre !superlu ) + hdf5? ( mpi ) + hypre? ( cxx mpi !superlu ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + superlu? ( !hypre ) +" + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + metis? ( >=sci-libs/parmetis-4 ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( >=sci-libs/superlu-5 ) + X? ( x11-libs/libX11 ) +" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + dev-util/cmake +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.7.0-disable-rpath.patch \ + "${FILESDIR}"/${PN}-3.9.0-fix_sandbox_violation.patch +) + +src_prepare() { + default + + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +# petsc uses --with-blah=1 and --with-blah=0 to en/disable options +petsc_enable() { + use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" +} +# add external library: +# petsc_with use_flag libname libdir +# petsc_with use_flag libname include linking_libs +petsc_with() { + local myuse p=${2:-${1}} + if use ${1}; then + myuse="--with-${p}=1" + if [[ $# -ge 4 ]]; then + myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" + shift 3 + myuse="${myuse} --with-${p}-lib=$@" + else + myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" + fi + else + myuse="--with-${p}=0" + fi + echo ${myuse} +} + +# select between configure options depending on use flag +petsc_select() { + use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" +} + +src_configure() { + # bug 548498 + # PETSc runs mpi processes during configure that result in a sandbox + # violation by trying to open /proc/mtrr rw. This is not easy to + # mitigate because it happens in libpciaccess.so called by libhwloc.so, + # which is used by libmpi.so. + addpredict /proc/mtrr + # if mpi is built with knem support it needs /dev/knem too + addpredict /dev/knem + + # configureMPITypes with openmpi-2* insists on accessing the scaling + # governor rw. + addpredict /sys/devices/system/cpu/ + + local mylang + local myopt + + use cxx && mylang="cxx" || mylang="c" + use debug && myopt="debug" || myopt="opt" + + # environmental variables expected by petsc during build + + export PETSC_DIR="${S}" + export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" + + if use debug; then + strip-flags + filter-flags -O* + fi + + # C Support on CXX builds is enabled if possible i.e. when not using + # complex scalars (no complex type for both available at the same time) + + econf \ + scrollOutput=1 \ + FFLAGS="${FFLAGS} -fPIC" \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ + LDFLAGS="${LDFLAGS}" \ + --prefix="${EPREFIX
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 0b1e1d868ca34c28fcfbcb5e30d2ed0e63c94039 Author: Bernd Waibel gmail com> AuthorDate: Fri Nov 9 16:36:54 2018 + Commit: Matthias Maier gentoo org> CommitDate: Fri Jul 12 10:55:21 2019 + 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 gmail.com> Signed-off-by: Matthias Maier 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) \
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: fcbf3687c7f71449e326be09015c1e7f6fb6d655 Author: Matthias Maier gentoo org> AuthorDate: Fri Jul 12 10:53:40 2019 + Commit: Matthias Maier gentoo org> CommitDate: Fri Jul 12 10:55:24 2019 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=fcbf3687 sci-mathematics/petsc: also apply patches to 3.10.4 and 3.11.1 Package-Manager: Portage-2.3.68, Repoman-2.3.16 Signed-off-by: Matthias Maier gentoo.org> sci-mathematics/petsc/petsc-3.10.4.ebuild | 14 +- sci-mathematics/petsc/petsc-3.11.1.ebuild | 14 +- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/sci-mathematics/petsc/petsc-3.10.4.ebuild b/sci-mathematics/petsc/petsc-3.10.4.ebuild index bc9a4b110..418196a8d 100644 --- a/sci-mathematics/petsc/petsc-3.10.4.ebuild +++ b/sci-mathematics/petsc/petsc-3.10.4.ebuild @@ -5,13 +5,11 @@ 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 @@ -83,7 +79,7 @@ petsc_with() { shift 3 myuse="${myuse} --with-${p}-lib=$@" else - myuse="${myuse}" + myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" fi else myuse="--with-${p}=0" @@ -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=true \ + --with-cmake:BOOL=1 \ $(petsc_enable threads pthread) \ $(petsc_with afterimage afterimage \ /usr/include/libAfterImage -lAfterImage) \ diff --git a/sci-mathematics/petsc/petsc-3.11.1.ebuild b/sci-mathematics/petsc/petsc-3.11.1.ebuild index e6517c680..99676386d 100644 --- a/sci-mathematics/petsc/petsc-3.11.1.ebuild +++ b/sci-mathematics/petsc/petsc-3.11.1.ebuild @@ -5,13 +5,11 @@ 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 @@ -83,7 +79,7 @@ petsc_with() { shift 3 myuse="${myuse} --with-${p}-lib=$@" else - myuse="${myuse}" + myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" fi else myuse="--with-${p}=0" @@ -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=true \ + --with-cmake:BOOL=1 \ $(petsc_enable threads p
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 2fffe2a798dc609fed219854bfd8a74a7470f250 Author: Matthias Maier gentoo org> AuthorDate: Mon May 13 14:49:54 2019 + Commit: Matthias Maier gentoo org> CommitDate: Mon May 13 15:02:21 2019 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=2fffe2a7 sci-mathematics/petsc: version bump to 3.11.1 Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Matthias Maier gentoo.org> sci-mathematics/petsc/petsc-3.11.1.ebuild | 195 ++ 1 file changed, 195 insertions(+) diff --git a/sci-mathematics/petsc/petsc-3.11.1.ebuild b/sci-mathematics/petsc/petsc-3.11.1.ebuild new file mode 100644 index 0..e6517c680 --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.11.1.ebuild @@ -0,0 +1,195 @@ +# Copyright 1999-2019 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 _ -)" + +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"; + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi metis mumps scotch sparse superlu threads X" + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + complex-scalars? ( !hypre !superlu ) + hdf5? ( mpi ) + hypre? ( cxx mpi !superlu ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + superlu? ( !hypre ) +" + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + metis? ( >=sci-libs/parmetis-4 ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( >=sci-libs/superlu-5 ) + X? ( x11-libs/libX11 ) +" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + 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 +) + +src_prepare() { + default + + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +# petsc uses --with-blah=1 and --with-blah=0 to en/disable options +petsc_enable() { + use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" +} +# add external library: +# petsc_with use_flag libname libdir +# petsc_with use_flag libname include linking_libs +petsc_with() { + local myuse p=${2:-${1}} + if use ${1}; then + myuse="--with-${p}=1" + if [[ $# -ge 4 ]]; then + myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" + shift 3 + myuse="${myuse} --with-${p}-lib=$@" + else + myuse="${myuse}" + fi + else + myuse="--with-${p}=0" + fi + echo ${myuse} +} + +# select between configure options depending on use flag +petsc_select() { + use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" +} + +src_configure() { + # bug 548498 + # PETSc runs mpi processes during configure that result in a sandbox + # violation by trying to open /proc/mtrr rw. This is not easy to + # mitigate because it happens in libpciaccess.so called by libhwloc.so, + # which is used by libmpi.so. + addpredict /proc/mtrr + # if mpi is built with knem support it needs /dev/knem too + addpredict /dev/knem + + # configureMPITypes with openmpi-2* insists on accessing the scaling + # governor rw. + addpredict /sys/devices/system/cpu/ + + local mylang + local myopt + + use cxx && mylang="cxx" || mylang="c" + use debug && myopt="debug" || myopt="opt" + + # environmental variables expected by petsc during build + + export PETSC_DIR="${S}" + export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" + + if use debug; then + strip-flags + filter-flags -O* + fi + + # C Support on CXX builds is enabled if possible i.e. when not using + # complex scalars (no complex type for both available at the same time) + + econf \ + scrollOutput=1 \ + FFLAGS="${FFLAGS} -fPIC" \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ +
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: f05910d7ef4b0be4822d8ceb59ba9606edaf14b4 Author: Matthias Maier gentoo org> AuthorDate: Sat Mar 9 05:41:08 2019 + Commit: Matthias Maier gentoo org> CommitDate: Sat Mar 9 06:07:10 2019 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=f05910d7 sci-mathematics/petsc: version bump to 3.10.4 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Matthias Maier gentoo.org> sci-mathematics/petsc/petsc-3.10.4.ebuild | 196 ++ 1 file changed, 196 insertions(+) diff --git a/sci-mathematics/petsc/petsc-3.10.4.ebuild b/sci-mathematics/petsc/petsc-3.10.4.ebuild new file mode 100644 index 0..bc9a4b110 --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.10.4.ebuild @@ -0,0 +1,196 @@ +# Copyright 1999-2019 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 _ -)" + +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"; + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi metis mumps scotch sparse superlu threads X" + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + complex-scalars? ( !hypre !superlu ) + hdf5? ( mpi ) + hypre? ( cxx mpi !superlu ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + superlu? ( !hypre ) +" + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + metis? ( >=sci-libs/parmetis-4 ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( >=sci-libs/superlu-5 ) + X? ( x11-libs/libX11 ) +" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + 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 +) + +src_prepare() { + default + + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +# petsc uses --with-blah=1 and --with-blah=0 to en/disable options +petsc_enable() { + use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" +} +# add external library: +# petsc_with use_flag libname libdir +# petsc_with use_flag libname include linking_libs +petsc_with() { + local myuse p=${2:-${1}} + if use ${1}; then + myuse="--with-${p}=1" + if [[ $# -ge 4 ]]; then + myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" + shift 3 + myuse="${myuse} --with-${p}-lib=$@" + else + myuse="${myuse}" + fi + else + myuse="--with-${p}=0" + fi + echo ${myuse} +} + +# select between configure options depending on use flag +petsc_select() { + use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" +} + +src_configure() { + # bug 548498 + # PETSc runs mpi processes during configure that result in a sandbox + # violation by trying to open /proc/mtrr rw. This is not easy to + # mitigate because it happens in libpciaccess.so called by libhwloc.so, + # which is used by libmpi.so. + addpredict /proc/mtrr + # if mpi is built with knem support it needs /dev/knem too + addpredict /dev/knem + + # configureMPITypes with openmpi-2* insists on accessing the scaling + # governor rw. + addpredict /sys/devices/system/cpu/ + + local mylang + local myopt + + use cxx && mylang="cxx" || mylang="c" + use debug && myopt="debug" || myopt="opt" + + # environmental variables expected by petsc during build + + export PETSC_DIR="${S}" + export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" + + if use debug; then + strip-flags + filter-flags -O* + fi + + # C Support on CXX builds is enabled if possible i.e. when not using + # complex scalars (no complex type for both available at the same time) + + econf \ + scrollOutput=1 \ + FFLAGS="${FFLAGS} -fPIC" \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ +
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 4e74b4feb6ee3dfcc3b6950869b21ef2c0cb1572 Author: Matthias Maier gentoo org> AuthorDate: Mon Sep 17 15:26:19 2018 + Commit: Matthias Maier gentoo org> CommitDate: Mon Sep 17 15:26:19 2018 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=4e74b4fe sci-mathematics/petsc: version bump to 3.10.0 Package-Manager: Portage-2.3.49, Repoman-2.3.10 sci-mathematics/petsc/petsc-3.10.0.ebuild | 196 ++ 1 file changed, 196 insertions(+) diff --git a/sci-mathematics/petsc/petsc-3.10.0.ebuild b/sci-mathematics/petsc/petsc-3.10.0.ebuild new file mode 100644 index 0..1755e242a --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.10.0.ebuild @@ -0,0 +1,196 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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 _ -)" + +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"; + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi metis mumps scotch sparse superlu threads X" + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + complex-scalars? ( !hypre !superlu ) + hdf5? ( mpi ) + hypre? ( cxx mpi !superlu ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + superlu? ( !hypre ) +" + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + metis? ( >=sci-libs/parmetis-4 ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( >=sci-libs/superlu-5 ) + X? ( x11-libs/libX11 ) +" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + 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 +) + +src_prepare() { + default + + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +# petsc uses --with-blah=1 and --with-blah=0 to en/disable options +petsc_enable() { + use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" +} +# add external library: +# petsc_with use_flag libname libdir +# petsc_with use_flag libname include linking_libs +petsc_with() { + local myuse p=${2:-${1}} + if use ${1}; then + myuse="--with-${p}=1" + if [[ $# -ge 4 ]]; then + myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" + shift 3 + myuse="${myuse} --with-${p}-lib=$@" + else + myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" + fi + else + myuse="--with-${p}=0" + fi + echo ${myuse} +} + +# select between configure options depending on use flag +petsc_select() { + use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" +} + +src_configure() { + # bug 548498 + # PETSc runs mpi processes during configure that result in a sandbox + # violation by trying to open /proc/mtrr rw. This is not easy to + # mitigate because it happens in libpciaccess.so called by libhwloc.so, + # which is used by libmpi.so. + addpredict /proc/mtrr + # if mpi is built with knem support it needs /dev/knem too + addpredict /dev/knem + + # configureMPITypes with openmpi-2* insists on accessing the scaling + # governor rw. + addpredict /sys/devices/system/cpu/ + + local mylang + local myopt + + use cxx && mylang="cxx" || mylang="c" + use debug && myopt="debug" || myopt="opt" + + # environmental variables expected by petsc during build + + export PETSC_DIR="${S}" + export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" + + if use debug; then + strip-flags + filter-flags -O* + fi + + # C Support on CXX builds is enabled if possible i.e. when not using + # complex scalars (no complex type for both available at the same time) + + econf \ + scrollOutput=1 \ + FFLAGS="${FFLAGS} -fPIC" \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ + L
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: e9aa00ee0ca860b1047a9d25b83e4d2cc06269f9 Author: Matthias Maier gentoo org> AuthorDate: Mon Sep 17 15:14:18 2018 + Commit: Matthias Maier gentoo org> CommitDate: Mon Sep 17 15:14:18 2018 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=e9aa00ee sci-mathematics/petsc: drop old 3.9* Package-Manager: Portage-2.3.49, Repoman-2.3.10 sci-mathematics/petsc/petsc-3.9.2.ebuild | 196 --- sci-mathematics/petsc/petsc-3.9.3.ebuild | 196 --- 2 files changed, 392 deletions(-) diff --git a/sci-mathematics/petsc/petsc-3.9.2.ebuild b/sci-mathematics/petsc/petsc-3.9.2.ebuild deleted file mode 100644 index 1755e242a..0 --- a/sci-mathematics/petsc/petsc-3.9.2.ebuild +++ /dev/null @@ -1,196 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# 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 _ -)" - -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"; - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~x86 ~amd64" -IUSE="afterimage boost complex-scalars cxx debug doc fftw - fortran hdf5 hypre mpi metis mumps scotch sparse superlu threads X" - -# hypre and superlu curretly exclude each other due to missing linking to hypre -# if both are enabled -REQUIRED_USE=" - afterimage? ( X ) - complex-scalars? ( !hypre !superlu ) - hdf5? ( mpi ) - hypre? ( cxx mpi !superlu ) - mumps? ( mpi scotch ) - scotch? ( mpi ) - superlu? ( !hypre ) -" - -RDEPEND=" - virtual/blas - virtual/lapack - afterimage? ( media-libs/libafterimage ) - boost? ( dev-libs/boost ) - fftw? ( sci-libs/fftw:3.0[mpi?] ) - hdf5? ( sci-libs/hdf5[mpi?] ) - hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) - metis? ( >=sci-libs/parmetis-4 ) - mpi? ( virtual/mpi[cxx?,fortran?] ) - mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) - scotch? ( sci-libs/scotch[mpi?] ) - sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) - superlu? ( >=sci-libs/superlu-5 ) - X? ( x11-libs/libX11 ) -" - -DEPEND="${RDEPEND} - ${PYTHON_DEPS} - virtual/pkgconfig - 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 -) - -src_prepare() { - default - - sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die -} - -# petsc uses --with-blah=1 and --with-blah=0 to en/disable options -petsc_enable() { - use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" -} -# add external library: -# petsc_with use_flag libname libdir -# petsc_with use_flag libname include linking_libs -petsc_with() { - local myuse p=${2:-${1}} - if use ${1}; then - myuse="--with-${p}=1" - if [[ $# -ge 4 ]]; then - myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" - shift 3 - myuse="${myuse} --with-${p}-lib=$@" - else - myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" - fi - else - myuse="--with-${p}=0" - fi - echo ${myuse} -} - -# select between configure options depending on use flag -petsc_select() { - use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" -} - -src_configure() { - # bug 548498 - # PETSc runs mpi processes during configure that result in a sandbox - # violation by trying to open /proc/mtrr rw. This is not easy to - # mitigate because it happens in libpciaccess.so called by libhwloc.so, - # which is used by libmpi.so. - addpredict /proc/mtrr - # if mpi is built with knem support it needs /dev/knem too - addpredict /dev/knem - - # configureMPITypes with openmpi-2* insists on accessing the scaling - # governor rw. - addpredict /sys/devices/system/cpu/ - - local mylang - local myopt - - use cxx && mylang="cxx" || mylang="c" - use debug && myopt="debug" || myopt="opt" - - # environmental variables expected by petsc during build - - export PETSC_DIR="${S}" - export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" - - if use debug; then - strip-flags - filter-flags -O* - fi - - # C Support on CXX builds is enabled if possible i.e. when not using - # complex scalars (no complex type for both available at the same time) - - econf \ - scrollOutput=1 \ - FFLAGS="${FFLAGS} -fPIC" \ - CFLAGS="${CFLAGS} -
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: ee52cea13773352cc13756c29cd0703acf61996d Author: Matthias Maier gentoo org> AuthorDate: Mon Sep 17 15:13:55 2018 + Commit: Matthias Maier gentoo org> CommitDate: Mon Sep 17 15:13:55 2018 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=ee52cea1 sci-mathematics/petsc: version bump to 3.9.4 Package-Manager: Portage-2.3.49, Repoman-2.3.10 sci-mathematics/petsc/petsc-3.9.4.ebuild | 196 +++ 1 file changed, 196 insertions(+) diff --git a/sci-mathematics/petsc/petsc-3.9.4.ebuild b/sci-mathematics/petsc/petsc-3.9.4.ebuild new file mode 100644 index 0..1755e242a --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.9.4.ebuild @@ -0,0 +1,196 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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 _ -)" + +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"; + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi metis mumps scotch sparse superlu threads X" + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + complex-scalars? ( !hypre !superlu ) + hdf5? ( mpi ) + hypre? ( cxx mpi !superlu ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + superlu? ( !hypre ) +" + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + metis? ( >=sci-libs/parmetis-4 ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( >=sci-libs/superlu-5 ) + X? ( x11-libs/libX11 ) +" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + 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 +) + +src_prepare() { + default + + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +# petsc uses --with-blah=1 and --with-blah=0 to en/disable options +petsc_enable() { + use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" +} +# add external library: +# petsc_with use_flag libname libdir +# petsc_with use_flag libname include linking_libs +petsc_with() { + local myuse p=${2:-${1}} + if use ${1}; then + myuse="--with-${p}=1" + if [[ $# -ge 4 ]]; then + myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" + shift 3 + myuse="${myuse} --with-${p}-lib=$@" + else + myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" + fi + else + myuse="--with-${p}=0" + fi + echo ${myuse} +} + +# select between configure options depending on use flag +petsc_select() { + use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" +} + +src_configure() { + # bug 548498 + # PETSc runs mpi processes during configure that result in a sandbox + # violation by trying to open /proc/mtrr rw. This is not easy to + # mitigate because it happens in libpciaccess.so called by libhwloc.so, + # which is used by libmpi.so. + addpredict /proc/mtrr + # if mpi is built with knem support it needs /dev/knem too + addpredict /dev/knem + + # configureMPITypes with openmpi-2* insists on accessing the scaling + # governor rw. + addpredict /sys/devices/system/cpu/ + + local mylang + local myopt + + use cxx && mylang="cxx" || mylang="c" + use debug && myopt="debug" || myopt="opt" + + # environmental variables expected by petsc during build + + export PETSC_DIR="${S}" + export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" + + if use debug; then + strip-flags + filter-flags -O* + fi + + # C Support on CXX builds is enabled if possible i.e. when not using + # complex scalars (no complex type for both available at the same time) + + econf \ + scrollOutput=1 \ + FFLAGS="${FFLAGS} -fPIC" \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ + LDFLA
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/files/, sci-mathematics/petsc/
commit: 7942c05fe297d82b7f4a1e81282aaa9b3bfb406a Author: Matthias Maier gentoo org> AuthorDate: Fri Aug 31 03:25:26 2018 + Commit: Matthias Maier gentoo org> CommitDate: Fri Aug 31 03:25:26 2018 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=7942c05f sci-mathematics/petsc: remove obsolete patches Package-Manager: Portage-2.3.48, Repoman-2.3.10 .../petsc/files/petsc-3.5.3-disable-rpath.patch| 18 -- .../petsc/files/petsc-3.6.0-disable-rpath.patch| 17 -- .../files/petsc-3.6.0-fix_sandbox_violation.patch | 15 -- .../files/petsc-3.7.0-fix_sandbox_violation.patch | 17 -- sci-mathematics/petsc/petsc-3.7.7-r1.ebuild| 205 - 5 files changed, 272 deletions(-) diff --git a/sci-mathematics/petsc/files/petsc-3.5.3-disable-rpath.patch b/sci-mathematics/petsc/files/petsc-3.5.3-disable-rpath.patch deleted file mode 100644 index 7fe3760c9..0 --- a/sci-mathematics/petsc/files/petsc-3.5.3-disable-rpath.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff --git a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py -index 8e0d2ee..ce53ad0 100644 a/config/BuildSystem/config/setCompilers.py -+++ b/config/BuildSystem/config/setCompilers.py -@@ -1326,12 +1326,7 @@ class Configure(config.base.Configure): - for language in languages: - flag = '-L' - self.pushLanguage(language) -- # test '-R' before '-rpath' as sun compilers [c,fortran] don't give proper errors with wrong options. -- if not Configure.isDarwin(): --testFlags = ['-Wl,-rpath,', '-R','-rpath ' , '-Wl,-R,'] -- else: --testFlags = [] -- # test '-R' before '-Wl,-rpath' for SUN compilers [as cc on linux accepts -Wl,-rpath, but f90 & CC do not. -+ testFlags = [] - if self.isSun(self.framework.getCompiler()): - testFlags.insert(0,'-R') - for testFlag in testFlags: diff --git a/sci-mathematics/petsc/files/petsc-3.6.0-disable-rpath.patch b/sci-mathematics/petsc/files/petsc-3.6.0-disable-rpath.patch deleted file mode 100644 index 88a7db565..0 --- a/sci-mathematics/petsc/files/petsc-3.6.0-disable-rpath.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py a/config/BuildSystem/config/setCompilers.py -+++ b/config/BuildSystem/config/setCompilers.py -@@ -1326,12 +1326,7 @@ class Configure(config.base.Configure): - for language in languages: - flag = '-L' - self.pushLanguage(language) -- # test '-R' before '-rpath' as sun compilers [c,fortran] don't give proper errors with wrong options. -- if not Configure.isDarwin(): --testFlags = ['-Wl,-rpath,', '-R','-rpath ' , '-Wl,-R,'] -- else: --testFlags = ['-Wl,-rpath,'] -- # test '-R' before '-Wl,-rpath' for SUN compilers [as cc on linux accepts -Wl,-rpath, but f90 & CC do not. -+ testFlags = [] - if self.isSun(self.framework.getCompiler()): - testFlags.insert(0,'-R') - for testFlag in testFlags: diff --git a/sci-mathematics/petsc/files/petsc-3.6.0-fix_sandbox_violation.patch b/sci-mathematics/petsc/files/petsc-3.6.0-fix_sandbox_violation.patch deleted file mode 100644 index 7510631a1..0 --- a/sci-mathematics/petsc/files/petsc-3.6.0-fix_sandbox_violation.patch +++ /dev/null @@ -1,15 +0,0 @@ config/PETSc/options/installDir.py.orig2015-06-23 18:11:25.054911894 +0200 -+++ config/PETSc/options/installDir.py 2015-06-23 18:11:44.100289841 +0200 -@@ -38,12 +38,6 @@ - self.installSudoMessage = '' - if self.framework.argDB['prefix']: - self.dir = self.framework.argDB['prefix'] -- try: --os.makedirs(os.path.join(self.dir,'PETScTestDirectory')) --os.rmdir(os.path.join(self.dir,'PETScTestDirectory')) -- except: --self.installSudoMessage = 'You do not have write permissions to the --prefix directory '+self.dir+'\nYou will be prompted for the sudo password for any external package installs' --self.installSudo = 'sudo ' - else: - self.dir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) - self.confDir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) diff --git a/sci-mathematics/petsc/files/petsc-3.7.0-fix_sandbox_violation.patch b/sci-mathematics/petsc/files/petsc-3.7.0-fix_sandbox_violation.patch deleted file mode 100644 index 191ca18c4..0 --- a/sci-mathematics/petsc/files/petsc-3.7.0-fix_sandbox_violation.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/config/PETSc/options/installDir.py b/config/PETSc/options/installDir.py -index 0e2567c..bf782b5 100644 a/config/PETSc/options/installDir.py -+++ b/config/PETSc/options/installDir.py -@@ -38,12 +38,6 @@ class Configure(config.base.Configure): - self.installSudoMessage = '' - if self.framework.argDB['prefix']: - self.dir = os.path.abspath(os.path.expanduser(self
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: aee6b7af41bd5cf104e923ec8dd68db883bcdb80 Author: Matthias Maier gentoo org> AuthorDate: Fri Aug 31 03:27:16 2018 + Commit: Matthias Maier gentoo org> CommitDate: Fri Aug 31 03:27:16 2018 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=aee6b7af sci-mathematics/petsc: version bump to 3.9.3 Package-Manager: Portage-2.3.48, Repoman-2.3.10 sci-mathematics/petsc/petsc-3.9.3.ebuild | 196 +++ 1 file changed, 196 insertions(+) diff --git a/sci-mathematics/petsc/petsc-3.9.3.ebuild b/sci-mathematics/petsc/petsc-3.9.3.ebuild new file mode 100644 index 0..1755e242a --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.9.3.ebuild @@ -0,0 +1,196 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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 _ -)" + +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"; + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi metis mumps scotch sparse superlu threads X" + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + complex-scalars? ( !hypre !superlu ) + hdf5? ( mpi ) + hypre? ( cxx mpi !superlu ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + superlu? ( !hypre ) +" + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + metis? ( >=sci-libs/parmetis-4 ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( >=sci-libs/superlu-5 ) + X? ( x11-libs/libX11 ) +" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + 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 +) + +src_prepare() { + default + + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +# petsc uses --with-blah=1 and --with-blah=0 to en/disable options +petsc_enable() { + use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" +} +# add external library: +# petsc_with use_flag libname libdir +# petsc_with use_flag libname include linking_libs +petsc_with() { + local myuse p=${2:-${1}} + if use ${1}; then + myuse="--with-${p}=1" + if [[ $# -ge 4 ]]; then + myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" + shift 3 + myuse="${myuse} --with-${p}-lib=$@" + else + myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" + fi + else + myuse="--with-${p}=0" + fi + echo ${myuse} +} + +# select between configure options depending on use flag +petsc_select() { + use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" +} + +src_configure() { + # bug 548498 + # PETSc runs mpi processes during configure that result in a sandbox + # violation by trying to open /proc/mtrr rw. This is not easy to + # mitigate because it happens in libpciaccess.so called by libhwloc.so, + # which is used by libmpi.so. + addpredict /proc/mtrr + # if mpi is built with knem support it needs /dev/knem too + addpredict /dev/knem + + # configureMPITypes with openmpi-2* insists on accessing the scaling + # governor rw. + addpredict /sys/devices/system/cpu/ + + local mylang + local myopt + + use cxx && mylang="cxx" || mylang="c" + use debug && myopt="debug" || myopt="opt" + + # environmental variables expected by petsc during build + + export PETSC_DIR="${S}" + export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" + + if use debug; then + strip-flags + filter-flags -O* + fi + + # C Support on CXX builds is enabled if possible i.e. when not using + # complex scalars (no complex type for both available at the same time) + + econf \ + scrollOutput=1 \ + FFLAGS="${FFLAGS} -fPIC" \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ + LDFLA
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: df3b9cb9a21f4e45de635f25cfec8b7c0ee42e74 Author: Matthias Maier gentoo org> AuthorDate: Fri Aug 31 03:24:28 2018 + Commit: Matthias Maier gentoo org> CommitDate: Fri Aug 31 03:24:28 2018 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=df3b9cb9 sci-mathematics/petsc: drop old Package-Manager: Portage-2.3.48, Repoman-2.3.10 sci-mathematics/petsc/petsc-3.9.0-r1.ebuild | 196 1 file changed, 196 deletions(-) diff --git a/sci-mathematics/petsc/petsc-3.9.0-r1.ebuild b/sci-mathematics/petsc/petsc-3.9.0-r1.ebuild deleted file mode 100644 index 1755e242a..0 --- a/sci-mathematics/petsc/petsc-3.9.0-r1.ebuild +++ /dev/null @@ -1,196 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# 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 _ -)" - -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"; - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~x86 ~amd64" -IUSE="afterimage boost complex-scalars cxx debug doc fftw - fortran hdf5 hypre mpi metis mumps scotch sparse superlu threads X" - -# hypre and superlu curretly exclude each other due to missing linking to hypre -# if both are enabled -REQUIRED_USE=" - afterimage? ( X ) - complex-scalars? ( !hypre !superlu ) - hdf5? ( mpi ) - hypre? ( cxx mpi !superlu ) - mumps? ( mpi scotch ) - scotch? ( mpi ) - superlu? ( !hypre ) -" - -RDEPEND=" - virtual/blas - virtual/lapack - afterimage? ( media-libs/libafterimage ) - boost? ( dev-libs/boost ) - fftw? ( sci-libs/fftw:3.0[mpi?] ) - hdf5? ( sci-libs/hdf5[mpi?] ) - hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) - metis? ( >=sci-libs/parmetis-4 ) - mpi? ( virtual/mpi[cxx?,fortran?] ) - mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) - scotch? ( sci-libs/scotch[mpi?] ) - sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) - superlu? ( >=sci-libs/superlu-5 ) - X? ( x11-libs/libX11 ) -" - -DEPEND="${RDEPEND} - ${PYTHON_DEPS} - virtual/pkgconfig - 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 -) - -src_prepare() { - default - - sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die -} - -# petsc uses --with-blah=1 and --with-blah=0 to en/disable options -petsc_enable() { - use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" -} -# add external library: -# petsc_with use_flag libname libdir -# petsc_with use_flag libname include linking_libs -petsc_with() { - local myuse p=${2:-${1}} - if use ${1}; then - myuse="--with-${p}=1" - if [[ $# -ge 4 ]]; then - myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" - shift 3 - myuse="${myuse} --with-${p}-lib=$@" - else - myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" - fi - else - myuse="--with-${p}=0" - fi - echo ${myuse} -} - -# select between configure options depending on use flag -petsc_select() { - use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" -} - -src_configure() { - # bug 548498 - # PETSc runs mpi processes during configure that result in a sandbox - # violation by trying to open /proc/mtrr rw. This is not easy to - # mitigate because it happens in libpciaccess.so called by libhwloc.so, - # which is used by libmpi.so. - addpredict /proc/mtrr - # if mpi is built with knem support it needs /dev/knem too - addpredict /dev/knem - - # configureMPITypes with openmpi-2* insists on accessing the scaling - # governor rw. - addpredict /sys/devices/system/cpu/ - - local mylang - local myopt - - use cxx && mylang="cxx" || mylang="c" - use debug && myopt="debug" || myopt="opt" - - # environmental variables expected by petsc during build - - export PETSC_DIR="${S}" - export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" - - if use debug; then - strip-flags - filter-flags -O* - fi - - # C Support on CXX builds is enabled if possible i.e. when not using - # complex scalars (no complex type for both available at the same time) - - econf \ - scrollOutput=1 \ - FFLAGS="${FFLAGS} -fPIC" \ - CFLAGS="${CFLAGS} -fPIC" \ - CXXFLAGS="${CXXFLAGS} -fPIC" \ - LDFLAG
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 3769248d3d8e5d30c3ef5352d244f13459b6add7 Author: Matthias Maier gentoo org> AuthorDate: Thu May 24 01:08:24 2018 + Commit: Matthias Maier gentoo org> CommitDate: Thu May 24 01:20:13 2018 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=3769248d sci-mathematics/petsc: version bump to 3.9.2 Package-Manager: Portage-2.3.38, Repoman-2.3.9 sci-mathematics/petsc/petsc-3.9.2.ebuild | 196 +++ 1 file changed, 196 insertions(+) diff --git a/sci-mathematics/petsc/petsc-3.9.2.ebuild b/sci-mathematics/petsc/petsc-3.9.2.ebuild new file mode 100644 index 0..1755e242a --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.9.2.ebuild @@ -0,0 +1,196 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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 _ -)" + +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"; + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi metis mumps scotch sparse superlu threads X" + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + complex-scalars? ( !hypre !superlu ) + hdf5? ( mpi ) + hypre? ( cxx mpi !superlu ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + superlu? ( !hypre ) +" + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + metis? ( >=sci-libs/parmetis-4 ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( >=sci-libs/superlu-5 ) + X? ( x11-libs/libX11 ) +" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + 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 +) + +src_prepare() { + default + + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +# petsc uses --with-blah=1 and --with-blah=0 to en/disable options +petsc_enable() { + use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" +} +# add external library: +# petsc_with use_flag libname libdir +# petsc_with use_flag libname include linking_libs +petsc_with() { + local myuse p=${2:-${1}} + if use ${1}; then + myuse="--with-${p}=1" + if [[ $# -ge 4 ]]; then + myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" + shift 3 + myuse="${myuse} --with-${p}-lib=$@" + else + myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" + fi + else + myuse="--with-${p}=0" + fi + echo ${myuse} +} + +# select between configure options depending on use flag +petsc_select() { + use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" +} + +src_configure() { + # bug 548498 + # PETSc runs mpi processes during configure that result in a sandbox + # violation by trying to open /proc/mtrr rw. This is not easy to + # mitigate because it happens in libpciaccess.so called by libhwloc.so, + # which is used by libmpi.so. + addpredict /proc/mtrr + # if mpi is built with knem support it needs /dev/knem too + addpredict /dev/knem + + # configureMPITypes with openmpi-2* insists on accessing the scaling + # governor rw. + addpredict /sys/devices/system/cpu/ + + local mylang + local myopt + + use cxx && mylang="cxx" || mylang="c" + use debug && myopt="debug" || myopt="opt" + + # environmental variables expected by petsc during build + + export PETSC_DIR="${S}" + export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" + + if use debug; then + strip-flags + filter-flags -O* + fi + + # C Support on CXX builds is enabled if possible i.e. when not using + # complex scalars (no complex type for both available at the same time) + + econf \ + scrollOutput=1 \ + FFLAGS="${FFLAGS} -fPIC" \ + CFLAGS="${CFLAGS} -fPIC" \ + CXXFLAGS="${CXXFLAGS} -fPIC" \ + LDFLAG
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 2c7b47b7e6de8a6c1fc57e2c947d13a52a0782a2 Author: Matthias Maier gentoo org> AuthorDate: Mon Apr 23 14:37:44 2018 + Commit: Matthias Maier gentoo org> CommitDate: Mon Apr 23 14:37:44 2018 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=2c7b47b7 sci-mathematics/petsc: avoid double prefix Package-Manager: Portage-2.3.31, Repoman-2.3.9 sci-mathematics/petsc/{petsc-3.9.0.ebuild => petsc-3.9.0-r1.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-mathematics/petsc/petsc-3.9.0.ebuild b/sci-mathematics/petsc/petsc-3.9.0-r1.ebuild similarity index 99% rename from sci-mathematics/petsc/petsc-3.9.0.ebuild rename to sci-mathematics/petsc/petsc-3.9.0-r1.ebuild index e2f57c04f..1755e242a 100644 --- a/sci-mathematics/petsc/petsc-3.9.0.ebuild +++ b/sci-mathematics/petsc/petsc-3.9.0-r1.ebuild @@ -181,7 +181,7 @@ src_configure() { } src_install() { - emake DESTDIR="${D}/usr/$(get_libdir)/petsc" install + emake DESTDIR="${ED}" install # add PETSC_DIR to environmental variables cat >> 99petsc <<- EOF
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 0ee1bc73eba5a795a6ec837691cce3d19fe6962f Author: Matthias Maier gentoo org> AuthorDate: Mon Apr 23 01:54:52 2018 + Commit: Matthias Maier gentoo org> CommitDate: Mon Apr 23 01:54:52 2018 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=0ee1bc73 sci-mathematics/petsc: remove upstream workaround for -j1 in 3.9.0 Apparently this is not needed anymore. *hooray* Package-Manager: Portage-2.3.31, Repoman-2.3.9 sci-mathematics/petsc/petsc-3.9.0.ebuild | 9 - 1 file changed, 9 deletions(-) diff --git a/sci-mathematics/petsc/petsc-3.9.0.ebuild b/sci-mathematics/petsc/petsc-3.9.0.ebuild index 37def4450..e2f57c04f 100644 --- a/sci-mathematics/petsc/petsc-3.9.0.ebuild +++ b/sci-mathematics/petsc/petsc-3.9.0.ebuild @@ -54,15 +54,6 @@ DEPEND="${RDEPEND} dev-util/cmake " -# -# PETSc does not want its Makefiles to be invoked with anything higher than -# -j1. The underlying build system does automatically invoke a parallel -# build. This might not be what you want, but *hey* not your choice. -# -# V=1 enables verbose output with full compiler and linker invocation -# -MAKEOPTS="${MAKEOPTS} -j1 V=1" - S="${WORKDIR}/${MY_P}" PATCHES=(
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/files/, sci-mathematics/petsc/
commit: 5cef376ca642f43faa2462e0553b0d6e0384de9e Author: Matthias Maier gentoo org> AuthorDate: Mon Apr 23 00:30:26 2018 + Commit: Matthias Maier gentoo org> CommitDate: Mon Apr 23 00:30:26 2018 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=5cef376c sci-mathematics/petsc: vesrion bump to 3.9.0 Package-Manager: Portage-2.3.31, Repoman-2.3.9 .../files/petsc-3.9.0-fix_sandbox_violation.patch | 17 ++ sci-mathematics/petsc/petsc-3.9.0.ebuild | 205 + 2 files changed, 222 insertions(+) diff --git a/sci-mathematics/petsc/files/petsc-3.9.0-fix_sandbox_violation.patch b/sci-mathematics/petsc/files/petsc-3.9.0-fix_sandbox_violation.patch new file mode 100644 index 0..97f8dfed4 --- /dev/null +++ b/sci-mathematics/petsc/files/petsc-3.9.0-fix_sandbox_violation.patch @@ -0,0 +1,17 @@ +diff --git a/config/PETSc/options/installDir.py b/config/PETSc/options/installDir.py +index 92f190d..047c85b 100644 +--- a/config/PETSc/options/installDir.py b/config/PETSc/options/installDir.py +@@ -41,12 +41,6 @@ class Configure(config.base.Configure): + self.dir = os.path.abspath(os.path.expanduser(self.framework.argDB['prefix'])) + self.petscDir = self.dir + self.petscArch = '' +- try: +-os.makedirs(os.path.join(self.dir,'PETScTestDirectory')) +-os.rmdir(os.path.join(self.dir,'PETScTestDirectory')) +- except: +-self.installSudoMessage = 'You do not have write permissions to the --prefix directory '+self.dir+'\nYou will be prompted for the sudo password for any external package installs' +-self.installSudo = 'sudo ' + else: + self.dir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) + self.petscDir = self.petscdir.dir diff --git a/sci-mathematics/petsc/petsc-3.9.0.ebuild b/sci-mathematics/petsc/petsc-3.9.0.ebuild new file mode 100644 index 0..37def4450 --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.9.0.ebuild @@ -0,0 +1,205 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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 _ -)" + +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"; + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi metis mumps scotch sparse superlu threads X" + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + complex-scalars? ( !hypre !superlu ) + hdf5? ( mpi ) + hypre? ( cxx mpi !superlu ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + superlu? ( !hypre ) +" + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + metis? ( >=sci-libs/parmetis-4 ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( >=sci-libs/superlu-5 ) + X? ( x11-libs/libX11 ) +" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + dev-util/cmake +" + +# +# PETSc does not want its Makefiles to be invoked with anything higher than +# -j1. The underlying build system does automatically invoke a parallel +# build. This might not be what you want, but *hey* not your choice. +# +# V=1 enables verbose output with full compiler and linker invocation +# +MAKEOPTS="${MAKEOPTS} -j1 V=1" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}"/${PN}-3.7.0-disable-rpath.patch \ + "${FILESDIR}"/${PN}-3.9.0-fix_sandbox_violation.patch +) + +src_prepare() { + default + + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +# petsc uses --with-blah=1 and --with-blah=0 to en/disable options +petsc_enable() { + use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" +} +# add external library: +# petsc_with use_flag libname libdir +# petsc_with use_flag libname include linking_libs +petsc_with() { + local myuse p=${2:-${1}} + if use ${1}; then + myuse="--with-${p}=1" + if [[ $# -ge 4 ]]; then + myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" + shift 3 + myuse="${myuse} --with-${p}-lib=$@" + else + myuse="${m
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 2dee653ff1d3c49dc699bbfa6bd775b15d247dcf Author: Matthias Maier gentoo org> AuthorDate: Thu Mar 29 22:09:26 2018 + Commit: Matthias Maier gentoo org> CommitDate: Thu Mar 29 22:09:26 2018 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=2dee653f sci-mathematics/petsc: version bump to 3.8.4 Package-Manager: Portage-2.3.26, Repoman-2.3.7 sci-mathematics/petsc/{petsc-3.8.3-r1.ebuild => petsc-3.8.4.ebuild} | 0 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/sci-mathematics/petsc/petsc-3.8.3-r1.ebuild b/sci-mathematics/petsc/petsc-3.8.4.ebuild similarity index 100% rename from sci-mathematics/petsc/petsc-3.8.3-r1.ebuild rename to sci-mathematics/petsc/petsc-3.8.4.ebuild
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 4590faa4d554a9c522212cc005449082adcc413b Author: Matthias Maier gentoo org> AuthorDate: Mon Mar 19 03:48:48 2018 + Commit: Matthias Maier gentoo org> CommitDate: Mon Mar 19 03:48:48 2018 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=4590faa4 sci-mathematics/petsc: fix dependencies, drop old Package-Manager: Portage-2.3.24, Repoman-2.3.6 sci-mathematics/petsc/petsc-3.5.4.ebuild | 243 sci-mathematics/petsc/petsc-3.6.4.ebuild | 251 - .../{petsc-3.7.7.ebuild => petsc-3.7.7-r1.ebuild} | 5 +- .../{petsc-3.8.3.ebuild => petsc-3.8.3-r1.ebuild} | 5 +- 4 files changed, 6 insertions(+), 498 deletions(-) diff --git a/sci-mathematics/petsc/petsc-3.5.4.ebuild b/sci-mathematics/petsc/petsc-3.5.4.ebuild deleted file mode 100644 index c70fcf2cb..0 --- a/sci-mathematics/petsc/petsc-3.5.4.ebuild +++ /dev/null @@ -1,243 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator - -MY_P="${PN}-$(replace_version_separator _ -)" - -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"; - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~x86 ~amd64" -IUSE="afterimage boost complex-scalars cxx debug doc fftw - fortran hdf5 hypre mpi mumps scotch sparse superlu threads X" -# Failed: imagemagick metis - -# hypre and superlu curretly exclude each other due to missing linking to hypre -# if both are enabled -REQUIRED_USE=" - afterimage? ( X ) - hdf5? ( mpi ) - hypre? ( cxx mpi ) - mumps? ( mpi scotch ) - scotch? ( mpi ) - ^^ ( hypre superlu ) -" -# imagemagick? ( X ) - -RDEPEND=" - virtual/blas - virtual/lapack - afterimage? ( media-libs/libafterimage ) - boost? ( dev-libs/boost ) - fftw? ( sci-libs/fftw:3.0[mpi?] ) - hdf5? ( sci-libs/hdf5[mpi?] ) - hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) - mpi? ( virtual/mpi[cxx?,fortran?] ) - mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) - scotch? ( sci-libs/scotch[mpi?] ) - sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) - superlu? ( sci-libs/superlu ) - X? ( x11-libs/libX11 ) -" -# metis? ( sci-libs/parmetis ) -# imagemagick? ( media-gfx/imagemagick ) - -DEPEND="${RDEPEND} - ${PYTHON_DEPS} - virtual/pkgconfig - dev-util/cmake -" -# cmake is used for parallel building -# in some configuration setups, legacy build is used (slow) - -# -# PETSc does not want its Makefiles to be invoked with anything higher than -# -j1. The underlying build system does automatically invoke a parallel -# build. This might not be what you want, but *hey* not your choice. -# -MAKEOPTS="${MAKEOPTS} -j1" - -S="${WORKDIR}/${MY_P}" - -src_prepare() { - epatch "${FILESDIR}"/${PN}-3.5.3-disable-rpath.patch - sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die -} - -src_configure() { - # bug 548498 - # PETSc runs mpi processes during configure that result in a sandbox - # violation by trying to open /proc/mtrr rw. This is not easy to - # mitigate because it happens in libpciaccess.so called by libhwloc.so, - # which is used by libmpi.so. - addpredict /proc/mtrr - - # petsc uses --with-blah=1 and --with-blah=0 to en/disable options - petsc_enable() { - use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" - } - # add external library: - # petsc_with use_flag libname libdir - # petsc_with use_flag libname include linking_libs - petsc_with() { - local myuse p=${2:-${1}} - if use ${1}; then - myuse="--with-${p}=1" - if [[ $# -ge 4 ]]; then - myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" - shift 3 - myuse="${myuse} --with-${p}-lib=$@" - else - myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" - fi - else - myuse="--with-${p}=0" - fi - echo ${myuse} - } - - # select between configure options depending on use flag - petsc_select() { - use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" - } - - local mylang - local myopt - - use cxx && mylang="cxx" || mylang="c" - use debug && myopt="debug" || myopt="opt" - - # environmental variables expected by petsc during build - export PETSC_DIR="${S}" - export PETSC_ARCH="linux
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/, sci-mathematics/petsc/files/
commit: df1d306bdeb962a086a64749ee1ad9eb84152752 Author: Matthias Maier gentoo org> AuthorDate: Mon Mar 19 03:25:55 2018 + Commit: Matthias Maier gentoo org> CommitDate: Mon Mar 19 03:25:55 2018 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=df1d306b sci-mathematics/petsc: version bump to 3.8.3 Package-Manager: Portage-2.3.24, Repoman-2.3.6 .../files/petsc-3.8.3-fix_sandbox_violation.patch | 17 ++ sci-mathematics/petsc/petsc-3.8.3.ebuild | 204 + 2 files changed, 221 insertions(+) diff --git a/sci-mathematics/petsc/files/petsc-3.8.3-fix_sandbox_violation.patch b/sci-mathematics/petsc/files/petsc-3.8.3-fix_sandbox_violation.patch new file mode 100644 index 0..4f51aee81 --- /dev/null +++ b/sci-mathematics/petsc/files/petsc-3.8.3-fix_sandbox_violation.patch @@ -0,0 +1,17 @@ +diff --git a/config/PETSc/options/installDir.py b/config/PETSc/options/installDir.py +index 975dc8a..c216941 100644 +--- a/config/PETSc/options/installDir.py b/config/PETSc/options/installDir.py +@@ -39,12 +39,6 @@ class Configure(config.base.Configure): + if self.framework.argDB['prefix']: + self.dir = os.path.abspath(os.path.expanduser(self.framework.argDB['prefix'])) + self.addMakeMacro('PREFIXDIR',self.dir) +- try: +-os.makedirs(os.path.join(self.dir,'PETScTestDirectory')) +-os.rmdir(os.path.join(self.dir,'PETScTestDirectory')) +- except: +-self.installSudoMessage = 'You do not have write permissions to the --prefix directory '+self.dir+'\nYou will be prompted for the sudo password for any external package installs' +-self.installSudo = 'sudo ' + else: + self.dir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) + self.confDir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) diff --git a/sci-mathematics/petsc/petsc-3.8.3.ebuild b/sci-mathematics/petsc/petsc-3.8.3.ebuild new file mode 100644 index 0..33ec0bd93 --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.8.3.ebuild @@ -0,0 +1,204 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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 _ -)" + +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"; + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi metis mumps scotch sparse superlu threads X" + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + hdf5? ( mpi ) + hypre? ( cxx mpi ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + ^^ ( hypre superlu ) +" + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + metis? ( >=sci-libs/parmetis-4 ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( >=sci-libs/superlu-5 ) + X? ( x11-libs/libX11 ) +" + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + dev-util/cmake +" + +# +# PETSc does not want its Makefiles to be invoked with anything higher than +# -j1. The underlying build system does automatically invoke a parallel +# build. This might not be what you want, but *hey* not your choice. +# +# V=1 enables verbose output with full compiler and linker invocation +# +MAKEOPTS="${MAKEOPTS} -j1 V=1" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}"/${PN}-3.7.0-disable-rpath.patch \ + "${FILESDIR}"/${PN}-3.8.3-fix_sandbox_violation.patch +) + +src_prepare() { + default + + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +# petsc uses --with-blah=1 and --with-blah=0 to en/disable options +petsc_enable() { + use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" +} +# add external library: +# petsc_with use_flag libname libdir +# petsc_with use_flag libname include linking_libs +petsc_with() { + local myuse p=${2:-${1}} + if use ${1}; then + myuse="--with-${p}=1" + if [[ $# -ge 4 ]]; then + myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" + shift 3 + myuse="${myuse} --with-${p}-lib=$@" + else +
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 70aa1dbe7740a0b5d68c0b274c6f98b4c95eb6ec Author: Matthias Maier gentoo org> AuthorDate: Mon Mar 19 03:26:56 2018 + Commit: Matthias Maier gentoo org> CommitDate: Mon Mar 19 03:26:56 2018 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=70aa1dbe sci-mathematics/petsc: update 3.7.* to 3.7.7 Package-Manager: Portage-2.3.24, Repoman-2.3.6 sci-mathematics/petsc/{petsc-3.7.6.ebuild => petsc-3.7.7.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-mathematics/petsc/petsc-3.7.6.ebuild b/sci-mathematics/petsc/petsc-3.7.7.ebuild similarity index 99% rename from sci-mathematics/petsc/petsc-3.7.6.ebuild rename to sci-mathematics/petsc/petsc-3.7.7.ebuild index 37c89710d..4d8a2953f 100644 --- a/sci-mathematics/petsc/petsc-3.7.6.ebuild +++ b/sci-mathematics/petsc/petsc-3.7.7.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 259e26e9a8fcb27f9ecd4a026b1edbdb00cd29c1 Author: Andrew Savchenko gentoo org> AuthorDate: Tue Oct 3 12:57:03 2017 + Commit: Andrew Savchenko gentoo org> CommitDate: Tue Oct 3 12:57:03 2017 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=259e26e9 sci-mathematics/petsc: fix build on knem setups If host MPI is configured to use knem, petsc needs to access /dev/knem as well. Package-Manager: Portage-2.3.8, Repoman-2.3.3 Signed-off-by: Andrew Savchenko gentoo.org> sci-mathematics/petsc/petsc-3.7.6.ebuild | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sci-mathematics/petsc/petsc-3.7.6.ebuild b/sci-mathematics/petsc/petsc-3.7.6.ebuild index c9c04f3e1..37c89710d 100644 --- a/sci-mathematics/petsc/petsc-3.7.6.ebuild +++ b/sci-mathematics/petsc/petsc-3.7.6.ebuild @@ -111,6 +111,8 @@ src_configure() { # mitigate because it happens in libpciaccess.so called by libhwloc.so, # which is used by libmpi.so. addpredict /proc/mtrr + # if mpi is built with knem support it needs /dev/knem too + addpredict /dev/knem # configureMPITypes with openmpi-2* insists on accessing the scaling # governor rw.
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 8cb375f4224fad6ee34b57d8e8ed39147de41b6c Author: Andrew Savchenko gentoo org> AuthorDate: Tue Oct 3 12:54:04 2017 + Commit: Andrew Savchenko gentoo org> CommitDate: Tue Oct 3 12:54:04 2017 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=8cb375f4 sci-mathematics/petsc: fix superlu version requirement >=sci-libs/superlu-5 is required, see https://lists.debian.org/debian-science/2016/05/msg00059.html This also happens at our local Gentoo HPC setup. Package-Manager: Portage-2.3.8, Repoman-2.3.3 Signed-off-by: Andrew Savchenko gentoo.org> sci-mathematics/petsc/petsc-3.7.6.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-mathematics/petsc/petsc-3.7.6.ebuild b/sci-mathematics/petsc/petsc-3.7.6.ebuild index 784371ed3..c9c04f3e1 100644 --- a/sci-mathematics/petsc/petsc-3.7.6.ebuild +++ b/sci-mathematics/petsc/petsc-3.7.6.ebuild @@ -43,7 +43,7 @@ RDEPEND=" mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) scotch? ( sci-libs/scotch[mpi?] ) sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) - superlu? ( sci-libs/superlu ) + superlu? ( >=sci-libs/superlu-5 ) X? ( x11-libs/libX11 ) "
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 73918b00c7bd72a5d20661b55d81b3493b5fa139 Author: Matthias Maier gentoo org> AuthorDate: Fri Jan 6 20:12:46 2017 + Commit: Marius Brehler linux sungazer de> CommitDate: Fri Jan 6 20:12:46 2017 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=73918b00 sci-mathematics/petsc: version bump to 3.7.5 Package-Manager: Portage-2.3.0, Repoman-2.3.1 sci-mathematics/petsc/{petsc-3.7.4.ebuild => petsc-3.7.5.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sci-mathematics/petsc/petsc-3.7.4.ebuild b/sci-mathematics/petsc/petsc-3.7.5.ebuild similarity index 99% rename from sci-mathematics/petsc/petsc-3.7.4.ebuild rename to sci-mathematics/petsc/petsc-3.7.5.ebuild index ae26a85..8889ba8 100644 --- a/sci-mathematics/petsc/petsc-3.7.4.ebuild +++ b/sci-mathematics/petsc/petsc-3.7.5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: aba912dd378338609d10389c6f8f021f60828fc3 Author: Matthias Maier gentoo org> AuthorDate: Thu Nov 24 03:47:11 2016 + Commit: Marius Brehler linux sungazer de> CommitDate: Thu Nov 24 03:47:11 2016 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=aba912dd sci-mathematics/petsc: version bump to 3.7.4 Package-Manager: portage-2.3.0 sci-mathematics/petsc/{petsc-3.7.3.ebuild => petsc-3.7.4.ebuild} | 4 1 file changed, 4 insertions(+) diff --git a/sci-mathematics/petsc/petsc-3.7.3.ebuild b/sci-mathematics/petsc/petsc-3.7.4.ebuild similarity index 98% rename from sci-mathematics/petsc/petsc-3.7.3.ebuild rename to sci-mathematics/petsc/petsc-3.7.4.ebuild index 357189f..ae26a85 100644 --- a/sci-mathematics/petsc/petsc-3.7.3.ebuild +++ b/sci-mathematics/petsc/petsc-3.7.4.ebuild @@ -86,6 +86,10 @@ src_configure() { # which is used by libmpi.so. addpredict /proc/mtrr + # configureMPITypes with openmpi-2* insists on accessing the scaling + # governor rw. + addpredict /sys/devices/system/cpu/ + # petsc uses --with-blah=1 and --with-blah=0 to en/disable options petsc_enable() { use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0"
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 7d46fb1d005394c121a9fab2585d50b13660e74e Author: Matthias Maier gentoo org> AuthorDate: Tue Aug 30 00:52:06 2016 + Commit: Marius Brehler linux sungazer de> CommitDate: Tue Aug 30 00:52:29 2016 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=7d46fb1d sci-mathematics/petsc: version bump to 3.7.3 Package-Manager: portage-2.2.28 sci-mathematics/petsc/petsc-3.7.3.ebuild | 255 +++ 1 file changed, 255 insertions(+) diff --git a/sci-mathematics/petsc/petsc-3.7.3.ebuild b/sci-mathematics/petsc/petsc-3.7.3.ebuild new file mode 100644 index 000..357189f --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.7.3.ebuild @@ -0,0 +1,255 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator + +MY_P="${PN}-$(replace_version_separator _ -)" + +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"; + +LICENSE="petsc" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi mumps scotch sparse superlu threads X" +# Failed: imagemagick metis + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + hdf5? ( mpi ) + hypre? ( cxx mpi ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + ^^ ( hypre superlu ) +" +# imagemagick? ( X ) + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( sci-libs/superlu ) + X? ( x11-libs/libX11 ) +" +# metis? ( sci-libs/parmetis ) +# imagemagick? ( media-gfx/imagemagick ) + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + dev-util/cmake +" +# cmake is used for parallel building +# in some configuration setups, legacy build is used (slow) + +# +# PETSc does not want its Makefiles to be invoked with anything higher than +# -j1. The underlying build system does automatically invoke a parallel +# build. This might not be what you want, but *hey* not your choice. +# +# V=1 enables verbose output with full compiler and linker invocation +# +MAKEOPTS="${MAKEOPTS} -j1 V=1" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-3.7.0-disable-rpath.patch \ + "${FILESDIR}"/${PN}-3.7.0-fix_sandbox_violation.patch + + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +src_configure() { + # bug 548498 + # PETSc runs mpi processes during configure that result in a sandbox + # violation by trying to open /proc/mtrr rw. This is not easy to + # mitigate because it happens in libpciaccess.so called by libhwloc.so, + # which is used by libmpi.so. + addpredict /proc/mtrr + + # petsc uses --with-blah=1 and --with-blah=0 to en/disable options + petsc_enable() { + use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" + } + # add external library: + # petsc_with use_flag libname libdir + # petsc_with use_flag libname include linking_libs + petsc_with() { + local myuse p=${2:-${1}} + if use ${1}; then + myuse="--with-${p}=1" + if [[ $# -ge 4 ]]; then + myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" + shift 3 + myuse="${myuse} --with-${p}-lib=$@" + else + myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" + fi + else + myuse="--with-${p}=0" + fi + echo ${myuse} + } + + # select between configure options depending on use flag + petsc_select() { + use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" + } + + local mylang + local myopt + + use cxx && mylang="cxx" || mylang="c" + use debug && myopt="debug" || myopt="opt" + + # environmental variables expected by petsc during build + export PETSC_DIR="${S}" + export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" + + if use debug; then +
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: a5a2b1bc8125c111d11d9474ae10accdbd9fc4c2 Author: Matthias Maier gentoo org> AuthorDate: Tue Aug 30 00:52:46 2016 + Commit: Marius Brehler linux sungazer de> CommitDate: Tue Aug 30 00:52:46 2016 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=a5a2b1bc sci-mathematics/petsc: drop old Package-Manager: portage-2.2.28 sci-mathematics/petsc/petsc-3.7.2.ebuild | 255 --- 1 file changed, 255 deletions(-) diff --git a/sci-mathematics/petsc/petsc-3.7.2.ebuild b/sci-mathematics/petsc/petsc-3.7.2.ebuild deleted file mode 100644 index 3ca12ff..000 --- a/sci-mathematics/petsc/petsc-3.7.2.ebuild +++ /dev/null @@ -1,255 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator - -MY_P="${PN}-$(replace_version_separator _ -)" - -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"; - -LICENSE="petsc" -SLOT="0" -KEYWORDS="~x86 ~amd64" -IUSE="afterimage boost complex-scalars cxx debug doc fftw - fortran hdf5 hypre mpi mumps scotch sparse superlu threads X" -# Failed: imagemagick metis - -# hypre and superlu curretly exclude each other due to missing linking to hypre -# if both are enabled -REQUIRED_USE=" - afterimage? ( X ) - hdf5? ( mpi ) - hypre? ( cxx mpi ) - mumps? ( mpi scotch ) - scotch? ( mpi ) - ^^ ( hypre superlu ) -" -# imagemagick? ( X ) - -RDEPEND=" - virtual/blas - virtual/lapack - afterimage? ( media-libs/libafterimage ) - boost? ( dev-libs/boost ) - fftw? ( sci-libs/fftw:3.0[mpi?] ) - hdf5? ( sci-libs/hdf5[mpi?] ) - hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) - mpi? ( virtual/mpi[cxx?,fortran?] ) - mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) - scotch? ( sci-libs/scotch[mpi?] ) - sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) - superlu? ( sci-libs/superlu ) - X? ( x11-libs/libX11 ) -" -# metis? ( sci-libs/parmetis ) -# imagemagick? ( media-gfx/imagemagick ) - -DEPEND="${RDEPEND} - ${PYTHON_DEPS} - virtual/pkgconfig - dev-util/cmake -" -# cmake is used for parallel building -# in some configuration setups, legacy build is used (slow) - -# -# PETSc does not want its Makefiles to be invoked with anything higher than -# -j1. The underlying build system does automatically invoke a parallel -# build. This might not be what you want, but *hey* not your choice. -# -# V=1 enables verbose output with full compiler and linker invocation -# -MAKEOPTS="${MAKEOPTS} -j1 V=1" - -S="${WORKDIR}/${MY_P}" - -src_prepare() { - epatch \ - "${FILESDIR}"/${PN}-3.7.0-disable-rpath.patch \ - "${FILESDIR}"/${PN}-3.7.0-fix_sandbox_violation.patch - - sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die -} - -src_configure() { - # bug 548498 - # PETSc runs mpi processes during configure that result in a sandbox - # violation by trying to open /proc/mtrr rw. This is not easy to - # mitigate because it happens in libpciaccess.so called by libhwloc.so, - # which is used by libmpi.so. - addpredict /proc/mtrr - - # petsc uses --with-blah=1 and --with-blah=0 to en/disable options - petsc_enable() { - use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" - } - # add external library: - # petsc_with use_flag libname libdir - # petsc_with use_flag libname include linking_libs - petsc_with() { - local myuse p=${2:-${1}} - if use ${1}; then - myuse="--with-${p}=1" - if [[ $# -ge 4 ]]; then - myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" - shift 3 - myuse="${myuse} --with-${p}-lib=$@" - else - myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" - fi - else - myuse="--with-${p}=0" - fi - echo ${myuse} - } - - # select between configure options depending on use flag - petsc_select() { - use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" - } - - local mylang - local myopt - - use cxx && mylang="cxx" || mylang="c" - use debug && myopt="debug" || myopt="opt" - - # environmental variables expected by petsc during build - export PETSC_DIR="${S}" - export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" - - if use debug; then -
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: a02841bb9ce8e70bd21ef6c65257d9467a85a47e Author: Matthias Maier gentoo org> AuthorDate: Sat Jul 9 16:22:32 2016 + Commit: Marius Brehler linux sungazer de> CommitDate: Sat Jul 9 16:33:56 2016 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=a02841bb sci-mathematics/petsc: version bump to 3.7.2 Package-Manager: portage-2.2.28 sci-mathematics/petsc/petsc-3.7.2.ebuild | 255 +++ 1 file changed, 255 insertions(+) diff --git a/sci-mathematics/petsc/petsc-3.7.2.ebuild b/sci-mathematics/petsc/petsc-3.7.2.ebuild new file mode 100644 index 000..3ca12ff --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.7.2.ebuild @@ -0,0 +1,255 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator + +MY_P="${PN}-$(replace_version_separator _ -)" + +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"; + +LICENSE="petsc" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi mumps scotch sparse superlu threads X" +# Failed: imagemagick metis + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + hdf5? ( mpi ) + hypre? ( cxx mpi ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + ^^ ( hypre superlu ) +" +# imagemagick? ( X ) + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( sci-libs/superlu ) + X? ( x11-libs/libX11 ) +" +# metis? ( sci-libs/parmetis ) +# imagemagick? ( media-gfx/imagemagick ) + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + dev-util/cmake +" +# cmake is used for parallel building +# in some configuration setups, legacy build is used (slow) + +# +# PETSc does not want its Makefiles to be invoked with anything higher than +# -j1. The underlying build system does automatically invoke a parallel +# build. This might not be what you want, but *hey* not your choice. +# +# V=1 enables verbose output with full compiler and linker invocation +# +MAKEOPTS="${MAKEOPTS} -j1 V=1" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-3.7.0-disable-rpath.patch \ + "${FILESDIR}"/${PN}-3.7.0-fix_sandbox_violation.patch + + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +src_configure() { + # bug 548498 + # PETSc runs mpi processes during configure that result in a sandbox + # violation by trying to open /proc/mtrr rw. This is not easy to + # mitigate because it happens in libpciaccess.so called by libhwloc.so, + # which is used by libmpi.so. + addpredict /proc/mtrr + + # petsc uses --with-blah=1 and --with-blah=0 to en/disable options + petsc_enable() { + use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" + } + # add external library: + # petsc_with use_flag libname libdir + # petsc_with use_flag libname include linking_libs + petsc_with() { + local myuse p=${2:-${1}} + if use ${1}; then + myuse="--with-${p}=1" + if [[ $# -ge 4 ]]; then + myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" + shift 3 + myuse="${myuse} --with-${p}-lib=$@" + else + myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" + fi + else + myuse="--with-${p}=0" + fi + echo ${myuse} + } + + # select between configure options depending on use flag + petsc_select() { + use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" + } + + local mylang + local myopt + + use cxx && mylang="cxx" || mylang="c" + use debug && myopt="debug" || myopt="opt" + + # environmental variables expected by petsc during build + export PETSC_DIR="${S}" + export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" + + if use debug; then +
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 48f9a32050afb3cf4ded913f154a725f1861a197 Author: Matthias Maier gentoo org> AuthorDate: Sat Jul 9 16:39:09 2016 + Commit: Marius Brehler linux sungazer de> CommitDate: Sat Jul 9 16:40:37 2016 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=48f9a320 sci-mathematics/petsc: version bump to 3.5.4 Package-Manager: portage-2.2.28 sci-mathematics/petsc/{petsc-3.5.3.ebuild => petsc-3.5.4.ebuild} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sci-mathematics/petsc/petsc-3.5.3.ebuild b/sci-mathematics/petsc/petsc-3.5.4.ebuild similarity index 98% rename from sci-mathematics/petsc/petsc-3.5.3.ebuild rename to sci-mathematics/petsc/petsc-3.5.4.ebuild index 7c1d0b3..7838e5d 100644 --- a/sci-mathematics/petsc/petsc-3.5.3.ebuild +++ b/sci-mathematics/petsc/petsc-3.5.4.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -69,7 +69,7 @@ MAKEOPTS="${MAKEOPTS} -j1" S="${WORKDIR}/${MY_P}" src_prepare() { - epatch "${FILESDIR}"/${P%_*}-disable-rpath.patch + epatch "${FILESDIR}"/${PN}-3.5.3-disable-rpath.patch sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die }
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: a4d74bf5cf42a039a93e81264382eb3bb159b052 Author: Matthias Maier gentoo org> AuthorDate: Sat Jul 9 16:35:21 2016 + Commit: Marius Brehler linux sungazer de> CommitDate: Sat Jul 9 16:35:21 2016 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=a4d74bf5 sci-mathematics/petsc: drop old Package-Manager: portage-2.2.28 sci-mathematics/petsc/petsc-3.6.0.ebuild | 247 -- sci-mathematics/petsc/petsc-3.6.3.ebuild | 247 -- sci-mathematics/petsc/petsc-3.7.0.ebuild | 255 --- 3 files changed, 749 deletions(-) diff --git a/sci-mathematics/petsc/petsc-3.6.0.ebuild b/sci-mathematics/petsc/petsc-3.6.0.ebuild deleted file mode 100644 index 58ff3bd..000 --- a/sci-mathematics/petsc/petsc-3.6.0.ebuild +++ /dev/null @@ -1,247 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator - -MY_P="${PN}-$(replace_version_separator _ -)" - -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"; - -LICENSE="petsc" -SLOT="0" -KEYWORDS="~x86 ~amd64" -IUSE="afterimage boost complex-scalars cxx debug doc fftw - fortran hdf5 hypre mpi mumps scotch sparse superlu threads X" -# Failed: imagemagick metis - -# hypre and superlu curretly exclude each other due to missing linking to hypre -# if both are enabled -REQUIRED_USE=" - afterimage? ( X ) - hdf5? ( mpi ) - hypre? ( cxx mpi ) - mumps? ( mpi scotch ) - scotch? ( mpi ) - ^^ ( hypre superlu ) -" -# imagemagick? ( X ) - -RDEPEND=" - virtual/blas - virtual/lapack - afterimage? ( media-libs/libafterimage ) - boost? ( dev-libs/boost ) - fftw? ( sci-libs/fftw:3.0[mpi?] ) - hdf5? ( sci-libs/hdf5[mpi?] ) - hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) - mpi? ( virtual/mpi[cxx?,fortran?] ) - mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) - scotch? ( sci-libs/scotch[mpi?] ) - sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) - superlu? ( sci-libs/superlu ) - X? ( x11-libs/libX11 ) -" -# metis? ( sci-libs/parmetis ) -# imagemagick? ( media-gfx/imagemagick ) - -DEPEND="${RDEPEND} - ${PYTHON_DEPS} - virtual/pkgconfig - dev-util/cmake -" -# cmake is used for parallel building -# in some configuration setups, legacy build is used (slow) - -# -# PETSc does not want its Makefiles to be invoked with anything higher than -# -j1. The underlying build system does automatically invoke a parallel -# build. This might not be what you want, but *hey* not your choice. -# -MAKEOPTS="${MAKEOPTS} -j1" - -S="${WORKDIR}/${MY_P}" - -src_prepare() { - epatch \ - "${FILESDIR}"/${P%_*}-disable-rpath.patch \ - "${FILESDIR}"/${P%_*}-fix_sandbox_violation.patch - - sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die -} - -src_configure() { - # bug 548498 - # PETSc runs mpi processes during configure that result in a sandbox - # violation by trying to open /proc/mtrr rw. This is not easy to - # mitigate because it happens in libpciaccess.so called by libhwloc.so, - # which is used by libmpi.so. - addpredict /proc/mtrr - - # petsc uses --with-blah=1 and --with-blah=0 to en/disable options - petsc_enable() { - use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" - } - # add external library: - # petsc_with use_flag libname libdir - # petsc_with use_flag libname include linking_libs - petsc_with() { - local myuse p=${2:-${1}} - if use ${1}; then - myuse="--with-${p}=1" - if [[ $# -ge 4 ]]; then - myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" - shift 3 - myuse="${myuse} --with-${p}-lib=$@" - else - myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" - fi - else - myuse="--with-${p}=0" - fi - echo ${myuse} - } - - # select between configure options depending on use flag - petsc_select() { - use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" - } - - local mylang - local myopt - - use cxx && mylang="cxx" || mylang="c" - use debug && myopt="debug" || myopt="opt" - - # environmental variables expected by petsc during build - export PETSC_DIR="${S}" - export PETSC_ARCH="li
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/, sci-mathematics/petsc/files/
commit: d3626423dea598c19550b3af5e7857412e1b4bac Author: Matthias Maier gentoo org> AuthorDate: Sat Jul 9 10:21:40 2016 + Commit: Marius Brehler linux sungazer de> CommitDate: Sat Jul 9 12:09:53 2016 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=d3626423 sci-mathematics/petsc: version bump to 3.7.0 Package-Manager: portage-2.2.28 Signed-off-by: Matthias Maier gentoo.org> .../petsc/files/petsc-3.7.0-disable-rpath.patch| 18 ++ .../files/petsc-3.7.0-fix_sandbox_violation.patch | 17 ++ sci-mathematics/petsc/petsc-3.7.0.ebuild | 255 + 3 files changed, 290 insertions(+) diff --git a/sci-mathematics/petsc/files/petsc-3.7.0-disable-rpath.patch b/sci-mathematics/petsc/files/petsc-3.7.0-disable-rpath.patch new file mode 100644 index 000..8d0d993 --- /dev/null +++ b/sci-mathematics/petsc/files/petsc-3.7.0-disable-rpath.patch @@ -0,0 +1,18 @@ +diff --git a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py +index 219a35b..ad2ed8c 100644 +--- a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py +@@ -1385,12 +1385,7 @@ class Configure(config.base.Configure): + for language in languages: + flag = '-L' + self.pushLanguage(language) +- # test '-R' before '-rpath' as sun compilers [c,fortran] don't give proper errors with wrong options. +- if not Configure.isDarwin(self.log): +-testFlags = ['-Wl,-rpath,', '-R','-rpath ' , '-Wl,-R,'] +- else: +-testFlags = ['-Wl,-rpath,'] +- # test '-R' before '-Wl,-rpath' for SUN compilers [as cc on linux accepts -Wl,-rpath, but f90 & CC do not. ++ testFlags = [] + if self.isSun(self.framework.getCompiler(), self.log): + testFlags.insert(0,'-R') + for testFlag in testFlags: diff --git a/sci-mathematics/petsc/files/petsc-3.7.0-fix_sandbox_violation.patch b/sci-mathematics/petsc/files/petsc-3.7.0-fix_sandbox_violation.patch new file mode 100644 index 000..191ca18 --- /dev/null +++ b/sci-mathematics/petsc/files/petsc-3.7.0-fix_sandbox_violation.patch @@ -0,0 +1,17 @@ +diff --git a/config/PETSc/options/installDir.py b/config/PETSc/options/installDir.py +index 0e2567c..bf782b5 100644 +--- a/config/PETSc/options/installDir.py b/config/PETSc/options/installDir.py +@@ -38,12 +38,6 @@ class Configure(config.base.Configure): + self.installSudoMessage = '' + if self.framework.argDB['prefix']: + self.dir = os.path.abspath(os.path.expanduser(self.framework.argDB['prefix'])) +- try: +-os.makedirs(os.path.join(self.dir,'PETScTestDirectory')) +-os.rmdir(os.path.join(self.dir,'PETScTestDirectory')) +- except: +-self.installSudoMessage = 'You do not have write permissions to the --prefix directory '+self.dir+'\nYou will be prompted for the sudo password for any external package installs' +-self.installSudo = 'sudo ' + else: + self.dir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) + self.confDir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) diff --git a/sci-mathematics/petsc/petsc-3.7.0.ebuild b/sci-mathematics/petsc/petsc-3.7.0.ebuild new file mode 100644 index 000..bcf8cc5 --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.7.0.ebuild @@ -0,0 +1,255 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator + +MY_P="${PN}-$(replace_version_separator _ -)" + +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"; + +LICENSE="petsc" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi mumps scotch sparse superlu threads X" +# Failed: imagemagick metis + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + hdf5? ( mpi ) + hypre? ( cxx mpi ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + ^^ ( hypre superlu ) +" +# imagemagick? ( X ) + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( sci-libs/superlu ) + X? ( x11-libs/libX11 ) +" +# metis? ( sci-libs/parmetis ) +# image
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 4c50902cb7f54cf48e7c30b835cfd2c47ffdae57 Author: Matthias Maier gentoo org> AuthorDate: Fri Apr 22 03:12:27 2016 + Commit: Christoph Junghans gentoo org> CommitDate: Fri Apr 22 03:12:27 2016 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=4c50902c sci-mathematics/petsc: version bump to 3.6.4, fix bug #559172 Package-Manager: portage-2.2.26 sci-mathematics/petsc/petsc-3.6.4.ebuild | 252 +++ 1 file changed, 252 insertions(+) diff --git a/sci-mathematics/petsc/petsc-3.6.4.ebuild b/sci-mathematics/petsc/petsc-3.6.4.ebuild new file mode 100644 index 000..cff1192 --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.6.4.ebuild @@ -0,0 +1,252 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator + +MY_P="${PN}-$(replace_version_separator _ -)" + +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"; + +LICENSE="petsc" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi mumps scotch sparse superlu threads X" +# Failed: imagemagick metis + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + hdf5? ( mpi ) + hypre? ( cxx mpi ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + ^^ ( hypre superlu ) +" +# imagemagick? ( X ) + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( sci-libs/superlu ) + X? ( x11-libs/libX11 ) +" +# metis? ( sci-libs/parmetis ) +# imagemagick? ( media-gfx/imagemagick ) + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + dev-util/cmake +" +# cmake is used for parallel building +# in some configuration setups, legacy build is used (slow) + +# +# PETSc does not want its Makefiles to be invoked with anything higher than +# -j1. The underlying build system does automatically invoke a parallel +# build. This might not be what you want, but *hey* not your choice. +# +MAKEOPTS="${MAKEOPTS} -j1" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-3.6.0-disable-rpath.patch \ + "${FILESDIR}"/${PN}-3.6.0-fix_sandbox_violation.patch + + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +src_configure() { + # bug 548498 + # PETSc runs mpi processes during configure that result in a sandbox + # violation by trying to open /proc/mtrr rw. This is not easy to + # mitigate because it happens in libpciaccess.so called by libhwloc.so, + # which is used by libmpi.so. + addpredict /proc/mtrr + + # petsc uses --with-blah=1 and --with-blah=0 to en/disable options + petsc_enable() { + use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" + } + # add external library: + # petsc_with use_flag libname libdir + # petsc_with use_flag libname include linking_libs + petsc_with() { + local myuse p=${2:-${1}} + if use ${1}; then + myuse="--with-${p}=1" + if [[ $# -ge 4 ]]; then + myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" + shift 3 + myuse="${myuse} --with-${p}-lib=$@" + else + myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" + fi + else + myuse="--with-${p}=0" + fi + echo ${myuse} + } + + # select between configure options depending on use flag + petsc_select() { + use "$1" && echo "--with-$2=$3" || echo "--with-$2=$4" + } + + local mylang + local myopt + + use cxx && mylang="cxx" || mylang="c" + use debug && myopt="debug" || myopt="opt" + + # environmental variables expected by petsc during build + export PETSC_DIR="${S}" + export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" + + if use debug; then + strip-flags + filter-flags -O* + fi
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 974ee970511dc54931a03656d26922dfc7c22fdb Author: Matthias Maier gentoo org> AuthorDate: Fri Apr 22 02:52:53 2016 + Commit: Christoph Junghans gentoo org> CommitDate: Fri Apr 22 02:52:53 2016 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=974ee970 sci-mathematics/petsc: remove obsolete elog message pointing to bug #53386 Package-Manager: portage-2.2.26 sci-mathematics/petsc/petsc-3.4.2.ebuild | 6 -- sci-mathematics/petsc/petsc-3.5.3.ebuild | 6 -- sci-mathematics/petsc/petsc-3.6.0.ebuild | 6 -- sci-mathematics/petsc/petsc-3.6.3.ebuild | 6 -- 4 files changed, 24 deletions(-) diff --git a/sci-mathematics/petsc/petsc-3.4.2.ebuild b/sci-mathematics/petsc/petsc-3.4.2.ebuild index 6a8dace..52e9a19 100644 --- a/sci-mathematics/petsc/petsc-3.4.2.ebuild +++ b/sci-mathematics/petsc/petsc-3.4.2.ebuild @@ -239,9 +239,3 @@ src_install() { dohtml -r docs/*.html docs/changes docs/manualpages fi } - -pkg_postinst() { - elog "The petsc ebuild is still under development." - elog "Help us improve the ebuild in:" - elog "http://bugs.gentoo.org/show_bug.cgi?id=53386"; -} diff --git a/sci-mathematics/petsc/petsc-3.5.3.ebuild b/sci-mathematics/petsc/petsc-3.5.3.ebuild index a5d339b..7c1d0b3 100644 --- a/sci-mathematics/petsc/petsc-3.5.3.ebuild +++ b/sci-mathematics/petsc/petsc-3.5.3.ebuild @@ -242,9 +242,3 @@ src_install() { dohtml -r docs/*.html docs/changes docs/manualpages fi } - -pkg_postinst() { - elog "The petsc ebuild is still under development." - elog "Help us improve the ebuild in:" - elog "http://bugs.gentoo.org/show_bug.cgi?id=53386"; -} diff --git a/sci-mathematics/petsc/petsc-3.6.0.ebuild b/sci-mathematics/petsc/petsc-3.6.0.ebuild index 874eca0..58ff3bd 100644 --- a/sci-mathematics/petsc/petsc-3.6.0.ebuild +++ b/sci-mathematics/petsc/petsc-3.6.0.ebuild @@ -245,9 +245,3 @@ src_install() { dohtml -r docs/*.html docs/changes docs/manualpages fi } - -pkg_postinst() { - elog "The petsc ebuild is still under development." - elog "Help us improve the ebuild in:" - elog "http://bugs.gentoo.org/show_bug.cgi?id=53386"; -} diff --git a/sci-mathematics/petsc/petsc-3.6.3.ebuild b/sci-mathematics/petsc/petsc-3.6.3.ebuild index dd3aed2..87537cb 100644 --- a/sci-mathematics/petsc/petsc-3.6.3.ebuild +++ b/sci-mathematics/petsc/petsc-3.6.3.ebuild @@ -245,9 +245,3 @@ src_install() { dohtml -r docs/*.html docs/changes docs/manualpages fi } - -pkg_postinst() { - elog "The petsc ebuild is still under development." - elog "Help us improve the ebuild in:" - elog "http://bugs.gentoo.org/show_bug.cgi?id=53386"; -}
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: ea635c5ba9ce7015a7f3cf0f1aa1b8341e9c0eab Author: Matthias Maier gentoo org> AuthorDate: Thu Dec 31 08:02:03 2015 + Commit: Justin Lecher gentoo org> CommitDate: Thu Dec 31 08:02:21 2015 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=ea635c5b sci-mathematics/petsc: version bump to 2.6.3 Package-Manager: portage-2.2.26 sci-mathematics/petsc/ChangeLog | 5 + sci-mathematics/petsc/petsc-3.6.3.ebuild | 253 +++ 2 files changed, 258 insertions(+) diff --git a/sci-mathematics/petsc/ChangeLog b/sci-mathematics/petsc/ChangeLog index 861d62b..89fdf76 100644 --- a/sci-mathematics/petsc/ChangeLog +++ b/sci-mathematics/petsc/ChangeLog @@ -2,6 +2,11 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ +*petsc-3.6.3 (31 Dec 2015) + + 31 Dec 2015; Matthias Maier +petsc-3.6.3.ebuild: + sci-mathematics/petsc: version bump + 01 Sep 2015; Marius Brehler petsc-3.5.3.ebuild, petsc-3.6.0.ebuild: sci-mathematics/petsc: Add subslot for fftw dependency diff --git a/sci-mathematics/petsc/petsc-3.6.3.ebuild b/sci-mathematics/petsc/petsc-3.6.3.ebuild new file mode 100644 index 000..dd3aed2 --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.6.3.ebuild @@ -0,0 +1,253 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator + +MY_P="${PN}-$(replace_version_separator _ -)" + +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"; + +LICENSE="petsc" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi mumps scotch sparse superlu threads X" +# Failed: imagemagick metis + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + hdf5? ( mpi ) + hypre? ( cxx mpi ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + ^^ ( hypre superlu ) +" +# imagemagick? ( X ) + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( sci-libs/superlu ) + X? ( x11-libs/libX11 ) +" +# metis? ( sci-libs/parmetis ) +# imagemagick? ( media-gfx/imagemagick ) + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + dev-util/cmake +" +# cmake is used for parallel building +# in some configuration setups, legacy build is used (slow) + +# +# PETSc does not want its Makefiles to be invoked with anything higher than +# -j1. The underlying build system does automatically invoke a parallel +# build. This might not be what you want, but *hey* not your choice. +# +MAKEOPTS="${MAKEOPTS} -j1" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-3.6.0-disable-rpath.patch \ + "${FILESDIR}"/${PN}-3.6.0-fix_sandbox_violation.patch + + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +src_configure() { + # bug 548498 + # PETSc runs mpi processes during configure that result in a sandbox + # violation by trying to open /proc/mtrr rw. This is not easy to + # mitigate because it happens in libpciaccess.so called by libhwloc.so, + # which is used by libmpi.so. + addpredict /proc/mtrr + + # petsc uses --with-blah=1 and --with-blah=0 to en/disable options + petsc_enable() { + use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" + } + # add external library: + # petsc_with use_flag libname libdir + # petsc_with use_flag libname include linking_libs + petsc_with() { + local myuse p=${2:-${1}} + if use ${1}; then + myuse="--with-${p}=1" + if [[ $# -ge 4 ]]; then + myuse="${myuse} --with-${p}-include=${EPREFIX}${3}" + shift 3 + myuse="${myuse} --with-${p}-lib=$@" + else + myuse="${myuse} --with-${p}-dir=${EPREFIX}${3:-/usr}" + fi + else + myuse="--with-${p}=0" + fi + echo ${myuse} + }
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: c0b79811015288696f74c4c55694e6c3c1b95413 Author: Marius Brehler linux sungazer de> AuthorDate: Tue Sep 1 08:16:12 2015 + Commit: Justin Lecher gentoo org> CommitDate: Tue Sep 1 08:16:12 2015 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=c0b79811 sci-mathematics/petsc: Add subslot for fftw dependency Package-Manager: portage-2.2.20.1 sci-mathematics/petsc/ChangeLog | 4 sci-mathematics/petsc/petsc-3.5.3.ebuild | 2 +- sci-mathematics/petsc/petsc-3.6.0.ebuild | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sci-mathematics/petsc/ChangeLog b/sci-mathematics/petsc/ChangeLog index ede47d8..861d62b 100644 --- a/sci-mathematics/petsc/ChangeLog +++ b/sci-mathematics/petsc/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Id$ + 01 Sep 2015; Marius Brehler petsc-3.5.3.ebuild, + petsc-3.6.0.ebuild: + sci-mathematics/petsc: Add subslot for fftw dependency + 23 Jun 2015; Matthias Maier petsc-3.5.3.ebuild, petsc-3.6.0.ebuild: sci-mathematics/petsc: Avoid a sandbox violation, bug #548498 diff --git a/sci-mathematics/petsc/petsc-3.5.3.ebuild b/sci-mathematics/petsc/petsc-3.5.3.ebuild index 44076f7..a5d339b 100644 --- a/sci-mathematics/petsc/petsc-3.5.3.ebuild +++ b/sci-mathematics/petsc/petsc-3.5.3.ebuild @@ -38,7 +38,7 @@ RDEPEND=" virtual/lapack afterimage? ( media-libs/libafterimage ) boost? ( dev-libs/boost ) - fftw? ( sci-libs/fftw[mpi?] ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) hdf5? ( sci-libs/hdf5[mpi?] ) hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) mpi? ( virtual/mpi[cxx?,fortran?] ) diff --git a/sci-mathematics/petsc/petsc-3.6.0.ebuild b/sci-mathematics/petsc/petsc-3.6.0.ebuild index 6a5ce37..874eca0 100644 --- a/sci-mathematics/petsc/petsc-3.6.0.ebuild +++ b/sci-mathematics/petsc/petsc-3.6.0.ebuild @@ -38,7 +38,7 @@ RDEPEND=" virtual/lapack afterimage? ( media-libs/libafterimage ) boost? ( dev-libs/boost ) - fftw? ( sci-libs/fftw[mpi?] ) + fftw? ( sci-libs/fftw:3.0[mpi?] ) hdf5? ( sci-libs/hdf5[mpi?] ) hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) mpi? ( virtual/mpi[cxx?,fortran?] )
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 8b2c35ac92ac6644a09d897c1616ed3753396bff Author: Matthias Maier gentoo org> AuthorDate: Tue Jun 23 18:03:38 2015 + Commit: Justin Lecher gentoo org> CommitDate: Tue Jun 23 18:03:38 2015 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=8b2c35ac sci-mathematics/petsc: Avoid a sandbox violation, bug #548498 Package-Manager: portage-2.2.18 sci-mathematics/petsc/ChangeLog | 4 sci-mathematics/petsc/petsc-3.5.3.ebuild | 7 +++ sci-mathematics/petsc/petsc-3.6.0.ebuild | 7 +++ 3 files changed, 18 insertions(+) diff --git a/sci-mathematics/petsc/ChangeLog b/sci-mathematics/petsc/ChangeLog index 858b694..1f8dcbb 100644 --- a/sci-mathematics/petsc/ChangeLog +++ b/sci-mathematics/petsc/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 23 Jun 2015; Matthias Maier petsc-3.5.3.ebuild, + petsc-3.6.0.ebuild: + sci-mathematics/petsc: Avoid a sandbox violation, bug #548498 + *petsc-3.6.0 (23 Jun 2015) 23 Jun 2015; Matthias Maier diff --git a/sci-mathematics/petsc/petsc-3.5.3.ebuild b/sci-mathematics/petsc/petsc-3.5.3.ebuild index 09e5bfb..c7f0269 100644 --- a/sci-mathematics/petsc/petsc-3.5.3.ebuild +++ b/sci-mathematics/petsc/petsc-3.5.3.ebuild @@ -74,6 +74,13 @@ src_prepare() { } src_configure() { + # bug 548498 + # PETSc runs mpi processes during configure that result in a sandbox + # violation by trying to open /proc/mtrr rw. This is not easy to + # mitigate because it happens in libpciaccess.so called by libhwloc.so, + # which is used by libmpi.so. + addpredict /proc/mtrr + # petsc uses --with-blah=1 and --with-blah=0 to en/disable options petsc_enable() { use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" diff --git a/sci-mathematics/petsc/petsc-3.6.0.ebuild b/sci-mathematics/petsc/petsc-3.6.0.ebuild index 6c96de3..d7ee394 100644 --- a/sci-mathematics/petsc/petsc-3.6.0.ebuild +++ b/sci-mathematics/petsc/petsc-3.6.0.ebuild @@ -77,6 +77,13 @@ src_prepare() { } src_configure() { + # bug 548498 + # PETSc runs mpi processes during configure that result in a sandbox + # violation by trying to open /proc/mtrr rw. This is not easy to + # mitigate because it happens in libpciaccess.so called by libhwloc.so, + # which is used by libmpi.so. + addpredict /proc/mtrr + # petsc uses --with-blah=1 and --with-blah=0 to en/disable options petsc_enable() { use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0"
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/, sci-mathematics/petsc/files/
commit: a5ec25be61777284cc15c42d6574b33388932ee9 Author: Matthias Maier gentoo org> AuthorDate: Tue Jun 23 17:37:16 2015 + Commit: Justin Lecher gentoo org> CommitDate: Tue Jun 23 17:37:16 2015 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=a5ec25be version bump Package-Manager: portage-2.2.18 sci-mathematics/petsc/ChangeLog | 8 ...able-rpath.patch => petsc-3.6.0-disable-rpath.patch} | 9 + .../petsc/files/petsc-3.6.0-fix_sandbox_violation.patch | 15 +++ .../petsc/{petsc-3.5.1.ebuild => petsc-3.6.0.ebuild}| 17 ++--- 4 files changed, 38 insertions(+), 11 deletions(-) diff --git a/sci-mathematics/petsc/ChangeLog b/sci-mathematics/petsc/ChangeLog index a29efad..858b694 100644 --- a/sci-mathematics/petsc/ChangeLog +++ b/sci-mathematics/petsc/ChangeLog @@ -2,6 +2,14 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*petsc-3.6.0 (23 Jun 2015) + + 23 Jun 2015; Matthias Maier + +files/petsc-3.6.0-disable-rpath.patch, + +files/petsc-3.6.0-fix_sandbox_violation.patch, +petsc-3.6.0.ebuild, + -files/petsc-3.5.1-disable-rpath.patch, -petsc-3.5.1.ebuild: + version bump + *petsc-3.5.3 (13 Mar 2015) 13 Mar 2015; Matthias Maier diff --git a/sci-mathematics/petsc/files/petsc-3.5.1-disable-rpath.patch b/sci-mathematics/petsc/files/petsc-3.6.0-disable-rpath.patch similarity index 65% rename from sci-mathematics/petsc/files/petsc-3.5.1-disable-rpath.patch rename to sci-mathematics/petsc/files/petsc-3.6.0-disable-rpath.patch index 0ccf45d..88a7db5 100644 --- a/sci-mathematics/petsc/files/petsc-3.5.1-disable-rpath.patch +++ b/sci-mathematics/petsc/files/petsc-3.6.0-disable-rpath.patch @@ -1,6 +1,7 @@ config/BuildSystem/config/setCompilers.py 2013-10-08 19:45:00.581513389 +0200 -+++ config/BuildSystem/config/setCompilers.py 2013-05-13 23:35:20.0 +0200 -@@ -1303,12 +1303,7 @@ +diff --git a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py +--- a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py +@@ -1326,12 +1326,7 @@ class Configure(config.base.Configure): for language in languages: flag = '-L' self.pushLanguage(language) @@ -8,7 +9,7 @@ - if not Configure.isDarwin(): -testFlags = ['-Wl,-rpath,', '-R','-rpath ' , '-Wl,-R,'] - else: --testFlags = [] +-testFlags = ['-Wl,-rpath,'] - # test '-R' before '-Wl,-rpath' for SUN compilers [as cc on linux accepts -Wl,-rpath, but f90 & CC do not. + testFlags = [] if self.isSun(self.framework.getCompiler()): diff --git a/sci-mathematics/petsc/files/petsc-3.6.0-fix_sandbox_violation.patch b/sci-mathematics/petsc/files/petsc-3.6.0-fix_sandbox_violation.patch new file mode 100644 index 000..7510631 --- /dev/null +++ b/sci-mathematics/petsc/files/petsc-3.6.0-fix_sandbox_violation.patch @@ -0,0 +1,15 @@ +--- config/PETSc/options/installDir.py.orig2015-06-23 18:11:25.054911894 +0200 config/PETSc/options/installDir.py 2015-06-23 18:11:44.100289841 +0200 +@@ -38,12 +38,6 @@ + self.installSudoMessage = '' + if self.framework.argDB['prefix']: + self.dir = self.framework.argDB['prefix'] +- try: +-os.makedirs(os.path.join(self.dir,'PETScTestDirectory')) +-os.rmdir(os.path.join(self.dir,'PETScTestDirectory')) +- except: +-self.installSudoMessage = 'You do not have write permissions to the --prefix directory '+self.dir+'\nYou will be prompted for the sudo password for any external package installs' +-self.installSudo = 'sudo ' + else: + self.dir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) + self.confDir = os.path.abspath(os.path.join(self.petscdir.dir, self.arch.arch)) diff --git a/sci-mathematics/petsc/petsc-3.5.1.ebuild b/sci-mathematics/petsc/petsc-3.6.0.ebuild similarity index 94% rename from sci-mathematics/petsc/petsc-3.5.1.ebuild rename to sci-mathematics/petsc/petsc-3.6.0.ebuild index 3d01eee..6c96de3 100644 --- a/sci-mathematics/petsc/petsc-3.5.1.ebuild +++ b/sci-mathematics/petsc/petsc-3.6.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ @@ -69,7 +69,10 @@ MAKEOPTS="${MAKEOPTS} -j1" S="${WORKDIR}/${MY_P}" src_prepare() { - epatch "${FILESDIR}"/${P%_*}-disable-rpath.patch + epatch \ + "${FILESDIR}"/${P%_*}-disable-rpath.patch \ + "${FILESDIR}"/${P%_*}-fix_sandbox_violation.patch + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die } @@ -192,18 +195,18 @@ src_install() { doins ${PETSC_ARCH}/include/* if use fortran; then insinto /usr/include/${PN}/finclude - doins -r include/finc
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/files/, sci-mathematics/petsc/
commit: e5b32727b4eb32e49f03c780c8c6005ee42a2843 Author: Matthias Maier gentoo org> AuthorDate: Fri Mar 13 13:19:23 2015 + Commit: Justin Lecher gentoo org> CommitDate: Sat Mar 14 08:21:00 2015 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=e5b32727 version bump Package-Manager: portage-2.2.15 sci-mathematics/petsc/ChangeLog| 8 +- .../petsc/files/petsc-3.5.3-disable-rpath.patch| 18 ++ sci-mathematics/petsc/petsc-3.5.3.ebuild | 243 + 3 files changed, 268 insertions(+), 1 deletion(-) diff --git a/sci-mathematics/petsc/ChangeLog b/sci-mathematics/petsc/ChangeLog index a3aabff..a29efad 100644 --- a/sci-mathematics/petsc/ChangeLog +++ b/sci-mathematics/petsc/ChangeLog @@ -1,7 +1,13 @@ # ChangeLog for sci-mathematics/petsc -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*petsc-3.5.3 (13 Mar 2015) + + 13 Mar 2015; Matthias Maier + +files/petsc-3.5.3-disable-rpath.patch, +petsc-3.5.3.ebuild: + version bump + 16 Sep 2014; Christoph Junghans petsc-3.4.2.ebuild: remove whitespace diff --git a/sci-mathematics/petsc/files/petsc-3.5.3-disable-rpath.patch b/sci-mathematics/petsc/files/petsc-3.5.3-disable-rpath.patch new file mode 100644 index 000..7fe3760 --- /dev/null +++ b/sci-mathematics/petsc/files/petsc-3.5.3-disable-rpath.patch @@ -0,0 +1,18 @@ +diff --git a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py +index 8e0d2ee..ce53ad0 100644 +--- a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py +@@ -1326,12 +1326,7 @@ class Configure(config.base.Configure): + for language in languages: + flag = '-L' + self.pushLanguage(language) +- # test '-R' before '-rpath' as sun compilers [c,fortran] don't give proper errors with wrong options. +- if not Configure.isDarwin(): +-testFlags = ['-Wl,-rpath,', '-R','-rpath ' , '-Wl,-R,'] +- else: +-testFlags = [] +- # test '-R' before '-Wl,-rpath' for SUN compilers [as cc on linux accepts -Wl,-rpath, but f90 & CC do not. ++ testFlags = [] + if self.isSun(self.framework.getCompiler()): + testFlags.insert(0,'-R') + for testFlag in testFlags: diff --git a/sci-mathematics/petsc/petsc-3.5.3.ebuild b/sci-mathematics/petsc/petsc-3.5.3.ebuild new file mode 100644 index 000..09e5bfb --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.5.3.ebuild @@ -0,0 +1,243 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator + +MY_P="${PN}-$(replace_version_separator _ -)" + +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"; + +LICENSE="petsc" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi mumps scotch sparse superlu threads X" +# Failed: imagemagick metis + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + hdf5? ( mpi ) + hypre? ( cxx mpi ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + ^^ ( hypre superlu ) +" +# imagemagick? ( X ) + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( sci-libs/superlu ) + X? ( x11-libs/libX11 ) +" +# metis? ( sci-libs/parmetis ) +# imagemagick? ( media-gfx/imagemagick ) + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + dev-util/cmake +" +# cmake is used for parallel building +# in some configuration setups, legacy build is used (slow) + +# +# PETSc does not want its Makefiles to be invoked with anything higher than +# -j1. The underlying build system does automatically invoke a parallel +# build. This might not be what you want, but *hey* not your choice. +# +MAKEOPTS="${MAKEOPTS} -j1" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/${P%_*}-disable-rpath.patch + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +src_configure() { + # petsc uses --with-blah=1 and --with-blah=0 to en/disable options +
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/files/, sci-mathematics/petsc/
commit: ccf847720716a390cbe79d4b06b60113d9748774 Author: Matthias Maier gentoo org> AuthorDate: Fri Mar 13 13:19:23 2015 + Commit: Justin Lecher gentoo org> CommitDate: Fri Mar 13 13:19:23 2015 + URL:https://gitweb.gentoo.org/proj/sci.git/commit/?id=ccf84772 version bump Package-Manager: portage-2.2.15 sci-mathematics/petsc/ChangeLog| 8 +- .../petsc/files/petsc-3.5.3-disable-rpath.patch| 18 ++ sci-mathematics/petsc/petsc-3.5.3.ebuild | 243 + 3 files changed, 268 insertions(+), 1 deletion(-) diff --git a/sci-mathematics/petsc/ChangeLog b/sci-mathematics/petsc/ChangeLog index a3aabff..a29efad 100644 --- a/sci-mathematics/petsc/ChangeLog +++ b/sci-mathematics/petsc/ChangeLog @@ -1,7 +1,13 @@ # ChangeLog for sci-mathematics/petsc -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*petsc-3.5.3 (13 Mar 2015) + + 13 Mar 2015; Matthias Maier + +files/petsc-3.5.3-disable-rpath.patch, +petsc-3.5.3.ebuild: + version bump + 16 Sep 2014; Christoph Junghans petsc-3.4.2.ebuild: remove whitespace diff --git a/sci-mathematics/petsc/files/petsc-3.5.3-disable-rpath.patch b/sci-mathematics/petsc/files/petsc-3.5.3-disable-rpath.patch new file mode 100644 index 000..7fe3760 --- /dev/null +++ b/sci-mathematics/petsc/files/petsc-3.5.3-disable-rpath.patch @@ -0,0 +1,18 @@ +diff --git a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py +index 8e0d2ee..ce53ad0 100644 +--- a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py +@@ -1326,12 +1326,7 @@ class Configure(config.base.Configure): + for language in languages: + flag = '-L' + self.pushLanguage(language) +- # test '-R' before '-rpath' as sun compilers [c,fortran] don't give proper errors with wrong options. +- if not Configure.isDarwin(): +-testFlags = ['-Wl,-rpath,', '-R','-rpath ' , '-Wl,-R,'] +- else: +-testFlags = [] +- # test '-R' before '-Wl,-rpath' for SUN compilers [as cc on linux accepts -Wl,-rpath, but f90 & CC do not. ++ testFlags = [] + if self.isSun(self.framework.getCompiler()): + testFlags.insert(0,'-R') + for testFlag in testFlags: diff --git a/sci-mathematics/petsc/petsc-3.5.3.ebuild b/sci-mathematics/petsc/petsc-3.5.3.ebuild new file mode 100644 index 000..09e5bfb --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.5.3.ebuild @@ -0,0 +1,243 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator + +MY_P="${PN}-$(replace_version_separator _ -)" + +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"; + +LICENSE="petsc" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi mumps scotch sparse superlu threads X" +# Failed: imagemagick metis + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + hdf5? ( mpi ) + hypre? ( cxx mpi ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + ^^ ( hypre superlu ) +" +# imagemagick? ( X ) + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( sci-libs/superlu ) + X? ( x11-libs/libX11 ) +" +# metis? ( sci-libs/parmetis ) +# imagemagick? ( media-gfx/imagemagick ) + +DEPEND="${RDEPEND} + ${PYTHON_DEPS} + virtual/pkgconfig + dev-util/cmake +" +# cmake is used for parallel building +# in some configuration setups, legacy build is used (slow) + +# +# PETSc does not want its Makefiles to be invoked with anything higher than +# -j1. The underlying build system does automatically invoke a parallel +# build. This might not be what you want, but *hey* not your choice. +# +MAKEOPTS="${MAKEOPTS} -j1" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/${P%_*}-disable-rpath.patch + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die +} + +src_configure() { + # petsc uses --with-blah=1 and --with-blah=0 to en/disable options +
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: e677c77edead491f921c2d24a7935ee6be6b5af0 Author: Christoph Junghans gentoo org> AuthorDate: Tue Sep 16 16:55:59 2014 + Commit: Christoph Junghans gentoo org> CommitDate: Tue Sep 16 16:55:59 2014 + URL:http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e677c77e remove whitespace Package-Manager: portage-2.2.8-r1 --- sci-mathematics/petsc/ChangeLog | 4 +++- sci-mathematics/petsc/petsc-3.4.2.ebuild | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sci-mathematics/petsc/ChangeLog b/sci-mathematics/petsc/ChangeLog index 7e45651..a3aabff 100644 --- a/sci-mathematics/petsc/ChangeLog +++ b/sci-mathematics/petsc/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 16 Sep 2014; Christoph Junghans petsc-3.4.2.ebuild: + remove whitespace + 01 Sep 2014; Jauhien Piatlicki petsc-3.4.2.ebuild, petsc-3.5.1.ebuild: fix INCLUDE dirs in petscvariables @@ -129,4 +132,3 @@ 13 Sep 2010; Thomas Kahle +petsc-3.1_p4.ebuild, +files/fix-configure-pic.patch, +files/fix-mpiuni.patch, +metadata.xml: New package. Ebuild by J. M. Gottfried. Corresponding bug is 53386. - diff --git a/sci-mathematics/petsc/petsc-3.4.2.ebuild b/sci-mathematics/petsc/petsc-3.4.2.ebuild index b0c767a..604da45 100644 --- a/sci-mathematics/petsc/petsc-3.4.2.ebuild +++ b/sci-mathematics/petsc/petsc-3.4.2.ebuild @@ -172,7 +172,7 @@ src_configure() { /usr/include \ [-lcmumps,-ldmumps,-lsmumps,-lzmumps,-lmumps_common,-lpord]) \ --with-imagemagick=0 \ - --with-python=0 \ + --with-python=0 # not yet tested: # python bindings, netcdf
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: f6dac7e5f0c578330f3994c83afc702c78d785a4 Author: Jauhien Piatlicki gentoo org> AuthorDate: Mon Sep 1 17:53:43 2014 + Commit: Jauhien Piatlicki gentoo org> CommitDate: Mon Sep 1 17:53:43 2014 + URL:http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=f6dac7e5 sci-mathematics/petsc: fix INCLUDE dirs in petscvariables --- sci-mathematics/petsc/ChangeLog | 4 sci-mathematics/petsc/petsc-3.4.2.ebuild | 4 sci-mathematics/petsc/petsc-3.5.1.ebuild | 4 3 files changed, 12 insertions(+) diff --git a/sci-mathematics/petsc/ChangeLog b/sci-mathematics/petsc/ChangeLog index a0fd4a7..7e45651 100644 --- a/sci-mathematics/petsc/ChangeLog +++ b/sci-mathematics/petsc/ChangeLog @@ -4,6 +4,10 @@ 01 Sep 2014; Jauhien Piatlicki petsc-3.4.2.ebuild, petsc-3.5.1.ebuild: + fix INCLUDE dirs in petscvariables + + 01 Sep 2014; Jauhien Piatlicki petsc-3.4.2.ebuild, + petsc-3.5.1.ebuild: make configure work on systems with default python3 interpreter 06 Jan 2014; Justin Lecher -petsc-3.3_p5.ebuild, diff --git a/sci-mathematics/petsc/petsc-3.4.2.ebuild b/sci-mathematics/petsc/petsc-3.4.2.ebuild index 065c95d..b0c767a 100644 --- a/sci-mathematics/petsc/petsc-3.4.2.ebuild +++ b/sci-mathematics/petsc/petsc-3.4.2.ebuild @@ -216,6 +216,10 @@ src_install() { "${ED}"/usr/include/${PN}/${PETSC_ARCH}/include/petscconf.h \ "${ED}"/usr/include/${PN}/${PETSC_ARCH}/conf/petscvariables || die sed -i \ + -e "s:-I/include:-I${EPREFIX}/usr/include/${PN}:g" \ + -e "s:-I/linux-gnu-cxx-opt/include:-I${EPREFIX}/usr/include/${PN}/${PETSC_ARCH}/include/:g" \ + "${ED}"/usr/include/${PN}/${PETSC_ARCH}/conf/petscvariables || die + sed -i \ -e "s:usr/lib:usr/$(get_libdir):g" \ "${ED}"/usr/include/${PN}/${PETSC_ARCH}/include/petscconf.h || die diff --git a/sci-mathematics/petsc/petsc-3.5.1.ebuild b/sci-mathematics/petsc/petsc-3.5.1.ebuild index 147c36b..3d01eee 100644 --- a/sci-mathematics/petsc/petsc-3.5.1.ebuild +++ b/sci-mathematics/petsc/petsc-3.5.1.ebuild @@ -211,6 +211,10 @@ src_install() { "${ED}"/usr/include/${PN}/${PETSC_ARCH}/include/petscconf.h \ "${ED}"/usr/include/${PN}/${PETSC_ARCH}/conf/petscvariables || die sed -i \ + -e "s:-I/include:-I${EPREFIX}/usr/include/${PN}:g" \ + -e "s:-I/linux-gnu-cxx-opt/include:-I${EPREFIX}/usr/include/${PN}/${PETSC_ARCH}/include/:g" \ + "${ED}"/usr/include/${PN}/${PETSC_ARCH}/conf/petscvariables || die + sed -i \ -e "s:usr/lib:usr/$(get_libdir):g" \ "${ED}"/usr/include/${PN}/${PETSC_ARCH}/include/petscconf.h || die
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: da574aba923a790a2af6c043f5a3f94a0659bf53 Author: Jauhien Piatlicki gentoo org> AuthorDate: Mon Sep 1 13:05:37 2014 + Commit: Jauhien Piatlicki gentoo org> CommitDate: Mon Sep 1 13:05:37 2014 + URL:http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=da574aba sci-mathematics/petsc: make configure work on systems with default python3 interpreter --- sci-mathematics/petsc/ChangeLog | 4 sci-mathematics/petsc/petsc-3.4.2.ebuild | 6 +- sci-mathematics/petsc/petsc-3.5.1.ebuild | 6 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/sci-mathematics/petsc/ChangeLog b/sci-mathematics/petsc/ChangeLog index f963803..a0fd4a7 100644 --- a/sci-mathematics/petsc/ChangeLog +++ b/sci-mathematics/petsc/ChangeLog @@ -2,6 +2,10 @@ # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 01 Sep 2014; Jauhien Piatlicki petsc-3.4.2.ebuild, + petsc-3.5.1.ebuild: + make configure work on systems with default python3 interpreter + 06 Jan 2014; Justin Lecher -petsc-3.3_p5.ebuild, petsc-3.4.2.ebuild, metadata.xml: Punt base.eclass diff --git a/sci-mathematics/petsc/petsc-3.4.2.ebuild b/sci-mathematics/petsc/petsc-3.4.2.ebuild index 5263263..065c95d 100644 --- a/sci-mathematics/petsc/petsc-3.4.2.ebuild +++ b/sci-mathematics/petsc/petsc-3.4.2.ebuild @@ -4,7 +4,9 @@ EAPI=5 -inherit eutils flag-o-matic fortran-2 toolchain-funcs versionator +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator MY_P="${PN}-$(replace_version_separator _ -)" @@ -49,6 +51,7 @@ RDEPEND=" # imagemagick? ( media-gfx/imagemagick ) DEPEND="${RDEPEND} + ${PYTHON_DEPS} virtual/pkgconfig dev-util/cmake " @@ -66,6 +69,7 @@ S="${WORKDIR}/${MY_P}" src_prepare() { epatch "${FILESDIR}"/${P%_*}-disable-rpath.patch + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die } src_configure() { diff --git a/sci-mathematics/petsc/petsc-3.5.1.ebuild b/sci-mathematics/petsc/petsc-3.5.1.ebuild index bacf55e..147c36b 100644 --- a/sci-mathematics/petsc/petsc-3.5.1.ebuild +++ b/sci-mathematics/petsc/petsc-3.5.1.ebuild @@ -4,7 +4,9 @@ EAPI=5 -inherit eutils flag-o-matic fortran-2 toolchain-funcs versionator +PYTHON_COMPAT=( python2_7 ) + +inherit eutils flag-o-matic fortran-2 python-any-r1 toolchain-funcs versionator MY_P="${PN}-$(replace_version_separator _ -)" @@ -50,6 +52,7 @@ RDEPEND=" # imagemagick? ( media-gfx/imagemagick ) DEPEND="${RDEPEND} + ${PYTHON_DEPS} virtual/pkgconfig dev-util/cmake " @@ -67,6 +70,7 @@ S="${WORKDIR}/${MY_P}" src_prepare() { epatch "${FILESDIR}"/${P%_*}-disable-rpath.patch + sed -i -e 's%/usr/bin/env python%/usr/bin/env python2%' configure || die } src_configure() {
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
commit: 9d554536bddca6aa5d766020a3513ec16bc5000b Author: layman localhost> AuthorDate: Sun Aug 3 08:55:23 2014 + Commit: Justin Lecher gentoo org> CommitDate: Sun Aug 3 08:55:23 2014 + URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=9d554536 Install the .f90 fortran includes. --- sci-mathematics/petsc/petsc-3.5.1.ebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sci-mathematics/petsc/petsc-3.5.1.ebuild b/sci-mathematics/petsc/petsc-3.5.1.ebuild index e4ea76a..bacf55e 100644 --- a/sci-mathematics/petsc/petsc-3.5.1.ebuild +++ b/sci-mathematics/petsc/petsc-3.5.1.ebuild @@ -165,7 +165,7 @@ src_configure() { --with-imagemagick=0 \ --with-python=0 \ $(petsc_with boost) \ - $(petsc_with fftw) \ + $(petsc_with fftw) # not yet tested: # python bindings, netcdf, fftw @@ -188,7 +188,7 @@ src_install() { doins ${PETSC_ARCH}/include/* if use fortran; then insinto /usr/include/${PN}/finclude - doins include/finclude/*.h + doins -r include/finclude/* fi if ! use mpi ; then insinto /usr/include/${PN}/mpiuni @@ -219,6 +219,7 @@ src_install() { doenvd 99petsc dolib.so ${PETSC_ARCH}/lib/*.so + dolib.so ${PETSC_ARCH}/lib/*.so.* if use doc ; then einfo "installing documentation (this could take a while)"
[gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/files/, sci-mathematics/petsc/
commit: eaa505b7fe3ae5a00cc9d99e1d8f4ab960e66610 Author: Jens Malte Gottfried web de> AuthorDate: Thu Jul 24 21:49:32 2014 + Commit: Jens-Malte Gottfried godefridus de> CommitDate: Thu Jul 24 21:49:32 2014 + URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=eaa505b7 petc-3.5.1 version bump --- .../petsc/files/petsc-3.5.1-disable-rpath.patch| 16 ++ sci-mathematics/petsc/metadata.xml | 4 +- sci-mathematics/petsc/petsc-3.5.1.ebuild | 234 + 3 files changed, 251 insertions(+), 3 deletions(-) diff --git a/sci-mathematics/petsc/files/petsc-3.5.1-disable-rpath.patch b/sci-mathematics/petsc/files/petsc-3.5.1-disable-rpath.patch new file mode 100644 index 000..0ccf45d --- /dev/null +++ b/sci-mathematics/petsc/files/petsc-3.5.1-disable-rpath.patch @@ -0,0 +1,16 @@ +--- config/BuildSystem/config/setCompilers.py 2013-10-08 19:45:00.581513389 +0200 config/BuildSystem/config/setCompilers.py 2013-05-13 23:35:20.0 +0200 +@@ -1303,12 +1303,7 @@ + for language in languages: + flag = '-L' + self.pushLanguage(language) +- # test '-R' before '-rpath' as sun compilers [c,fortran] don't give proper errors with wrong options. +- if not Configure.isDarwin(): +-testFlags = ['-Wl,-rpath,', '-R','-rpath ' , '-Wl,-R,'] +- else: +-testFlags = [] +- # test '-R' before '-Wl,-rpath' for SUN compilers [as cc on linux accepts -Wl,-rpath, but f90 & CC do not. ++ testFlags = [] + if self.isSun(self.framework.getCompiler()): + testFlags.insert(0,'-R') + for testFlag in testFlags: diff --git a/sci-mathematics/petsc/metadata.xml b/sci-mathematics/petsc/metadata.xml index a22c6dc..fc9f3e8 100644 --- a/sci-mathematics/petsc/metadata.xml +++ b/sci-mathematics/petsc/metadata.xml @@ -4,14 +4,12 @@ sci-mathematics Use Afterstep image library (media-libs/libafterimage) +Use boost (dev-libs/boost) Use HYPRE (sci-mathematics/hypre) and for preconditioning Make scalars complex Use suitesparse (sci-libs/suitesparse) including cholmod (sci-libs/cholmod) for sparse factorization Use superlu (sci-libs/superlu) for preconditioning PLEASE FIX MY DESCRIPTION PLEASE FIX MY DESCRIPTION - diff --git a/sci-mathematics/petsc/petsc-3.5.1.ebuild b/sci-mathematics/petsc/petsc-3.5.1.ebuild new file mode 100644 index 000..e4ea76a --- /dev/null +++ b/sci-mathematics/petsc/petsc-3.5.1.ebuild @@ -0,0 +1,234 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils flag-o-matic fortran-2 toolchain-funcs versionator + +MY_P="${PN}-$(replace_version_separator _ -)" + +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"; + +LICENSE="petsc" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="afterimage boost complex-scalars cxx debug doc fftw + fortran hdf5 hypre mpi mumps scotch sparse superlu threads X" +# Failed: imagemagick metis + +# hypre and superlu curretly exclude each other due to missing linking to hypre +# if both are enabled +REQUIRED_USE=" + afterimage? ( X ) + hdf5? ( mpi ) + hypre? ( cxx mpi ) + mumps? ( mpi scotch ) + scotch? ( mpi ) + ^^ ( hypre superlu ) +" +# imagemagick? ( X ) + +RDEPEND=" + virtual/blas + virtual/lapack + afterimage? ( media-libs/libafterimage ) + boost? ( dev-libs/boost ) + fftw? ( sci-libs/fftw[mpi?] ) + hdf5? ( sci-libs/hdf5[mpi?] ) + hypre? ( >=sci-libs/hypre-2.8.0b[mpi?] ) + mpi? ( virtual/mpi[cxx?,fortran?] ) + mumps? ( sci-libs/mumps[mpi?] sci-libs/scalapack ) + scotch? ( sci-libs/scotch[mpi?] ) + sparse? ( sci-libs/suitesparse >=sci-libs/cholmod-1.7.0 ) + superlu? ( sci-libs/superlu ) + X? ( x11-libs/libX11 ) +" +# metis? ( sci-libs/parmetis ) +# imagemagick? ( media-gfx/imagemagick ) + +DEPEND="${RDEPEND} + virtual/pkgconfig + dev-util/cmake +" +# cmake is used for parallel building +# in some configuration setups, legacy build is used (slow) + +# +# PETSc does not want its Makefiles to be invoked with anything higher than +# -j1. The underlying build system does automatically invoke a parallel +# build. This might not be what you want, but *hey* not your choice. +# +MAKEOPTS="${MAKEOPTS} -j1" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/${P%_*}-disable-rpath.patch +} + +src_configure() { + # petsc uses --with-blah=1 and --with-blah=0 to en/disable options + petsc_enable() { + use "$1" && echo "--with-${2:-$1}=1" || echo "--with-${2:-$1}=0" + } + # add external library: + # petsc_with use_flag libname libdir + # pets