1 |
commit: 15de3fc09644b69ce1be1b236c52aab359fb0721 |
2 |
Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
3 |
AuthorDate: Fri Jan 1 14:33:30 2021 +0000 |
4 |
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
5 |
CommitDate: Fri Jan 1 14:33:42 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=15de3fc0 |
7 |
|
8 |
sci-libs/mpiblacs: drop package |
9 |
|
10 |
it is not a part of sci-libs/scalapack |
11 |
|
12 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
13 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
14 |
|
15 |
sci-libs/mpiblacs/metadata.xml | 15 ---- |
16 |
sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild | 127 ------------------------------- |
17 |
2 files changed, 142 deletions(-) |
18 |
|
19 |
diff --git a/sci-libs/mpiblacs/metadata.xml b/sci-libs/mpiblacs/metadata.xml |
20 |
deleted file mode 100644 |
21 |
index e90a78797..000000000 |
22 |
--- a/sci-libs/mpiblacs/metadata.xml |
23 |
+++ /dev/null |
24 |
@@ -1,15 +0,0 @@ |
25 |
-<?xml version="1.0" encoding="UTF-8"?> |
26 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
27 |
-<pkgmetadata> |
28 |
- <maintainer type="project"> |
29 |
- <email>sci@g.o</email> |
30 |
- <name>Gentoo Science Project</name> |
31 |
- </maintainer> |
32 |
- <longdescription lang="en"> |
33 |
-The BLACS (Basic Linear Algebra Communication Subprograms) |
34 |
-project is an ongoing investigation whose purpose is to create |
35 |
-a linear algebra oriented message passing interface |
36 |
-that may be implemented efficiently and uniformly across |
37 |
-a large range of distributed memory platforms. |
38 |
-</longdescription> |
39 |
-</pkgmetadata> |
40 |
|
41 |
diff --git a/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild b/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild |
42 |
deleted file mode 100644 |
43 |
index 0c0ba0801..000000000 |
44 |
--- a/sci-libs/mpiblacs/mpiblacs-1.1-r1.ebuild |
45 |
+++ /dev/null |
46 |
@@ -1,127 +0,0 @@ |
47 |
-# Copyright 1999-2015 Gentoo Foundation |
48 |
-# Distributed under the terms of the GNU General Public License v2 |
49 |
- |
50 |
-EAPI=5 |
51 |
-inherit eutils toolchain-funcs versionator alternatives-2 multilib |
52 |
- |
53 |
-DESCRIPTION="Basic Linear Algebra Communication Subprograms with MPI" |
54 |
-HOMEPAGE="http://www.netlib.org/blacs/" |
55 |
-SRC_URI="${HOMEPAGE}/${PN}.tgz |
56 |
- ${HOMEPAGE}/${PN}-patch03.tgz |
57 |
- test? ( ${HOMEPAGE}/blacstester.tgz )" |
58 |
- |
59 |
-LICENSE="BSD" |
60 |
-SLOT="0" |
61 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
62 |
-IUSE="static-libs test" |
63 |
- |
64 |
-RDEPEND="virtual/mpi[fortran] |
65 |
- virtual/blas |
66 |
- !>sci-libs/scalapack-2" |
67 |
-DEPEND="${RDEPEND} |
68 |
- virtual/pkgconfig" |
69 |
- |
70 |
-S="${WORKDIR}/BLACS" |
71 |
- |
72 |
-static_to_shared() { |
73 |
- local libstatic=${1}; shift |
74 |
- local libname=$(basename ${libstatic%.a}) |
75 |
- local soname=${libname}$(get_libname $(get_version_component_range 1-2)) |
76 |
- local libdir=$(dirname ${libstatic}) |
77 |
- |
78 |
- einfo "Making ${soname} from ${libstatic}" |
79 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
80 |
- ${LINK:-$(tc-getCC)} ${LDFLAGS} \ |
81 |
- -dynamiclib -install_name "${EPREFIX}"/usr/lib/"${soname}" \ |
82 |
- -Wl,-all_load -Wl,${libstatic} \ |
83 |
- "$@" -o ${libdir}/${soname} || die "${soname} failed" |
84 |
- else |
85 |
- ${LINK:-$(tc-getCC)} ${LDFLAGS} \ |
86 |
- -shared -Wl,-soname=${soname} \ |
87 |
- -Wl,--whole-archive ${libstatic} -Wl,--no-whole-archive \ |
88 |
- "$@" -o ${libdir}/${soname} || die "${soname} failed" |
89 |
- [[ $(get_version_component_count) -gt 1 ]] && \ |
90 |
- ln -s ${soname} ${libdir}/${libname}$(get_libname $(get_major_version)) || die |
91 |
- ln -s ${soname} ${libdir}/${libname}$(get_libname) || die |
92 |
- fi |
93 |
-} |
94 |
- |
95 |
-src_prepare() { |
96 |
- find . -name Makefile -exec sed -i -e 's:make:$(MAKE):g' '{}' \; || die |
97 |
- |
98 |
- sed -e "s:\(SHELL\s*=\).*:\1$(type -P sh):" \ |
99 |
- -e "s:\(BTOPdir\s*=\).*:\1${S}:" \ |
100 |
- -e "s:\(BLACSFINIT\s*=\).*:\1\$(BLACSdir)/lib${PN}F77init.a:" \ |
101 |
- -e "s:\(BLACSCINIT\s*=\).*:\1\$(BLACSdir)/lib${PN}Cinit.a:" \ |
102 |
- -e "s:\(BLACSLIB\s*=\).*:\1\$(BLACSdir)/lib${PN}.a:" \ |
103 |
- -e "s:\(MPIINCdir\s*=\).*:\1${EPREFIX}/usr/include:" \ |
104 |
- -e "s:\(MPILIB\s*=\).*:\1:" \ |
105 |
- -e '/SYSINC.*=/d' \ |
106 |
- -e 's:\(INTFACE\s*=\).*:\1-DAdd_:' \ |
107 |
- -e 's:\(TRANSCOMM\s*=\).*:\1-DUseMpi2:' \ |
108 |
- -e "s:\(F77\s*=\).*:\1mpif77:" \ |
109 |
- -e "s:\(F77NO_OPTFLAGS\s*=\).*:\1-O0:" \ |
110 |
- -e "s:\(F77FLAGS\s*=\).*:\1${FFLAGS}:" \ |
111 |
- -e "s:\(F77LOADFLAGS\s*=\).*:\1${LDFLAGS}:" \ |
112 |
- -e "s:\(CC\s*=\).*:\1mpicc:" \ |
113 |
- -e "s:\(CCFLAGS\s*=\).*:\1${CFLAGS}:" \ |
114 |
- -e "s:\(CCLOADFLAGS\s*=\).*:\1${LDFLAGS}:" \ |
115 |
- -e "s:\(ARCH\s*=\).*:\1$(tc-getAR):" \ |
116 |
- -e "s:\(RANLIB\s*=\).*:\1$(tc-getRANLIB):" \ |
117 |
- BMAKES/Bmake.MPI-LINUX > Bmake.inc || die |
118 |
-} |
119 |
- |
120 |
-src_compile() { |
121 |
- emake \ |
122 |
- F77NO_OPTFLAGS="-O0 -fPIC" \ |
123 |
- F77FLAGS="${FFLAGS} -fPIC" \ |
124 |
- CCFLAGS="${CFLAGS} -fPIC" \ |
125 |
- mpi |
126 |
- LINK=mpif77 static_to_shared LIB/lib${PN}.a |
127 |
- LINK=mpicc static_to_shared LIB/lib${PN}Cinit.a -LLIB -l${PN} |
128 |
- LINK=mpif77 static_to_shared LIB/lib${PN}F77init.a -LLIB -l${PN} |
129 |
- if use static-libs; then |
130 |
- emake clean -C SRC/MPI && rm -f LIB/*.a |
131 |
- emake mpi |
132 |
- fi |
133 |
-} |
134 |
- |
135 |
-src_test() { |
136 |
- emake tester |
137 |
- cd TESTING/EXE |
138 |
- local x |
139 |
- # do not die because we are expecting an abort |
140 |
- for x in ./x*; do |
141 |
- mpirun -np 4 $x 2>&1 | tee $x.log |
142 |
- grep -q "\*\*\*" $x.log && die "$x failed" |
143 |
- done |
144 |
-} |
145 |
- |
146 |
-src_install() { |
147 |
- pushd LIB |
148 |
- dolib.so lib*$(get_libname)* |
149 |
- use static-libs && dolib.a lib*.a |
150 |
- cat <<-EOF > ${PN}.pc |
151 |
- prefix=${EPREFIX}/usr |
152 |
- libdir=\${prefix}/$(get_libdir) |
153 |
- includedir=\${prefix}/include |
154 |
- Name: ${PN} |
155 |
- Description: ${DESCRIPTION} |
156 |
- Version: ${PV} |
157 |
- URL: ${HOMEPAGE} |
158 |
- Libs: -L\${libdir} -l${PN} -l${PN}Cinit -l${PN}F77init |
159 |
- Private: -lm |
160 |
- Cflags: -I\${includedir}/${PN} |
161 |
- Requires: blas |
162 |
- EOF |
163 |
- insinto /usr/$(get_libdir)/pkgconfig |
164 |
- doins ${PN}.pc |
165 |
- alternatives_for blacs ${PN} 0 \ |
166 |
- /usr/$(get_libdir)/pkgconfig/blacs.pc ${PN}.pc |
167 |
- popd > /dev/null |
168 |
- |
169 |
- pushd SRC/MPI > /dev/null |
170 |
- insinto /usr/include/blacs |
171 |
- doins Bconfig.h Bdef.h |
172 |
- popd > /dev/null |
173 |
-} |