* [gentoo-commits] proj/sci:master commit in: sci-libs/mpiblacs/
@ 2021-01-01 14:33 Aisha Tammy
0 siblings, 0 replies; 5+ messages in thread
From: Aisha Tammy @ 2021-01-01 14:33 UTC (permalink / raw
To: gentoo-commits
commit: 15de3fc09644b69ce1be1b236c52aab359fb0721
Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
AuthorDate: Fri Jan 1 14:33:30 2021 +0000
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
CommitDate: Fri Jan 1 14:33:42 2021 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=15de3fc0
sci-libs/mpiblacs: drop package
it is not a part of sci-libs/scalapack
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
sci-libs/mpiblacs/metadata.xml | 15 ----
sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild | 127 -------------------------------
2 files changed, 142 deletions(-)
diff --git a/sci-libs/mpiblacs/metadata.xml b/sci-libs/mpiblacs/metadata.xml
deleted file mode 100644
index e90a78797..000000000
--- a/sci-libs/mpiblacs/metadata.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="project">
- <email>sci@gentoo.org</email>
- <name>Gentoo Science Project</name>
- </maintainer>
- <longdescription lang="en">
-The BLACS (Basic Linear Algebra Communication Subprograms)
-project is an ongoing investigation whose purpose is to create
-a linear algebra oriented message passing interface
-that may be implemented efficiently and uniformly across
-a large range of distributed memory platforms.
-</longdescription>
-</pkgmetadata>
diff --git a/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild b/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild
deleted file mode 100644
index 0c0ba0801..000000000
--- a/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild
+++ /dev/null
@@ -1,127 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit eutils toolchain-funcs versionator alternatives-2 multilib
-
-DESCRIPTION="Basic Linear Algebra Communication Subprograms with MPI"
-HOMEPAGE="http://www.netlib.org/blacs/"
-SRC_URI="${HOMEPAGE}/${PN}.tgz
- ${HOMEPAGE}/${PN}-patch03.tgz
- test? ( ${HOMEPAGE}/blacstester.tgz )"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="static-libs test"
-
-RDEPEND="virtual/mpi[fortran]
- virtual/blas
- !>sci-libs/scalapack-2"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-S="${WORKDIR}/BLACS"
-
-static_to_shared() {
- local libstatic=${1}; shift
- local libname=$(basename ${libstatic%.a})
- local soname=${libname}$(get_libname $(get_version_component_range 1-2))
- local libdir=$(dirname ${libstatic})
-
- einfo "Making ${soname} from ${libstatic}"
- if [[ ${CHOST} == *-darwin* ]] ; then
- ${LINK:-$(tc-getCC)} ${LDFLAGS} \
- -dynamiclib -install_name "${EPREFIX}"/usr/lib/"${soname}" \
- -Wl,-all_load -Wl,${libstatic} \
- "$@" -o ${libdir}/${soname} || die "${soname} failed"
- else
- ${LINK:-$(tc-getCC)} ${LDFLAGS} \
- -shared -Wl,-soname=${soname} \
- -Wl,--whole-archive ${libstatic} -Wl,--no-whole-archive \
- "$@" -o ${libdir}/${soname} || die "${soname} failed"
- [[ $(get_version_component_count) -gt 1 ]] && \
- ln -s ${soname} ${libdir}/${libname}$(get_libname $(get_major_version)) || die
- ln -s ${soname} ${libdir}/${libname}$(get_libname) || die
- fi
-}
-
-src_prepare() {
- find . -name Makefile -exec sed -i -e 's:make:$(MAKE):g' '{}' \; || die
-
- sed -e "s:\(SHELL\s*=\).*:\1$(type -P sh):" \
- -e "s:\(BTOPdir\s*=\).*:\1${S}:" \
- -e "s:\(BLACSFINIT\s*=\).*:\1\$(BLACSdir)/lib${PN}F77init.a:" \
- -e "s:\(BLACSCINIT\s*=\).*:\1\$(BLACSdir)/lib${PN}Cinit.a:" \
- -e "s:\(BLACSLIB\s*=\).*:\1\$(BLACSdir)/lib${PN}.a:" \
- -e "s:\(MPIINCdir\s*=\).*:\1${EPREFIX}/usr/include:" \
- -e "s:\(MPILIB\s*=\).*:\1:" \
- -e '/SYSINC.*=/d' \
- -e 's:\(INTFACE\s*=\).*:\1-DAdd_:' \
- -e 's:\(TRANSCOMM\s*=\).*:\1-DUseMpi2:' \
- -e "s:\(F77\s*=\).*:\1mpif77:" \
- -e "s:\(F77NO_OPTFLAGS\s*=\).*:\1-O0:" \
- -e "s:\(F77FLAGS\s*=\).*:\1${FFLAGS}:" \
- -e "s:\(F77LOADFLAGS\s*=\).*:\1${LDFLAGS}:" \
- -e "s:\(CC\s*=\).*:\1mpicc:" \
- -e "s:\(CCFLAGS\s*=\).*:\1${CFLAGS}:" \
- -e "s:\(CCLOADFLAGS\s*=\).*:\1${LDFLAGS}:" \
- -e "s:\(ARCH\s*=\).*:\1$(tc-getAR):" \
- -e "s:\(RANLIB\s*=\).*:\1$(tc-getRANLIB):" \
- BMAKES/Bmake.MPI-LINUX > Bmake.inc || die
-}
-
-src_compile() {
- emake \
- F77NO_OPTFLAGS="-O0 -fPIC" \
- F77FLAGS="${FFLAGS} -fPIC" \
- CCFLAGS="${CFLAGS} -fPIC" \
- mpi
- LINK=mpif77 static_to_shared LIB/lib${PN}.a
- LINK=mpicc static_to_shared LIB/lib${PN}Cinit.a -LLIB -l${PN}
- LINK=mpif77 static_to_shared LIB/lib${PN}F77init.a -LLIB -l${PN}
- if use static-libs; then
- emake clean -C SRC/MPI && rm -f LIB/*.a
- emake mpi
- fi
-}
-
-src_test() {
- emake tester
- cd TESTING/EXE
- local x
- # do not die because we are expecting an abort
- for x in ./x*; do
- mpirun -np 4 $x 2>&1 | tee $x.log
- grep -q "\*\*\*" $x.log && die "$x failed"
- done
-}
-
-src_install() {
- pushd LIB
- dolib.so lib*$(get_libname)*
- use static-libs && dolib.a lib*.a
- cat <<-EOF > ${PN}.pc
- prefix=${EPREFIX}/usr
- libdir=\${prefix}/$(get_libdir)
- includedir=\${prefix}/include
- Name: ${PN}
- Description: ${DESCRIPTION}
- Version: ${PV}
- URL: ${HOMEPAGE}
- Libs: -L\${libdir} -l${PN} -l${PN}Cinit -l${PN}F77init
- Private: -lm
- Cflags: -I\${includedir}/${PN}
- Requires: blas
- EOF
- insinto /usr/$(get_libdir)/pkgconfig
- doins ${PN}.pc
- alternatives_for blacs ${PN} 0 \
- /usr/$(get_libdir)/pkgconfig/blacs.pc ${PN}.pc
- popd > /dev/null
-
- pushd SRC/MPI > /dev/null
- insinto /usr/include/blacs
- doins Bconfig.h Bdef.h
- popd > /dev/null
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/mpiblacs/
@ 2015-01-25 16:39 Justin Lecher
0 siblings, 0 replies; 5+ messages in thread
From: Justin Lecher @ 2015-01-25 16:39 UTC (permalink / raw
To: gentoo-commits
commit: 6b76c450fd2c03f574524e3d01b54de20b7dcb20
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Sun Jan 25 09:01:19 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sun Jan 25 09:01:19 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=6b76c450
sci-libs/mpiblacs: Move to EAPI=5; Add missing dies
---
sci-libs/mpiblacs/ChangeLog | 5 ++++-
sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild | 10 +++++-----
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/sci-libs/mpiblacs/ChangeLog b/sci-libs/mpiblacs/ChangeLog
index b4e36f9..5f12262 100644
--- a/sci-libs/mpiblacs/ChangeLog
+++ b/sci-libs/mpiblacs/ChangeLog
@@ -1,7 +1,10 @@
# ChangeLog for sci-libs/mpiblacs
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 25 Jan 2015; Marius Brehler <marbre@linux.sungazer.de>
+ mpiblacs-1.1-r1.ebuild: Move to EAPI=5 and clean ebuild
+
12 Jul 2012; Sébastien Fabbro <bicatali@gentoo.org> mpiblacs-1.1-r1.ebuild:
sci-libs/mpiblacs: Shared library fixes and prefix love
diff --git a/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild b/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild
index 3d512cf..833380a 100644
--- a/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild
+++ b/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI=4
+EAPI=5
inherit eutils toolchain-funcs versionator alternatives-2 multilib
DESCRIPTION="Basic Linear Algebra Communication Subprograms with MPI"
@@ -42,13 +42,13 @@ static_to_shared() {
-Wl,--whole-archive ${libstatic} -Wl,--no-whole-archive \
"$@" -o ${libdir}/${soname} || die "${soname} failed"
[[ $(get_version_component_count) -gt 1 ]] && \
- ln -s ${soname} ${libdir}/${libname}$(get_libname $(get_major_version))
- ln -s ${soname} ${libdir}/${libname}$(get_libname)
+ ln -s ${soname} ${libdir}/${libname}$(get_libname $(get_major_version)) || die
+ ln -s ${soname} ${libdir}/${libname}$(get_libname) || die
fi
}
src_prepare() {
- find . -name Makefile -exec sed -i -e 's:make:$(MAKE):g' '{}' \;
+ find . -name Makefile -exec sed -i -e 's:make:$(MAKE):g' '{}' \; || die
sed -e "s:\(SHELL\s*=\).*:\1$(type -P sh):" \
-e "s:\(BTOPdir\s*=\).*:\1${S}:" \
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/mpiblacs/
@ 2012-07-12 20:43 Sebastien Fabbro
0 siblings, 0 replies; 5+ messages in thread
From: Sebastien Fabbro @ 2012-07-12 20:43 UTC (permalink / raw
To: gentoo-commits
commit: b576dfa5b63b501e84f328348c154b6d48b2f071
Author: Sebastien Fabbro <sfabbro <AT> uvic <DOT> ca>
AuthorDate: Thu Jul 12 18:47:26 2012 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Thu Jul 12 18:47:26 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b576dfa5
sci-libs/mpiblacs: Shared library fixes and prefix love
(Portage version: 2.2.01.20757-prefix/git/Linux x86_64, RepoMan options: --force, unsigned Manifest commit)
---
sci-libs/mpiblacs/ChangeLog | 4 ++-
sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild | 58 +++++++++++++++++------------
2 files changed, 37 insertions(+), 25 deletions(-)
diff --git a/sci-libs/mpiblacs/ChangeLog b/sci-libs/mpiblacs/ChangeLog
index 94d7b6e..b4e36f9 100644
--- a/sci-libs/mpiblacs/ChangeLog
+++ b/sci-libs/mpiblacs/ChangeLog
@@ -2,6 +2,9 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 12 Jul 2012; Sébastien Fabbro <bicatali@gentoo.org> mpiblacs-1.1-r1.ebuild:
+ sci-libs/mpiblacs: Shared library fixes and prefix love
+
23 Feb 2012; Sébastien Fabbro <bicatali@gentoo.org> -mpiblacs-1.1.ebuild,
mpiblacs-1.1-r1.ebuild:
Removed old, blocking scalapack > 2
@@ -25,4 +28,3 @@
06 Dec 2010; Sébastien Fabbro <bicatali@gentoo.org> +mpiblacs-1.1.ebuild,
+metadata.xml:
Initial import
-
diff --git a/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild b/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild
index c7ff691..55d6d2b 100644
--- a/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild
+++ b/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild
@@ -3,7 +3,7 @@
# $Header: $
EAPI=4
-inherit eutils toolchain-funcs versionator alternatives-2
+inherit eutils toolchain-funcs versionator alternatives-2 multilib
DESCRIPTION="Basic Linear Algebra Communication Subprograms with MPI"
HOMEPAGE="http://www.netlib.org/blacs/"
@@ -13,27 +13,38 @@ SRC_URI="${HOMEPAGE}/${PN}.tgz
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="static-libs test"
RDEPEND="virtual/mpi[fortran]
virtual/blas
!>sci-libs/scalapack-2"
DEPEND="${RDEPEND}
- dev-util/pkgconfig"
+ virtual/pkgconfig"
S="${WORKDIR}/BLACS"
-make_shared_lib() {
- local libstatic=${1}
- local soname=$(basename "${1%.a}").so.$(get_major_version)
- shift
- einfo "Making ${soname}"
- ${LINK:-$(tc-getCC)} ${LDFLAGS} \
- -shared -Wl,-soname="${soname}" \
- -Wl,--whole-archive "${libstatic}" -Wl,--no-whole-archive \
- "$@" -o $(dirname "${libstatic}")/"${soname}" || die "${soname} failed"
- ln -s "${soname}" $(dirname "${libstatic}")/"${soname%.*}"
+static_to_shared() {
+ local libstatic=${1}; shift
+ local libname=$(basename ${libstatic%.a})
+ local soname=${libname}$(get_libname $(get_version_component_range 1-2))
+ local libdir=$(dirname ${libstatic})
+
+ einfo "Making ${soname} from ${libstatic}"
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ ${LINK:-$(tc-getCC)} ${LDFLAGS} \
+ -dynamiclib -install_name "${EPREFIX}"/usr/lib/"${soname}" \
+ -Wl,-all_load -Wl,${libstatic} \
+ "$@" -o ${libdir}/${soname} || die "${soname} failed"
+ else
+ ${LINK:-$(tc-getCC)} ${LDFLAGS} \
+ -shared -Wl,-soname=${soname} \
+ -Wl,--whole-archive ${libstatic} -Wl,--no-whole-archive \
+ "$@" -o ${libdir}/${soname} || die "${soname} failed"
+ [[ $(get_version_component_count) -gt 1 ]] && \
+ ln -s ${soname} ${libdir}/${libname}$(get_libname $(get_major_version))
+ ln -s ${soname} ${libdir}/${libname}$(get_libname)
+ fi
}
src_prepare() {
@@ -67,11 +78,9 @@ src_compile() {
F77FLAGS="${FFLAGS} -fPIC" \
CCFLAGS="${CFLAGS} -fPIC" \
mpi
- cd LIB
- LINK=mpif77 make_shared_lib lib${PN}.a
- LINK=mpicc make_shared_lib lib${PN}Cinit.a -L. -l${PN}
- LINK=mpif77 make_shared_lib lib${PN}F77init.a -L. -l${PN}
- cd "${S}"
+ LINK=mpif77 static_to_shared LIB/lib${PN}.a
+ LINK=mpicc static_to_shared LIB/lib${PN}Cinit.a -LLIB -l${PN}
+ LINK=mpif77 static_to_shared LIB/lib${PN}F77init.a -LLIB -l${PN}
if use static-libs; then
emake clean -C SRC/MPI && rm -f LIB/*.a
emake mpi
@@ -91,7 +100,7 @@ src_test() {
src_install() {
pushd LIB
- dolib.so lib*.so*
+ dolib.so lib*$(get_libname)*
use static-libs && dolib.a lib*.a
cat <<-EOF > ${PN}.pc
prefix=${EPREFIX}/usr
@@ -101,18 +110,19 @@ src_install() {
Description: ${DESCRIPTION}
Version: ${PV}
URL: ${HOMEPAGE}
- Libs: -L\${libdir} -l${PN} -l${PN}Cinit -l${PN}F77init -lm
+ Libs: -L\${libdir} -l${PN} -l${PN}Cinit -l${PN}F77init
+ Private: -lm
Cflags: -I\${includedir}/${PN}
Requires: blas
EOF
insinto /usr/$(get_libdir)/pkgconfig
doins ${PN}.pc || die
alternatives_for blacs ${PN} 0 \
- "/usr/$(get_libdir)/pkgconfig/blacs.pc" "${PN}.pc"
- popd
+ /usr/$(get_libdir)/pkgconfig/blacs.pc ${PN}.pc
+ popd > /dev/null
- pushd SRC/MPI
+ pushd SRC/MPI > /dev/null
insinto /usr/include/blacs
doins Bconfig.h Bdef.h
- popd
+ popd > /dev/null
}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/mpiblacs/
@ 2012-02-23 19:05 Sebastien Fabbro
0 siblings, 0 replies; 5+ messages in thread
From: Sebastien Fabbro @ 2012-02-23 19:05 UTC (permalink / raw
To: gentoo-commits
commit: 980959d06a786886c91cb1cf17b17d5db3f337b0
Author: Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Thu Feb 23 16:46:57 2012 +0000
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Thu Feb 23 16:46:57 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=980959d0
sci-libs/mpiblacs: Removed old, blocking scalapack > 2
(Portage version: 2.1.10.44/git/Linux x86_64, unsigned Manifest commit)
---
sci-libs/mpiblacs/ChangeLog | 6 ++-
sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild | 5 +-
sci-libs/mpiblacs/mpiblacs-1.1.ebuild | 111 ------------------------------
3 files changed, 8 insertions(+), 114 deletions(-)
diff --git a/sci-libs/mpiblacs/ChangeLog b/sci-libs/mpiblacs/ChangeLog
index 4d423d3..94d7b6e 100644
--- a/sci-libs/mpiblacs/ChangeLog
+++ b/sci-libs/mpiblacs/ChangeLog
@@ -1,7 +1,11 @@
# ChangeLog for sci-libs/mpiblacs
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 23 Feb 2012; Sébastien Fabbro <bicatali@gentoo.org> -mpiblacs-1.1.ebuild,
+ mpiblacs-1.1-r1.ebuild:
+ Removed old, blocking scalapack > 2
+
21 Feb 2012; Andrea Arteaga <andyspiros@gmail.com> +mpiblacs-1.1-r1.ebuild
Install blacs headers.
diff --git a/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild b/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild
index caa8ace..c7ff691 100644
--- a/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild
+++ b/sci-libs/mpiblacs/mpiblacs-1.1-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: $
@@ -17,7 +17,8 @@ KEYWORDS="~amd64 ~x86"
IUSE="static-libs test"
RDEPEND="virtual/mpi[fortran]
- virtual/blas"
+ virtual/blas
+ !>sci-libs/scalapack-2"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
diff --git a/sci-libs/mpiblacs/mpiblacs-1.1.ebuild b/sci-libs/mpiblacs/mpiblacs-1.1.ebuild
deleted file mode 100644
index d1f45e1..0000000
--- a/sci-libs/mpiblacs/mpiblacs-1.1.ebuild
+++ /dev/null
@@ -1,111 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=4
-inherit eutils toolchain-funcs versionator alternatives-2
-
-DESCRIPTION="Basic Linear Algebra Communication Subprograms with MPI"
-HOMEPAGE="http://www.netlib.org/blacs/"
-SRC_URI="${HOMEPAGE}/${PN}.tgz
- ${HOMEPAGE}/${PN}-patch03.tgz
- test? ( ${HOMEPAGE}/blacstester.tgz )"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="static-libs test"
-
-RDEPEND="virtual/mpi[fortran]
- virtual/blas"
-DEPEND="${RDEPEND}
- dev-util/pkgconfig"
-
-S="${WORKDIR}/BLACS"
-
-make_shared_lib() {
- local libstatic=${1}
- local soname=$(basename "${1%.a}").so.$(get_major_version)
- shift
- einfo "Making ${soname}"
- ${LINK:-$(tc-getCC)} ${LDFLAGS} \
- -shared -Wl,-soname="${soname}" \
- -Wl,--whole-archive "${libstatic}" -Wl,--no-whole-archive \
- "$@" -o $(dirname "${libstatic}")/"${soname}" || die "${soname} failed"
- ln -s "${soname}" $(dirname "${libstatic}")/"${soname%.*}"
-}
-
-src_prepare() {
- find . -name Makefile -exec sed -i -e 's:make:$(MAKE):g' '{}' \;
-
- sed -e "s:\(SHELL\s*=\).*:\1$(type -P sh):" \
- -e "s:\(BTOPdir\s*=\).*:\1${S}:" \
- -e "s:\(BLACSFINIT\s*=\).*:\1\$(BLACSdir)/lib${PN}F77init.a:" \
- -e "s:\(BLACSCINIT\s*=\).*:\1\$(BLACSdir)/lib${PN}Cinit.a:" \
- -e "s:\(BLACSLIB\s*=\).*:\1\$(BLACSdir)/lib${PN}.a:" \
- -e "s:\(MPIINCdir\s*=\).*:\1${EPREFIX}/usr/include:" \
- -e "s:\(MPILIB\s*=\).*:\1:" \
- -e '/SYSINC.*=/d' \
- -e 's:\(INTFACE\s*=\).*:\1-DAdd_:' \
- -e 's:\(TRANSCOMM\s*=\).*:\1-DUseMpi2:' \
- -e "s:\(F77\s*=\).*:\1mpif77:" \
- -e "s:\(F77NO_OPTFLAGS\s*=\).*:\1-O0:" \
- -e "s:\(F77FLAGS\s*=\).*:\1${FFLAGS}:" \
- -e "s:\(F77LOADFLAGS\s*=\).*:\1${LDFLAGS}:" \
- -e "s:\(CC\s*=\).*:\1mpicc:" \
- -e "s:\(CCFLAGS\s*=\).*:\1${CFLAGS}:" \
- -e "s:\(CCLOADFLAGS\s*=\).*:\1${LDFLAGS}:" \
- -e "s:\(ARCH\s*=\).*:\1$(tc-getAR):" \
- -e "s:\(RANLIB\s*=\).*:\1$(tc-getRANLIB):" \
- BMAKES/Bmake.MPI-LINUX > Bmake.inc || die
-}
-
-src_compile() {
- emake \
- F77NO_OPTFLAGS="-O0 -fPIC" \
- F77FLAGS="${FFLAGS} -fPIC" \
- CCFLAGS="${CFLAGS} -fPIC" \
- mpi
- cd LIB
- LINK=mpif77 make_shared_lib lib${PN}.a
- LINK=mpicc make_shared_lib lib${PN}Cinit.a -L. -l${PN}
- LINK=mpif77 make_shared_lib lib${PN}F77init.a -L. -l${PN}
- cd "${S}"
- if use static-libs; then
- emake clean -C SRC/MPI && rm -f LIB/*.a
- emake mpi
- fi
-}
-
-src_test() {
- emake tester
- cd TESTING/EXE
- local x
- # do not die because we are expecting an abort
- for x in ./x*; do
- mpirun -np 4 $x 2>&1 | tee $x.log
- grep -q "\*\*\*" $x.log && die "$x failed"
- done
-}
-
-src_install() {
- cd LIB
- dolib.so lib*.so*
- use static-libs && dolib.a lib*.a
- cat <<-EOF > ${PN}.pc
- prefix=${EPREFIX}/usr
- libdir=\${prefix}/$(get_libdir)
- includedir=\${prefix}/include
- Name: ${PN}
- Description: ${DESCRIPTION}
- Version: ${PV}
- URL: ${HOMEPAGE}
- Libs: -L\${libdir} -l${PN} -l${PN}Cinit -l${PN}F77init -lm
- Cflags: -I\${includedir}/${PN}
- Requires: blas
- EOF
- insinto /usr/$(get_libdir)/pkgconfig
- doins ${PN}.pc || die
- alternatives_for blacs ${PN} 0 \
- "/usr/$(get_libdir)/pkgconfig/blacs.pc" "${PN}.pc"
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/mpiblacs/
@ 2012-02-21 1:12 Andrea Arteaga
0 siblings, 0 replies; 5+ messages in thread
From: Andrea Arteaga @ 2012-02-21 1:12 UTC (permalink / raw
To: gentoo-commits
commit: 070c5081ca2fe5ab758e0d6c5623999fb6b2cc1c
Author: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
AuthorDate: Tue Feb 21 01:05:16 2012 +0000
Commit: Andrea Arteaga <andyspiros <AT> gmail <DOT> com>
CommitDate: Tue Feb 21 01:05:16 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=070c5081
[sci-libs/mpiblacs] Install blacs headers.
---
sci-libs/mpiblacs/ChangeLog | 3 +
sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild | 117 ++++++++++++++++++++++++++++++
2 files changed, 120 insertions(+), 0 deletions(-)
diff --git a/sci-libs/mpiblacs/ChangeLog b/sci-libs/mpiblacs/ChangeLog
index 0d9c790..4d423d3 100644
--- a/sci-libs/mpiblacs/ChangeLog
+++ b/sci-libs/mpiblacs/ChangeLog
@@ -2,6 +2,9 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 21 Feb 2012; Andrea Arteaga <andyspiros@gmail.com> +mpiblacs-1.1-r1.ebuild
+ Install blacs headers.
+
22 Aug 2011; Sébastien Fabbro <bicatali@gentoo.org> +mpiblacs-1.1.ebuild,
+metadata.xml:
Imported from bicatali overlay
diff --git a/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild b/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild
new file mode 100644
index 0000000..caa8ace
--- /dev/null
+++ b/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit eutils toolchain-funcs versionator alternatives-2
+
+DESCRIPTION="Basic Linear Algebra Communication Subprograms with MPI"
+HOMEPAGE="http://www.netlib.org/blacs/"
+SRC_URI="${HOMEPAGE}/${PN}.tgz
+ ${HOMEPAGE}/${PN}-patch03.tgz
+ test? ( ${HOMEPAGE}/blacstester.tgz )"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs test"
+
+RDEPEND="virtual/mpi[fortran]
+ virtual/blas"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S="${WORKDIR}/BLACS"
+
+make_shared_lib() {
+ local libstatic=${1}
+ local soname=$(basename "${1%.a}").so.$(get_major_version)
+ shift
+ einfo "Making ${soname}"
+ ${LINK:-$(tc-getCC)} ${LDFLAGS} \
+ -shared -Wl,-soname="${soname}" \
+ -Wl,--whole-archive "${libstatic}" -Wl,--no-whole-archive \
+ "$@" -o $(dirname "${libstatic}")/"${soname}" || die "${soname} failed"
+ ln -s "${soname}" $(dirname "${libstatic}")/"${soname%.*}"
+}
+
+src_prepare() {
+ find . -name Makefile -exec sed -i -e 's:make:$(MAKE):g' '{}' \;
+
+ sed -e "s:\(SHELL\s*=\).*:\1$(type -P sh):" \
+ -e "s:\(BTOPdir\s*=\).*:\1${S}:" \
+ -e "s:\(BLACSFINIT\s*=\).*:\1\$(BLACSdir)/lib${PN}F77init.a:" \
+ -e "s:\(BLACSCINIT\s*=\).*:\1\$(BLACSdir)/lib${PN}Cinit.a:" \
+ -e "s:\(BLACSLIB\s*=\).*:\1\$(BLACSdir)/lib${PN}.a:" \
+ -e "s:\(MPIINCdir\s*=\).*:\1${EPREFIX}/usr/include:" \
+ -e "s:\(MPILIB\s*=\).*:\1:" \
+ -e '/SYSINC.*=/d' \
+ -e 's:\(INTFACE\s*=\).*:\1-DAdd_:' \
+ -e 's:\(TRANSCOMM\s*=\).*:\1-DUseMpi2:' \
+ -e "s:\(F77\s*=\).*:\1mpif77:" \
+ -e "s:\(F77NO_OPTFLAGS\s*=\).*:\1-O0:" \
+ -e "s:\(F77FLAGS\s*=\).*:\1${FFLAGS}:" \
+ -e "s:\(F77LOADFLAGS\s*=\).*:\1${LDFLAGS}:" \
+ -e "s:\(CC\s*=\).*:\1mpicc:" \
+ -e "s:\(CCFLAGS\s*=\).*:\1${CFLAGS}:" \
+ -e "s:\(CCLOADFLAGS\s*=\).*:\1${LDFLAGS}:" \
+ -e "s:\(ARCH\s*=\).*:\1$(tc-getAR):" \
+ -e "s:\(RANLIB\s*=\).*:\1$(tc-getRANLIB):" \
+ BMAKES/Bmake.MPI-LINUX > Bmake.inc || die
+}
+
+src_compile() {
+ emake \
+ F77NO_OPTFLAGS="-O0 -fPIC" \
+ F77FLAGS="${FFLAGS} -fPIC" \
+ CCFLAGS="${CFLAGS} -fPIC" \
+ mpi
+ cd LIB
+ LINK=mpif77 make_shared_lib lib${PN}.a
+ LINK=mpicc make_shared_lib lib${PN}Cinit.a -L. -l${PN}
+ LINK=mpif77 make_shared_lib lib${PN}F77init.a -L. -l${PN}
+ cd "${S}"
+ if use static-libs; then
+ emake clean -C SRC/MPI && rm -f LIB/*.a
+ emake mpi
+ fi
+}
+
+src_test() {
+ emake tester
+ cd TESTING/EXE
+ local x
+ # do not die because we are expecting an abort
+ for x in ./x*; do
+ mpirun -np 4 $x 2>&1 | tee $x.log
+ grep -q "\*\*\*" $x.log && die "$x failed"
+ done
+}
+
+src_install() {
+ pushd LIB
+ dolib.so lib*.so*
+ use static-libs && dolib.a lib*.a
+ cat <<-EOF > ${PN}.pc
+ prefix=${EPREFIX}/usr
+ libdir=\${prefix}/$(get_libdir)
+ includedir=\${prefix}/include
+ Name: ${PN}
+ Description: ${DESCRIPTION}
+ Version: ${PV}
+ URL: ${HOMEPAGE}
+ Libs: -L\${libdir} -l${PN} -l${PN}Cinit -l${PN}F77init -lm
+ Cflags: -I\${includedir}/${PN}
+ Requires: blas
+ EOF
+ insinto /usr/$(get_libdir)/pkgconfig
+ doins ${PN}.pc || die
+ alternatives_for blacs ${PN} 0 \
+ "/usr/$(get_libdir)/pkgconfig/blacs.pc" "${PN}.pc"
+ popd
+
+ pushd SRC/MPI
+ insinto /usr/include/blacs
+ doins Bconfig.h Bdef.h
+ popd
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-01-01 14:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-01 14:33 [gentoo-commits] proj/sci:master commit in: sci-libs/mpiblacs/ Aisha Tammy
-- strict thread matches above, loose matches on Subject: below --
2015-01-25 16:39 Justin Lecher
2012-07-12 20:43 Sebastien Fabbro
2012-02-23 19:05 Sebastien Fabbro
2012-02-21 1:12 Andrea Arteaga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox