1 |
commit: ddf18a6eab2fddd04157d552461acd37daca1e17 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 28 16:46:58 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=ddf18a6e |
7 |
|
8 |
sci-libs/cblas-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 |
.../cblas-reference-20030223-r6.ebuild | 67 ++++++++++++++++++++++ |
14 |
1 file changed, 67 insertions(+) |
15 |
|
16 |
diff --git a/sci-libs/cblas-reference/cblas-reference-20030223-r6.ebuild b/sci-libs/cblas-reference/cblas-reference-20030223-r6.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..33fa881 |
19 |
--- /dev/null |
20 |
+++ b/sci-libs/cblas-reference/cblas-reference-20030223-r6.ebuild |
21 |
@@ -0,0 +1,67 @@ |
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 autotools eutils fortran-2 multilib toolchain-funcs |
29 |
+ |
30 |
+MyPN="${PN/-reference/}" |
31 |
+ |
32 |
+DESCRIPTION="C wrapper interface to the F77 reference BLAS implementation" |
33 |
+HOMEPAGE="http://www.netlib.org/blas/" |
34 |
+SRC_URI="http://www.netlib.org/blas/blast-forum/${MyPN}.tgz" |
35 |
+ |
36 |
+SLOT="0" |
37 |
+LICENSE="public-domain" |
38 |
+IUSE="" |
39 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ virtual/blas |
43 |
+ app-eselect/eselect-cblas" |
44 |
+DEPEND="${RDEPEND} |
45 |
+ virtual/pkgconfig" |
46 |
+ |
47 |
+ESELECT_PROF=reference |
48 |
+S="${WORKDIR}/CBLAS" |
49 |
+ |
50 |
+src_prepare() { |
51 |
+ epatch "${FILESDIR}"/${P}-autotool.patch |
52 |
+ eautoreconf |
53 |
+ |
54 |
+ cp "${FILESDIR}"/eselect.cblas.reference "${T}"/ || die |
55 |
+ sed -i -e "s:/usr:${EPREFIX}/usr:" "${T}"/eselect.cblas.reference || die |
56 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
57 |
+ sed -i -e 's/\.so\([\.0-9]\+\)\?/\1.dylib/g' \ |
58 |
+ "${T}"/eselect.cblas.reference || die |
59 |
+ fi |
60 |
+} |
61 |
+ |
62 |
+src_configure() { |
63 |
+ econf \ |
64 |
+ --libdir="${EPREFIX}"/usr/$(get_libdir)/blas/reference \ |
65 |
+ --with-blas="$($(tc-getPKG_CONFIG) --libs blas)" |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ default |
70 |
+ dodoc cblas_example*c |
71 |
+ eselect cblas add $(get_libdir) "${T}"/eselect.cblas.reference ${ESELECT_PROF} |
72 |
+} |
73 |
+ |
74 |
+pkg_postinst() { |
75 |
+ local p=cblas |
76 |
+ local current_lib=$(eselect ${p} show | cut -d' ' -f2) |
77 |
+ if [[ ${current_lib} == ${ESELECT_PROF} || -z ${current_lib} ]]; then |
78 |
+ # work around eselect bug #189942 |
79 |
+ local configfile="${EROOT}"/etc/env.d/${p}/$(get_libdir)/config |
80 |
+ [[ -e ${configfile} ]] && rm -f ${configfile} |
81 |
+ eselect ${p} set ${ESELECT_PROF} |
82 |
+ elog "${p} has been eselected to ${ESELECT_PROF}" |
83 |
+ else |
84 |
+ elog "Current eselected ${p} is ${current_lib}" |
85 |
+ elog "To use ${p} ${ESELECT_PROF} implementation, you have to issue (as root):" |
86 |
+ elog "\t eselect ${p} set ${ESELECT_PROF}" |
87 |
+ fi |
88 |
+} |