aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Fabbro <sebfabbro@gmail.com>2012-05-10 22:05:58 +0100
committerSébastien Fabbro <sebfabbro@gmail.com>2012-05-10 22:05:58 +0100
commit54cea73bc026780cb348b72bdb8b3143600018c1 (patch)
treeba6848a3c9e129f19be2d08948661ff19fb4a84b /sci-libs
parentMerge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/sci (diff)
downloadsci-54cea73bc026780cb348b72bdb8b3143600018c1.tar.gz
sci-54cea73bc026780cb348b72bdb8b3143600018c1.tar.bz2
sci-54cea73bc026780cb348b72bdb8b3143600018c1.zip
sci-libs/scalapack: Version bump
(Portage version: 2.1.10.56/git/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/scalapack/ChangeLog5
-rw-r--r--sci-libs/scalapack/Manifest1
-rw-r--r--sci-libs/scalapack/scalapack-2.0.2.ebuild72
3 files changed, 78 insertions, 0 deletions
diff --git a/sci-libs/scalapack/ChangeLog b/sci-libs/scalapack/ChangeLog
index 4644dc882..783a6909a 100644
--- a/sci-libs/scalapack/ChangeLog
+++ b/sci-libs/scalapack/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*scalapack-2.0.2 (10 May 2012)
+
+ 10 May 2012; Sébastien Fabbro <bicatali@gentoo.org> +scalapack-2.0.2.ebuild:
+ Version bump
+
12 Mar 2012; Sébastien Fabbro <bicatali@gentoo.org> scalapack-2.0.1.ebuild:
remove mpi from pc file
diff --git a/sci-libs/scalapack/Manifest b/sci-libs/scalapack/Manifest
index 3661d7ad4..0424d5de5 100644
--- a/sci-libs/scalapack/Manifest
+++ b/sci-libs/scalapack/Manifest
@@ -1,2 +1,3 @@
DIST scalapack-1.8.0.tgz 5006143 RMD160 4b0f607d18faa6b64415537124e89c4cb33bd06a SHA1 c185f71dda528e809e514dc02a3497817ce3af40 SHA256 e378dbedf67102cb7cc1a7991bb02bbe163aa91710dbeae2868ec781d3fc7a05
DIST scalapack-2.0.1.tgz 4776410 SHA256 a9b34278d4e10b40cbe084c6d87d09af8845e874250719bfbbc497b2a88bfde1 SHA512 49adcbffb4d1f33d401f86879813131c9860b115cc5beb75ae4a6303bd18b8b3cf4c3e699958e4c74ebb9237d6cd9c3f0ea18fbd7bda9b86488e2c2c4f3c60ad WHIRLPOOL 869b410f8b2da19b91907e6f8f3465fa81794a9ca4d58594f356aca7b2b52cf2223d014353d752321f6144966d47f980c06c6803487284b66433baa87df22937
+DIST scalapack-2.0.2.tgz 4779534 SHA256 0c74aeae690fe5ee4db7926f49c5d0bb69ce09eea75beb915e00bba07530395c SHA512 92c71d3de0900955511c527ab3ca57ff69d6d9edc390e69f93ac3769d32ce83a714326bcb6218c8c74b8874be2fdc8aad5e42c912a12581e8d4ce8829ea39248 WHIRLPOOL ca5e9261bb046684ecb820247ae2d9953083f9989b5cdeccd033c67519a5ab1eb3bd3f12d0225767513d5307342ccd96f582dbd264b2decc9033bf1f7f5d7dbc
diff --git a/sci-libs/scalapack/scalapack-2.0.2.ebuild b/sci-libs/scalapack/scalapack-2.0.2.ebuild
new file mode 100644
index 000000000..e89f248c8
--- /dev/null
+++ b/sci-libs/scalapack/scalapack-2.0.2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit cmake-utils alternatives-2 fortran-2
+
+DESCRIPTION="Subset of LAPACK routines redesigned for heterogenous computing"
+HOMEPAGE="http://www.netlib.org/scalapack/"
+SRC_URI="${HOMEPAGE}/${P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs test"
+
+RDEPEND="virtual/lapack
+ virtual/mpi
+ !sci-libs/mpiblacs"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_prepare() {
+ #epatch "${FILESDIR}"/${PN}-2.0.1-link.patch
+ # gentoo fix to avoid collision with other scalapack
+ sed -i \
+ -e 's:BINARY_DIR}/scalapack.pc:BINARY_DIR}/refscalapack.pc:g' \
+ CMakeLists.txt || die
+ use static-libs && mkdir "${WORKDIR}/${PN}_static"
+ # mpi does not have a pc file
+ sed -i -e 's/mpi//' scalapack.pc.in || die
+}
+
+src_configure() {
+ scalapack_configure() {
+ local mycmakeargs=(
+ -DUSE_OPTIMIZED_LAPACK_BLAS=ON
+ -DBLAS_LIBRARIES="$(pkg-config --libs blas)"
+ -DLAPACK_LIBRARIES="$(pkg-config --libs lapack)"
+ $(cmake-utils_use_build test TESTING)
+ $@
+ )
+ cmake-utils_src_configure
+ }
+
+ scalapack_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF
+ use static-libs && \
+ CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" scalapack_configure \
+ -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON
+}
+
+src_compile() {
+ cmake-utils_src_compile
+ use static-libs && \
+ CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ use static-libs && \
+ CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install
+
+ insinto /usr/include/blacs
+ doins BLACS/SRC/*.h
+
+ insinto /usr/include/scalapack
+ doins PBLAS/SRC/*.h
+
+ alternatives_for scalapack reference 0 \
+ /usr/$(get_libdir)/pkgconfig/scalapack.pc refscalapack.pc
+}