blob: 2137dd1c3f0c6edef4cdc5e0a7699cb81973b0ed (
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
53
54
55
56
57
58
59
60
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/lapack-reference/lapack-reference-3.0-r4.ebuild,v 1.2 2006/08/17 20:10:29 dberkholz Exp $
inherit autotools eutils fortran multilib
MyPN="${PN/-reference/}"
DESCRIPTION="FORTRAN reference implementation of LAPACK Linear Algebra PACKage"
LICENSE="lapack"
HOMEPAGE="http://www.netlib.org/lapack/index.html"
SRC_URI="http://www.netlib.org/lapack/${MyPN}.tgz
mirror://gentoo/${MyPN}-20020531-20021004.patch.bz2"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
RDEPEND="virtual/blas
app-admin/eselect-lapack"
DEPEND="${RDEPEND}"
PROVIDE="virtual/lapack"
FORTRAN="g77 gfortran ifc"
S="${WORKDIR}/LAPACK"
src_unpack() {
unpack ${A}
epatch "${DISTDIR}"/lapack-20020531-20021004.patch.bz2
epatch ${FILESDIR}/${P}-autotool.patch
cd "${S}"
eautoreconf
}
src_install() {
TOP_PATH="${DESTTREE}"/lib/lapack
# Library 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)/liblapack* ${D}/${RPATH}
dodoc "${S}"/README
eselect lapack add $(get_libdir) ${FILESDIR}/eselect-reference reference
}
pkg_postinst() {
if [[ -z "$(eselect lapack show)" ]]; then
eselect lapack set reference
fi
elog "Configuration now uses eselect rather than lapack-config."
}
|