blob: 0bd6db709a71c0e6f73bd199ac002b6926005db3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/cblas-reference/cblas-reference-20030223-r4.ebuild,v 1.3 2007/09/01 22:49:04 angelos Exp $
inherit autotools eutils fortran multilib
MyPN="${PN/-reference/}"
DESCRIPTION="C wrapper interface to the F77 reference BLAS implementation"
LICENSE="public-domain"
HOMEPAGE="http://www.netlib.org/blas/"
SRC_URI="http://www.netlib.org/blas/blast-forum/${MyPN}.tgz"
SLOT="0"
IUSE=""
KEYWORDS="~alpha amd64 ~ppc ~ppc64 sparc ~x86 ~x86-fbsd"
DEPEND="virtual/blas
dev-util/pkgconfig
app-admin/eselect-cblas"
FORTRAN="gfortran g77 ifc"
S="${WORKDIR}/CBLAS"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-autotool.patch
eautoreconf
}
src_compile() {
econf \
--libdir=/usr/$(get_libdir)/blas/reference \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README || die "failed to install docs"
insinto /usr/share/doc/${PF}
doins cblas_example*c
eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas.reference reference
}
pkg_postinst() {
[[ -z "$(eselect cblas show)" ]] && eselect cblas set reference
elog "To use CBLAS reference implementation, you have to issue (as root):"
elog "\t eselect cblas set reference"
}
|