From: "Sebastien Fabbro" <bicatali@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/
Date: Mon, 23 Jan 2012 06:35:08 +0000 (UTC) [thread overview]
Message-ID: <667550afc2c913d35fff9ebba1e98f1b9adf8767.bicatali@gentoo> (raw)
commit: 667550afc2c913d35fff9ebba1e98f1b9adf8767
Author: Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Mon Jan 23 06:35:00 2012 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Mon Jan 23 06:35:00 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=667550af
switched to main tree hypre
---
sci-mathematics/petsc/ChangeLog | 7 +-
sci-mathematics/petsc/petsc-3.1_p4.ebuild | 134 -------------------
sci-mathematics/petsc/petsc-3.1_p5-r2.ebuild | 177 --------------------------
sci-mathematics/petsc/petsc-3.1_p7.ebuild | 177 --------------------------
sci-mathematics/petsc/petsc-3.1_p8-r1.ebuild | 4 +-
sci-mathematics/petsc/petsc-3.1_p8.ebuild | 177 --------------------------
6 files changed, 8 insertions(+), 668 deletions(-)
diff --git a/sci-mathematics/petsc/ChangeLog b/sci-mathematics/petsc/ChangeLog
index 0604c7f..7826fc6 100644
--- a/sci-mathematics/petsc/ChangeLog
+++ b/sci-mathematics/petsc/ChangeLog
@@ -1,7 +1,12 @@
# ChangeLog for sci-mathematics/petsc
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 23 Jan 2012; Sébastien Fabbro <bicatali@gentoo.org> -petsc-3.1_p4.ebuild,
+ -petsc-3.1_p5-r2.ebuild, -petsc-3.1_p7.ebuild, -petsc-3.1_p8.ebuild,
+ petsc-3.1_p8-r1.ebuild:
+ switched to main tree hypre
+
21 Jun 2011; Justin Lecher <jlec@gentoo.org> petsc-3.1_p4.ebuild,
petsc-3.1_p5-r2.ebuild, petsc-3.1_p7.ebuild, petsc-3.1_p8.ebuild,
petsc-3.1_p8-r1.ebuild, metadata.xml:
diff --git a/sci-mathematics/petsc/petsc-3.1_p4.ebuild b/sci-mathematics/petsc/petsc-3.1_p4.ebuild
deleted file mode 100644
index 6adee0a..0000000
--- a/sci-mathematics/petsc/petsc-3.1_p4.ebuild
+++ /dev/null
@@ -1,134 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=3
-
-inherit flag-o-matic fortran-2 toolchain-funcs
-
-MY_P="${PN}-${PV/_/-}"
-
-DESCRIPTION="Portable, Extensible Toolkit for Scientific Computation"
-HOMEPAGE="http://www.mcs.anl.gov/petsc/petsc-as/"
-SRC_URI="http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/${MY_P}.tar.gz"
-
-LICENSE="petsc"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="cxx debug doc fortran mpi static-libs X"
-
-RDEPEND="mpi? ( virtual/mpi[cxx?,fortran?] )
- X? ( x11-libs/libX11 )
- virtual/lapack
- virtual/blas"
-
-DEPEND="${RDEPEND}
- sys-devel/gcc[-nocxx,fortran?]"
-
-S="${WORKDIR}/${MY_P}"
-
-src_prepare(){
- epatch "${FILESDIR}/${PN}-configure-pic.patch"
- # My failed tries on the parallel build QA warnings:
- # sed -i "s/-\?\(@\?\)\${OMAKE}/\1\${MAKE}/g" makefile || die "sed failed"
- # sed -i "s/\ make /\ ${MAKE} /g" makefile || die "sed failed"
-}
-
-src_configure(){
- local mylang
- local myopt
- local myconf
-
- use cxx && mylang="cxx" || mylang="c"
- use debug && myopt="debug" || myopt="opt"
-
- export PETSC_DIR="${S}" || die
- export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" || die
-
- if use mpi; then
- ## this works independently of the used mpi implementation
- ## (openmpi/mpich2)
- myconf="${myconf} --with-cc=/usr/bin/mpicc --with-cxx=/usr/bin/mpicxx"
- myconf="${myconf} --with-fc=/usr/bin/mpif77"
- myconf="${myconf} --with-mpi=1 --with-mpi-compilers=1"
-
- ## of openmpi is used, the following works too, but fails with mpich2
- #myconf="${myconf} --with-mpi-include=/usr/include"
- ## adding mpi libraries, -lmpi only is not sufficient if compiling
- ## with g++, mpi_f77 needed when using fortran (mpi_f90 caused errors)
- #myconf="${myconf} --with-mpi-lib=[/usr/$(get_libdir)/libmpi.so"
- #use cxx && myconf="${myconf},/usr/$(get_libdir)/libmpi_cxx.so"
- #use fortran && myconf="${myconf},/usr/$(get_libdir)/libmpi_f77.so"
- #myconf="${myconf}]"
- #myconf="${myconf} --known-mpi-shared=1"
- else
- myconf="${myconf} --with-cc=$(tc-getCC) --with-cxx=$(tc-getCXX)"
- myconf="${myconf} --with-mpi=0"
- fi
-
- use X \
- && myconf="${myconf} --with-X=1" \
- || myconf="${myconf} --with-X=0"
- use static-libs \
- && myconf="${myconf} --with-shared=0" \
- || myconf="${myconf} --with-shared=1"
- use amd64 \
- && myconf="${myconf} --with-64-bit-indices=1" \
- || myconf="${myconf} --with-64-bit-indices=0"
- use fortran \
- && myconf="${myconf} --with-fortran=1" \
- || myconf="${myconf} --with-fortran=0"
-
- if use debug; then
- strip-flags
- filter-flags -O*
- myconf="${myconf} --with-debugging=1"
- else
- myconf="${myconf} --with-debugging=0"
- fi
-
- python "${S}"/config/configure.py ${myconf} \
- CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" \
- --with-windows-graphics=0 --with-matlab=0 --with-python=0 \
- --with-clanguage="${mylang}" --with-single-library=1 \
- --with-petsc-arch="${PETSC_ARCH}" --with-precision=double \
- --with-blas-lapack-lib="$(pkg-config --libs lapack)" \
- || die "PETSc configuration failed"
-}
-
-src_install(){
- insinto /usr/include/"${PN}"
- doins "${S}"/include/*.h "${S}"/include/*.hh
- doins "${S}/${PETSC_ARCH}"/include/*.h
-
- insinto /usr/include/"${PN}"/private
- doins "${S}"/include/private/*.h
-
- # fix paths stored in petscconf.h
- dosed "s:${S}:/usr:g" /usr/include/"${PN}"/petscconf.h
- dosed "s:${PETSC_ARCH}/lib:$(get_libdir):g" /usr/include/"${PN}"/petscconf.h \
-
- if ! use mpi ; then
- insinto /usr/include/"${PN}"/mpiuni
- doins "${S}"/include/mpiuni/*.h
- fi
-
- if use doc ; then
- dodoc docs/manual.pdf
- dohtml -r docs/*.html docs/changes docs/manualpages
- fi
-
- use static-libs \
- && dolib.a "${S}/${PETSC_ARCH}"/lib/*.a \
- || dolib.so "${S}/${PETSC_ARCH}"/lib/*.so
-}
-
-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"
- elog "This ebuild is known to have parallel build issues, "
- elog "hopefully resolved by upstream soon."
- elog "Another problem is that you can break this package by"
- elog "switching your mpi implementation without rebuild petsc."
-}
diff --git a/sci-mathematics/petsc/petsc-3.1_p5-r2.ebuild b/sci-mathematics/petsc/petsc-3.1_p5-r2.ebuild
deleted file mode 100644
index f3165c2..0000000
--- a/sci-mathematics/petsc/petsc-3.1_p5-r2.ebuild
+++ /dev/null
@@ -1,177 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=3
-
-inherit flag-o-matic fortran-2 toolchain-funcs
-
-MY_P="${PN}-${PV/_/-}"
-
-DESCRIPTION="Portable, Extensible Toolkit for Scientific Computation"
-HOMEPAGE="http://www.mcs.anl.gov/petsc/petsc-as/"
-SRC_URI="http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/${MY_P}.tar.gz"
-
-LICENSE="petsc"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-IUSE="cxx debug doc fortran hdf5 hypre metis mpi static-libs X"
-
-RDEPEND="mpi? ( virtual/mpi[cxx?,fortran?] )
- X? ( x11-libs/libX11 )
- virtual/lapack
- virtual/blas
- hypre? ( >=sci-mathematics/hypre-2.6.0b[static-libs=] )
- metis? ( sci-libs/parmetis )
- hdf5? ( sci-libs/hdf5[!mpi?] )
-"
-
-DEPEND="${RDEPEND}
- sys-devel/gcc[-nocxx,fortran?]"
-
-S="${WORKDIR}/${MY_P}"
-
-if use hypre; then
- use cxx || die "hypre needs cxx, please enable cxx or disable hypre use flag"
- use mpi || die "hypre needs mpi, please enable mpi or disable hypre use flag"
-fi
-
-src_prepare(){
- epatch "${FILESDIR}/${PN}-configure-pic.patch"
- epatch "${FILESDIR}/${PN}-disable-rpath.patch"
-}
-
-src_configure(){
- local mylang
- local myopt
- local myconf
-
- use cxx && mylang="cxx" || mylang="c"
- use debug && myopt="debug" || myopt="opt"
-
- export PETSC_DIR="${S}" || die
- export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" || die
-
- myconf[10]="--with-blas-lapack-lib=$(pkg-config --libs lapack)"
- myconf[11]="CFLAGS=${CFLAGS}"
- myconf[12]="CXXFLAGS=${CXXFLAGS}"
- myconf[13]="LDFLAGS=${LDFLAGS}"
- myconf[14]="--with-windows-graphics=0"
- myconf[15]="--with-matlab=0"
- myconf[16]="--with-python=0"
- myconf[17]="--with-clanguage=${mylang}"
- myconf[18]="--with-single-library=1"
- myconf[19]="--with-petsc-arch=${PETSC_ARCH}"
- myconf[20]="--with-precision=double"
- myconf[21]="--with-gnu-compilers=1"
- use amd64 \
- && myconf[22]="--with-64-bit-pointers=1" \
- || myconf[22]="--with-64-bit-pointers=0"
- use cxx \
- && myconf[23]="--with-c-support=1"
- use amd64 \
- && myconf[24]="--with-64-bit-indices=1" \
- || myconf[24]="--with-64-bit-indices=0"
-
- if use mpi; then
- myconf[30]="--with-cc=/usr/bin/mpicc"
- myconf[31]="--with-cxx=/usr/bin/mpicxx"
- use fortran && myconf[32]="--with-fc=/usr/bin/mpif77"
- myconf[33]="--with-mpi=1"
- myconf[34]="--with-mpi-compilers=1"
- else
- myconf[30]="--with-cc=$(tc-getCC)"
- myconf[31]="--with-cxx=$(tc-getCXX)"
- use fortran && myconf[32]="--with-fc=$(tc-getF77)"
- myconf[33]="--with-mpi=0"
- fi
-
- use X \
- && myconf[40]="--with-X=1" \
- || myconf[40]="--with-X=0"
- use static-libs \
- && myconf[41]="--with-shared=0" \
- || myconf[41]="--with-shared=1"
- use fortran \
- && myconf[43]="--with-fortran=1" \
- || myconf[43]="--with-fortran=0"
-
- if use debug; then
- strip-flags
- filter-flags -O*
- myconf[44]="--with-debugging=1"
- else
- myconf[44]="--with-debugging=0"
- fi
-
- if use hypre; then
- # hypre cannot handle 64 bit indices, therefore disabled
- myconf[24]="--with-64-bit-indices=0"
- myconf[52]="--with-hypre=1"
- myconf[53]="--with-hypre-include=/usr/include/hypre"
- use static-libs \
- && myconf[54]="--with-hypre-lib=/usr/$(get_libdir)/libHYPRE.a" \
- || myconf[54]="--with-hypre-lib=/usr/$(get_libdir)/libHYPRE.so"
- else
- myconf[52]="--with-hypre=0"
- fi
-
- if use metis; then
- myconf[61]="--with-parmetis=1"
- myconf[62]="--with-parmetis-include=/usr/include/parmetis"
- myconf[63]="--with-parmetis-lib=/usr/$(get_libdir)/libparmetis.so"
- else
- myconf[61]="--with-parmetis=0"
- fi
-
- if use hdf5; then
- myconf[71]="--with-hdf5=1"
- myconf[72]="--with-hdf5-include=/usr/include"
- myconf[73]="--with-hdf5-lib=/usr/$(get_libdir)/libhdf5.so"
- else
- myconf[71]="--with-hdf5=0"
- fi
-
- myconf[81]="--with-scotch=0"
-
- einfo "Configure options: ${myconf[@]}"
- python "${S}/config/configure.py" "${myconf[@]}" \
- || die "PETSc configuration failed"
-}
-
-src_install(){
- insinto /usr/include/"${PN}"
- doins "${S}"/include/*.h "${S}"/include/*.hh
- doins "${S}/${PETSC_ARCH}"/include/*.h
-
- insinto /usr/include/"${PN}"/private
- doins "${S}"/include/private/*.h
-
- # fix paths stored in petscconf.h
- dosed "s:${S}:/usr:g" /usr/include/"${PN}"/petscconf.h
- dosed "s:${PETSC_ARCH}/lib:$(get_libdir):g" /usr/include/"${PN}"/petscconf.h \
-
- if ! use mpi ; then
- insinto /usr/include/"${PN}"/mpiuni
- doins "${S}"/include/mpiuni/*.h
- fi
-
- if use doc ; then
- dodoc docs/manual.pdf
- dohtml -r docs/*.html docs/changes docs/manualpages
- fi
-
- use static-libs \
- && dolib.a "${S}/${PETSC_ARCH}"/lib/*.a \
- || dolib.so "${S}/${PETSC_ARCH}"/lib/*.so
-}
-
-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"
- elog "This ebuild is known to have parallel build issues, "
- elog "hopefully resolved by upstream soon."
- elog "Another problem is that you can break this package by"
- elog "switching your mpi implementation without rebuild petsc."
-}
diff --git a/sci-mathematics/petsc/petsc-3.1_p7.ebuild b/sci-mathematics/petsc/petsc-3.1_p7.ebuild
deleted file mode 100644
index f3165c2..0000000
--- a/sci-mathematics/petsc/petsc-3.1_p7.ebuild
+++ /dev/null
@@ -1,177 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=3
-
-inherit flag-o-matic fortran-2 toolchain-funcs
-
-MY_P="${PN}-${PV/_/-}"
-
-DESCRIPTION="Portable, Extensible Toolkit for Scientific Computation"
-HOMEPAGE="http://www.mcs.anl.gov/petsc/petsc-as/"
-SRC_URI="http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/${MY_P}.tar.gz"
-
-LICENSE="petsc"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-IUSE="cxx debug doc fortran hdf5 hypre metis mpi static-libs X"
-
-RDEPEND="mpi? ( virtual/mpi[cxx?,fortran?] )
- X? ( x11-libs/libX11 )
- virtual/lapack
- virtual/blas
- hypre? ( >=sci-mathematics/hypre-2.6.0b[static-libs=] )
- metis? ( sci-libs/parmetis )
- hdf5? ( sci-libs/hdf5[!mpi?] )
-"
-
-DEPEND="${RDEPEND}
- sys-devel/gcc[-nocxx,fortran?]"
-
-S="${WORKDIR}/${MY_P}"
-
-if use hypre; then
- use cxx || die "hypre needs cxx, please enable cxx or disable hypre use flag"
- use mpi || die "hypre needs mpi, please enable mpi or disable hypre use flag"
-fi
-
-src_prepare(){
- epatch "${FILESDIR}/${PN}-configure-pic.patch"
- epatch "${FILESDIR}/${PN}-disable-rpath.patch"
-}
-
-src_configure(){
- local mylang
- local myopt
- local myconf
-
- use cxx && mylang="cxx" || mylang="c"
- use debug && myopt="debug" || myopt="opt"
-
- export PETSC_DIR="${S}" || die
- export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" || die
-
- myconf[10]="--with-blas-lapack-lib=$(pkg-config --libs lapack)"
- myconf[11]="CFLAGS=${CFLAGS}"
- myconf[12]="CXXFLAGS=${CXXFLAGS}"
- myconf[13]="LDFLAGS=${LDFLAGS}"
- myconf[14]="--with-windows-graphics=0"
- myconf[15]="--with-matlab=0"
- myconf[16]="--with-python=0"
- myconf[17]="--with-clanguage=${mylang}"
- myconf[18]="--with-single-library=1"
- myconf[19]="--with-petsc-arch=${PETSC_ARCH}"
- myconf[20]="--with-precision=double"
- myconf[21]="--with-gnu-compilers=1"
- use amd64 \
- && myconf[22]="--with-64-bit-pointers=1" \
- || myconf[22]="--with-64-bit-pointers=0"
- use cxx \
- && myconf[23]="--with-c-support=1"
- use amd64 \
- && myconf[24]="--with-64-bit-indices=1" \
- || myconf[24]="--with-64-bit-indices=0"
-
- if use mpi; then
- myconf[30]="--with-cc=/usr/bin/mpicc"
- myconf[31]="--with-cxx=/usr/bin/mpicxx"
- use fortran && myconf[32]="--with-fc=/usr/bin/mpif77"
- myconf[33]="--with-mpi=1"
- myconf[34]="--with-mpi-compilers=1"
- else
- myconf[30]="--with-cc=$(tc-getCC)"
- myconf[31]="--with-cxx=$(tc-getCXX)"
- use fortran && myconf[32]="--with-fc=$(tc-getF77)"
- myconf[33]="--with-mpi=0"
- fi
-
- use X \
- && myconf[40]="--with-X=1" \
- || myconf[40]="--with-X=0"
- use static-libs \
- && myconf[41]="--with-shared=0" \
- || myconf[41]="--with-shared=1"
- use fortran \
- && myconf[43]="--with-fortran=1" \
- || myconf[43]="--with-fortran=0"
-
- if use debug; then
- strip-flags
- filter-flags -O*
- myconf[44]="--with-debugging=1"
- else
- myconf[44]="--with-debugging=0"
- fi
-
- if use hypre; then
- # hypre cannot handle 64 bit indices, therefore disabled
- myconf[24]="--with-64-bit-indices=0"
- myconf[52]="--with-hypre=1"
- myconf[53]="--with-hypre-include=/usr/include/hypre"
- use static-libs \
- && myconf[54]="--with-hypre-lib=/usr/$(get_libdir)/libHYPRE.a" \
- || myconf[54]="--with-hypre-lib=/usr/$(get_libdir)/libHYPRE.so"
- else
- myconf[52]="--with-hypre=0"
- fi
-
- if use metis; then
- myconf[61]="--with-parmetis=1"
- myconf[62]="--with-parmetis-include=/usr/include/parmetis"
- myconf[63]="--with-parmetis-lib=/usr/$(get_libdir)/libparmetis.so"
- else
- myconf[61]="--with-parmetis=0"
- fi
-
- if use hdf5; then
- myconf[71]="--with-hdf5=1"
- myconf[72]="--with-hdf5-include=/usr/include"
- myconf[73]="--with-hdf5-lib=/usr/$(get_libdir)/libhdf5.so"
- else
- myconf[71]="--with-hdf5=0"
- fi
-
- myconf[81]="--with-scotch=0"
-
- einfo "Configure options: ${myconf[@]}"
- python "${S}/config/configure.py" "${myconf[@]}" \
- || die "PETSc configuration failed"
-}
-
-src_install(){
- insinto /usr/include/"${PN}"
- doins "${S}"/include/*.h "${S}"/include/*.hh
- doins "${S}/${PETSC_ARCH}"/include/*.h
-
- insinto /usr/include/"${PN}"/private
- doins "${S}"/include/private/*.h
-
- # fix paths stored in petscconf.h
- dosed "s:${S}:/usr:g" /usr/include/"${PN}"/petscconf.h
- dosed "s:${PETSC_ARCH}/lib:$(get_libdir):g" /usr/include/"${PN}"/petscconf.h \
-
- if ! use mpi ; then
- insinto /usr/include/"${PN}"/mpiuni
- doins "${S}"/include/mpiuni/*.h
- fi
-
- if use doc ; then
- dodoc docs/manual.pdf
- dohtml -r docs/*.html docs/changes docs/manualpages
- fi
-
- use static-libs \
- && dolib.a "${S}/${PETSC_ARCH}"/lib/*.a \
- || dolib.so "${S}/${PETSC_ARCH}"/lib/*.so
-}
-
-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"
- elog "This ebuild is known to have parallel build issues, "
- elog "hopefully resolved by upstream soon."
- elog "Another problem is that you can break this package by"
- elog "switching your mpi implementation without rebuild petsc."
-}
diff --git a/sci-mathematics/petsc/petsc-3.1_p8-r1.ebuild b/sci-mathematics/petsc/petsc-3.1_p8-r1.ebuild
index a187628..a01b135 100644
--- a/sci-mathematics/petsc/petsc-3.1_p8-r1.ebuild
+++ b/sci-mathematics/petsc/petsc-3.1_p8-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
@@ -21,7 +21,7 @@ RDEPEND="mpi? ( virtual/mpi[cxx?,fortran?] )
X? ( x11-libs/libX11 )
virtual/lapack
virtual/blas
- hypre? ( >=sci-mathematics/hypre-2.6.0b[static-libs=] )
+ hypre? ( sci-libs/hypre[static-libs=] )
metis? ( sci-libs/parmetis )
hdf5? ( sci-libs/hdf5[!mpi?] )
"
diff --git a/sci-mathematics/petsc/petsc-3.1_p8.ebuild b/sci-mathematics/petsc/petsc-3.1_p8.ebuild
deleted file mode 100644
index aca7776..0000000
--- a/sci-mathematics/petsc/petsc-3.1_p8.ebuild
+++ /dev/null
@@ -1,177 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=3
-
-inherit flag-o-matic fortran-2 toolchain-funcs
-
-MY_P="${PN}-${PV/_/-}"
-
-DESCRIPTION="Portable, Extensible Toolkit for Scientific Computation"
-HOMEPAGE="http://www.mcs.anl.gov/petsc/petsc-as/"
-SRC_URI="http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/${MY_P}.tar.gz"
-
-LICENSE="petsc"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-IUSE="cxx debug doc fortran hdf5 hypre metis mpi static-libs X"
-
-RDEPEND="mpi? ( virtual/mpi[cxx?,fortran?] )
- X? ( x11-libs/libX11 )
- virtual/lapack
- virtual/blas
- hypre? ( >=sci-mathematics/hypre-2.6.0b[static-libs=] )
- metis? ( sci-libs/parmetis )
- hdf5? ( sci-libs/hdf5[!mpi?] )
-"
-
-DEPEND="${RDEPEND}
- sys-devel/gcc[-nocxx,fortran?]"
-
-S="${WORKDIR}/${MY_P}"
-
-if use hypre; then
- use cxx || die "hypre needs cxx, please enable cxx or disable hypre use flag"
- use mpi || die "hypre needs mpi, please enable mpi or disable hypre use flag"
-fi
-
-src_prepare(){
- epatch "${FILESDIR}/${P}-configure-pic.patch"
- epatch "${FILESDIR}/${PN}-disable-rpath.patch"
-}
-
-src_configure(){
- local mylang
- local myopt
- local myconf
-
- use cxx && mylang="cxx" || mylang="c"
- use debug && myopt="debug" || myopt="opt"
-
- export PETSC_DIR="${S}" || die
- export PETSC_ARCH="linux-gnu-${mylang}-${myopt}" || die
-
- myconf[10]="--with-blas-lapack-lib=$(pkg-config --libs lapack)"
- myconf[11]="CFLAGS=${CFLAGS}"
- myconf[12]="CXXFLAGS=${CXXFLAGS}"
- myconf[13]="LDFLAGS=${LDFLAGS}"
- myconf[14]="--with-windows-graphics=0"
- myconf[15]="--with-matlab=0"
- myconf[16]="--with-python=0"
- myconf[17]="--with-clanguage=${mylang}"
- myconf[18]="--with-single-library=1"
- myconf[19]="--with-petsc-arch=${PETSC_ARCH}"
- myconf[20]="--with-precision=double"
- myconf[21]="--with-gnu-compilers=1"
- use amd64 \
- && myconf[22]="--with-64-bit-pointers=1" \
- || myconf[22]="--with-64-bit-pointers=0"
- use cxx \
- && myconf[23]="--with-c-support=1"
- use amd64 \
- && myconf[24]="--with-64-bit-indices=1" \
- || myconf[24]="--with-64-bit-indices=0"
-
- if use mpi; then
- myconf[30]="--with-cc=/usr/bin/mpicc"
- myconf[31]="--with-cxx=/usr/bin/mpicxx"
- use fortran && myconf[32]="--with-fc=/usr/bin/mpif77"
- myconf[33]="--with-mpi=1"
- myconf[34]="--with-mpi-compilers=1"
- else
- myconf[30]="--with-cc=$(tc-getCC)"
- myconf[31]="--with-cxx=$(tc-getCXX)"
- use fortran && myconf[32]="--with-fc=$(tc-getF77)"
- myconf[33]="--with-mpi=0"
- fi
-
- use X \
- && myconf[40]="--with-X=1" \
- || myconf[40]="--with-X=0"
- use static-libs \
- && myconf[41]="--with-shared=0" \
- || myconf[41]="--with-shared=1"
- use fortran \
- && myconf[43]="--with-fortran=1" \
- || myconf[43]="--with-fortran=0"
-
- if use debug; then
- strip-flags
- filter-flags -O*
- myconf[44]="--with-debugging=1"
- else
- myconf[44]="--with-debugging=0"
- fi
-
- if use hypre; then
- # hypre cannot handle 64 bit indices, therefore disabled
- myconf[24]="--with-64-bit-indices=0"
- myconf[52]="--with-hypre=1"
- myconf[53]="--with-hypre-include=/usr/include/hypre"
- use static-libs \
- && myconf[54]="--with-hypre-lib=/usr/$(get_libdir)/libHYPRE.a" \
- || myconf[54]="--with-hypre-lib=/usr/$(get_libdir)/libHYPRE.so"
- else
- myconf[52]="--with-hypre=0"
- fi
-
- if use metis; then
- myconf[61]="--with-parmetis=1"
- myconf[62]="--with-parmetis-include=/usr/include/parmetis"
- myconf[63]="--with-parmetis-lib=/usr/$(get_libdir)/libparmetis.so"
- else
- myconf[61]="--with-parmetis=0"
- fi
-
- if use hdf5; then
- myconf[71]="--with-hdf5=1"
- myconf[72]="--with-hdf5-include=/usr/include"
- myconf[73]="--with-hdf5-lib=/usr/$(get_libdir)/libhdf5.so"
- else
- myconf[71]="--with-hdf5=0"
- fi
-
- myconf[81]="--with-scotch=0"
-
- einfo "Configure options: ${myconf[@]}"
- python "${S}/config/configure.py" "${myconf[@]}" \
- || die "PETSc configuration failed"
-}
-
-src_install(){
- insinto /usr/include/"${PN}"
- doins "${S}"/include/*.h "${S}"/include/*.hh
- doins "${S}/${PETSC_ARCH}"/include/*.h
-
- insinto /usr/include/"${PN}"/private
- doins "${S}"/include/private/*.h
-
- # fix paths stored in petscconf.h
- dosed "s:${S}:/usr:g" /usr/include/"${PN}"/petscconf.h
- dosed "s:${PETSC_ARCH}/lib:$(get_libdir):g" /usr/include/"${PN}"/petscconf.h \
-
- if ! use mpi ; then
- insinto /usr/include/"${PN}"/mpiuni
- doins "${S}"/include/mpiuni/*.h
- fi
-
- if use doc ; then
- dodoc docs/manual.pdf
- dohtml -r docs/*.html docs/changes docs/manualpages
- fi
-
- use static-libs \
- && dolib.a "${S}/${PETSC_ARCH}"/lib/*.a \
- || dolib.so "${S}/${PETSC_ARCH}"/lib/*.so
-}
-
-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"
- elog "This ebuild is known to have parallel build issues, "
- elog "hopefully resolved by upstream soon."
- elog "Another problem is that you can break this package by"
- elog "switching your mpi implementation without rebuild petsc."
-}
next reply other threads:[~2012-01-23 6:35 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-23 6:35 Sebastien Fabbro [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-07-12 12:12 [gentoo-commits] proj/sci:master commit in: sci-mathematics/petsc/ Matthias Maier
2019-07-12 11:19 Matthias Maier
2019-07-12 11:19 Matthias Maier
2019-07-12 11:19 Matthias Maier
2019-05-13 15:02 Matthias Maier
2019-03-09 6:07 Matthias Maier
2018-09-17 15:41 Matthias Maier
2018-09-17 15:41 Matthias Maier
2018-09-17 15:41 Matthias Maier
2018-08-31 15:39 Matthias Maier
2018-08-31 15:39 Matthias Maier
2018-05-24 1:21 Matthias Maier
2018-04-23 14:38 Matthias Maier
2018-04-23 1:55 Matthias Maier
2018-03-29 22:16 Matthias Maier
2018-03-19 3:49 Matthias Maier
2018-03-19 3:40 Matthias Maier
2017-10-03 12:58 Andrew Savchenko
2017-10-03 12:58 Andrew Savchenko
2017-01-08 11:03 Marius Brehler
2016-11-24 10:55 Marius Brehler
2016-08-31 6:56 Marius Brehler
2016-08-31 6:56 Marius Brehler
2016-07-12 19:57 Marius Brehler
2016-07-12 19:57 Marius Brehler
2016-07-12 19:57 Marius Brehler
2016-04-23 23:21 Christoph Junghans
2016-04-23 23:21 Christoph Junghans
2015-12-31 8:48 Justin Lecher
2015-09-01 10:26 Justin Lecher
2015-06-24 9:51 Justin Lecher
2014-09-16 17:01 Christoph Junghans
2014-09-01 19:47 Jauhien Piatlicki
2014-09-01 13:06 Jauhien Piatlicki
2014-08-10 8:05 Justin Lecher
2014-01-06 18:33 Justin Lecher
2013-02-22 10:15 Justin Lecher
2013-02-10 22:11 Jens-Malte Gottfried
2013-01-07 22:16 Jens-Malte Gottfried
2012-10-05 14:09 Jens-Malte Gottfried
2012-06-09 6:35 Jens-Malte Gottfried
2012-05-23 19:56 Kacper Kowalik
2012-03-23 18:33 Jens-Malte Gottfried
2012-03-06 23:09 Jens-Malte Gottfried
2012-03-06 22:15 Jens-Malte Gottfried
2012-03-05 16:11 Jens-Malte Gottfried
2012-03-04 21:16 Jens-Malte Gottfried
2012-03-04 15:19 Jens-Malte Gottfried
2012-03-04 14:31 Jens-Malte Gottfried
2012-03-03 21:39 Jens-Malte Gottfried
2012-03-03 16:02 Jens-Malte Gottfried
2012-03-03 14:28 Jens-Malte Gottfried
2012-03-03 12:37 Jens-Malte Gottfried
2012-03-03 12:37 Jens-Malte Gottfried
2012-02-28 20:24 Justin Lecher
2011-06-24 17:09 Justin Lecher
2011-06-21 11:54 Justin Lecher
2011-04-19 6:44 Thomas Kahle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=667550afc2c913d35fff9ebba1e98f1b9adf8767.bicatali@gentoo \
--to=bicatali@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox