blob: 976956b1a5b205324debec4d480eaeb101711fc8 (
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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-reference/blas-reference-19940131-r3.ebuild,v 1.2 2006/06/18 17:09:27 corsair Exp $
inherit autotools fortran multilib
Name="blas"
DESCRIPTION="FORTRAN reference implementation of the BLAS (linear algebra lib)"
LICENSE="public-domain"
HOMEPAGE="http://www.netlib.org/blas/"
SRC_URI="http://www.netlib.org/blas/${Name}.tgz"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
RDEPEND="sci-libs/blas-config"
DEPEND="${RDEPEND}"
PROVIDE="virtual/blas"
#TODO: detect 64bit size from compiler, not eclass
FORTRAN="g77 gfortran ifc" || FORTRAN="g77 gfortran f2c ifc" # No f2c on 64-bit systems yet :-/
S="${WORKDIR}"
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/${P}-autotool.patch
cd "${S}"
eautoreconf
}
src_install() {
# Profile information will be installed in TOP_PATH:
TOP_PATH="${DESTTREE}"/$(get_libdir)/blas
# Libraries will be installed in RPATH:
RPATH="${TOP_PATH}"/reference
make DESTDIR="${D}" install || die "install failed"
# Fix for switching
dodir ${RPATH}
mv ${D}/usr/$(get_libdir)/libblas* ${D}/${RPATH}
insinto ${TOP_PATH}
doins ${FILESDIR}/f77-reference || die
}
pkg_postinst() {
blas-config f77-reference
}
|