Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/cblas-reference/
Date: Sat, 02 Apr 2016 14:56:09
Message-Id: 1459608962.011d5c9fcf200f2f4d054f99a9d7e949d4b3d1a1.jlec@gentoo
1 commit: 011d5c9fcf200f2f4d054f99a9d7e949d4b3d1a1
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 2 14:55:57 2016 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 2 14:56:02 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=011d5c9f
7
8 sci-libs/cblas-reference: Drop old
9
10 obsoletes:
11 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=501042
12
13 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=478602
14
15 Package-Manager: portage-2.2.27
16 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
17
18 .../cblas-reference-20030223-r4.ebuild | 63 --------------------
19 .../cblas-reference-20030223-r5.ebuild | 69 ----------------------
20 2 files changed, 132 deletions(-)
21
22 diff --git a/sci-libs/cblas-reference/cblas-reference-20030223-r4.ebuild b/sci-libs/cblas-reference/cblas-reference-20030223-r4.ebuild
23 deleted file mode 100644
24 index 72164d8..0000000
25 --- a/sci-libs/cblas-reference/cblas-reference-20030223-r4.ebuild
26 +++ /dev/null
27 @@ -1,63 +0,0 @@
28 -# Copyright 1999-2015 Gentoo Foundation
29 -# Distributed under the terms of the GNU General Public License v2
30 -# $Id$
31 -
32 -inherit autotools eutils fortran-2 multilib toolchain-funcs
33 -
34 -MyPN="${PN/-reference/}"
35 -
36 -DESCRIPTION="C wrapper interface to the F77 reference BLAS implementation"
37 -HOMEPAGE="http://www.netlib.org/blas/"
38 -SRC_URI="http://www.netlib.org/blas/blast-forum/${MyPN}.tgz"
39 -
40 -SLOT="0"
41 -LICENSE="public-domain"
42 -IUSE=""
43 -KEYWORDS="alpha amd64 hppa ppc ppc64 s390 sparc x86 ~x86-fbsd"
44 -
45 -RDEPEND="
46 - virtual/blas
47 - app-eselect/eselect-cblas"
48 -DEPEND="${RDEPEND}
49 - virtual/pkgconfig"
50 -
51 -ESELECT_PROF=reference
52 -S="${WORKDIR}/CBLAS"
53 -
54 -src_unpack() {
55 - unpack ${A}
56 - cd "${S}"
57 - epatch "${FILESDIR}"/${P}-autotool.patch
58 - eautoreconf
59 -}
60 -
61 -src_compile() {
62 - econf \
63 - --libdir=/usr/$(get_libdir)/blas/reference \
64 - --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
65 - emake || die "emake failed"
66 -}
67 -
68 -src_install() {
69 - emake DESTDIR="${D}" install || die "emake install failed"
70 - dodoc README || die "failed to install docs"
71 - insinto /usr/share/doc/${PF}
72 - doins cblas_example*c || die "install examples failed"
73 - eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas.reference ${ESELECT_PROF}
74 -}
75 -
76 -pkg_postinst() {
77 - local p=cblas
78 - local current_lib=$(eselect ${p} show | cut -d' ' -f2)
79 - if [[ ${current_lib} == ${ESELECT_PROF} || -z ${current_lib} ]]; then
80 - # work around eselect bug #189942
81 - local configfile="${ROOT}"/etc/env.d/${p}/$(get_libdir)/config
82 - [[ -e ${configfile} ]] && rm -f ${configfile}
83 - eselect ${p} set ${ESELECT_PROF}
84 - elog "${p} has been eselected to ${ESELECT_PROF}"
85 - else
86 - elog "Current eselected ${p} is ${current_lib}"
87 - elog "To use ${p} ${ESELECT_PROF} implementation, you have to issue (as root):"
88 - elog "\t eselect ${p} set ${ESELECT_PROF}"
89 - fi
90 -}
91
92 diff --git a/sci-libs/cblas-reference/cblas-reference-20030223-r5.ebuild b/sci-libs/cblas-reference/cblas-reference-20030223-r5.ebuild
93 deleted file mode 100644
94 index 6d0264b..0000000
95 --- a/sci-libs/cblas-reference/cblas-reference-20030223-r5.ebuild
96 +++ /dev/null
97 @@ -1,69 +0,0 @@
98 -# Copyright 1999-2015 Gentoo Foundation
99 -# Distributed under the terms of the GNU General Public License v2
100 -# $Id$
101 -
102 -EAPI="3"
103 -
104 -inherit autotools eutils fortran-2 multilib toolchain-funcs
105 -
106 -MyPN="${PN/-reference/}"
107 -
108 -DESCRIPTION="C wrapper interface to the F77 reference BLAS implementation"
109 -HOMEPAGE="http://www.netlib.org/blas/"
110 -SRC_URI="http://www.netlib.org/blas/blast-forum/${MyPN}.tgz"
111 -
112 -SLOT="0"
113 -LICENSE="public-domain"
114 -IUSE=""
115 -KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
116 -
117 -RDEPEND="
118 - virtual/blas
119 - app-eselect/eselect-cblas"
120 -DEPEND="${RDEPEND}
121 - virtual/pkgconfig"
122 -
123 -ESELECT_PROF=reference
124 -S="${WORKDIR}/CBLAS"
125 -
126 -src_prepare() {
127 - epatch "${FILESDIR}"/${P}-autotool.patch
128 - eautoreconf
129 -
130 - cp "${FILESDIR}"/eselect.cblas.reference "${T}"/
131 - sed -i -e "s:/usr:${EPREFIX}/usr:" "${T}"/eselect.cblas.reference || die
132 - if [[ ${CHOST} == *-darwin* ]] ; then
133 - sed -i -e 's/\.so\([\.0-9]\+\)\?/\1.dylib/g' \
134 - "${T}"/eselect.cblas.reference || die
135 - fi
136 -}
137 -
138 -src_configure() {
139 - econf \
140 - --libdir="${EPREFIX}"/usr/$(get_libdir)/blas/reference \
141 - --with-blas="$($(tc-getPKG_CONFIG) --libs blas)"
142 -}
143 -
144 -src_install() {
145 - emake DESTDIR="${D}" install || die "emake install failed"
146 - dodoc README || die "failed to install docs"
147 - insinto /usr/share/doc/${PF}
148 - doins cblas_example*c || die "install examples failed"
149 - eselect cblas add $(get_libdir) "${T}"/eselect.cblas.reference ${ESELECT_PROF}
150 -}
151 -
152 -pkg_postinst() {
153 - local p=cblas
154 - local current_lib=$(eselect ${p} show | cut -d' ' -f2)
155 - if [[ ${current_lib} == ${ESELECT_PROF} || -z ${current_lib} ]]; then
156 - # work around eselect bug #189942
157 - local configfile="${EROOT}"/etc/env.d/${p}/$(get_libdir)/config
158 - [[ -e ${configfile} ]] && rm -f ${configfile}
159 - eselect ${p} set ${ESELECT_PROF}
160 - elog "${p} has been eselected to ${ESELECT_PROF}"
161 - else
162 - elog "Current eselected ${p} is ${current_lib}"
163 - elog "To use ${p} ${ESELECT_PROF} implementation, you have to issue (as root):"
164 - elog "\t eselect ${p} set ${ESELECT_PROF}"
165 - fi
166 -}