1 |
commit: 903ea2285f4d47eb1bcc0b5a55240e907a23cb1a |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 28 16:44:52 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 19:19:59 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=903ea228 |
7 |
|
8 |
sci-libs/blas-reference: Bump to EAPI=5 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
.../blas-reference-20070226-r4.ebuild | 70 ++++++++++++++++++++++ |
14 |
1 file changed, 70 insertions(+) |
15 |
|
16 |
diff --git a/sci-libs/blas-reference/blas-reference-20070226-r4.ebuild b/sci-libs/blas-reference/blas-reference-20070226-r4.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..ef362bc |
19 |
--- /dev/null |
20 |
+++ b/sci-libs/blas-reference/blas-reference-20070226-r4.ebuild |
21 |
@@ -0,0 +1,70 @@ |
22 |
+# Copyright 1999-2015 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Id$ |
25 |
+ |
26 |
+EAPI=5 |
27 |
+ |
28 |
+inherit eutils fortran-2 autotools multilib flag-o-matic toolchain-funcs |
29 |
+ |
30 |
+LAPACKPV="3.1.1" |
31 |
+LAPACKPN="lapack-lite" |
32 |
+ |
33 |
+DESCRIPTION="Basic Linear Algebra Subprograms F77 reference implementations" |
34 |
+HOMEPAGE="http://www.netlib.org/blas/" |
35 |
+SRC_URI="http://www.netlib.org/lapack/${LAPACKPN}-${LAPACKPV}.tgz" |
36 |
+ |
37 |
+LICENSE="BSD" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="" |
40 |
+IUSE="doc" |
41 |
+ |
42 |
+DEPEND="app-eselect/eselect-blas" |
43 |
+RDEPEND="${DEPEND} |
44 |
+ doc? ( app-doc/blas-docs )" |
45 |
+ |
46 |
+S="${WORKDIR}/${LAPACKPN}-${LAPACKPV}" |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ ESELECT_PROF=reference |
50 |
+ epatch \ |
51 |
+ "${FILESDIR}"/${P}-autotool.patch \ |
52 |
+ "${FILESDIR}"/${P}-pkg-config.patch |
53 |
+ eautoreconf |
54 |
+ |
55 |
+ cp "${FILESDIR}"/eselect.blas.reference-ng "${T}"/eselect.blas.reference || die |
56 |
+ sed -i -e "s:/usr:${EPREFIX}/usr:" "${T}"/eselect.blas.reference || die |
57 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
58 |
+ sed -i -e 's/\.so\([\.0-9]\+\)\?/\1.dylib/g' \ |
59 |
+ "${T}"/eselect.blas.reference || die |
60 |
+ fi |
61 |
+} |
62 |
+ |
63 |
+src_configure() { |
64 |
+ econf \ |
65 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir)/blas/reference |
66 |
+} |
67 |
+ |
68 |
+src_compile() { |
69 |
+ emake LDFLAGS="${LDFLAGS}" |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ default |
74 |
+ eselect blas add $(get_libdir) "${T}"/eselect.blas.reference ${ESELECT_PROF} |
75 |
+} |
76 |
+ |
77 |
+pkg_postinst() { |
78 |
+ local p=blas |
79 |
+ local current_lib=$(eselect ${p} show | cut -d' ' -f2) |
80 |
+ if [[ ${current_lib} == ${ESELECT_PROF} || -z ${current_lib} ]]; then |
81 |
+ # work around eselect bug #189942 |
82 |
+ local configfile="${EROOT}"/etc/env.d/${p}/$(get_libdir)/config |
83 |
+ [[ -e ${configfile} ]] && rm -f ${configfile} |
84 |
+ eselect ${p} set ${ESELECT_PROF} |
85 |
+ elog "${p} has been eselected to ${ESELECT_PROF}" |
86 |
+ else |
87 |
+ elog "Current eselected ${p} is ${current_lib}" |
88 |
+ elog "To use ${p} ${ESELECT_PROF} implementation, you have to issue (as root):" |
89 |
+ elog "\t eselect ${p} set ${ESELECT_PROF}" |
90 |
+ fi |
91 |
+} |