/[gentoo-x86]/sci-libs/blas-reference/blas-reference-19940131-r3.ebuild
Gentoo

Contents of /sci-libs/blas-reference/blas-reference-19940131-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Oct 10 12:30:50 2007 UTC (12 years, 10 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Removed old versions, now switch to new style virtuals. Workaround eselect bug #189942.
(Portage version: 2.1.3.12)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-reference/blas-reference-19940131-r3.ebuild,v 1.6 2006/09/13 18:08:34 kugelfang Exp $
4
5 inherit autotools fortran multilib
6
7 Name="blas"
8 DESCRIPTION="FORTRAN reference implementation of the BLAS (linear algebra lib)"
9 LICENSE="public-domain"
10 HOMEPAGE="http://www.netlib.org/blas/"
11 SRC_URI="http://www.netlib.org/blas/${Name}.tgz"
12
13 SLOT="0"
14 IUSE=""
15 KEYWORDS="amd64 ia64 ppc ppc64 x86"
16
17 RDEPEND="sci-libs/blas-config"
18 DEPEND="${RDEPEND}"
19
20 PROVIDE="virtual/blas"
21
22 #TODO: detect 64bit size from compiler, not eclass
23 FORTRAN="g77 gfortran ifc" || FORTRAN="g77 gfortran f2c ifc" # No f2c on 64-bit systems yet :-/
24
25 S="${WORKDIR}"
26
27 src_unpack() {
28 unpack ${A}
29 epatch ${FILESDIR}/${P}-autotool.patch
30 cd "${S}"
31 eautoreconf
32 }
33
34 src_install() {
35 # Profile information will be installed in TOP_PATH:
36 TOP_PATH="${DESTTREE}"/$(get_libdir)/blas
37 # Libraries will be installed in RPATH:
38 RPATH="${TOP_PATH}"/reference
39
40 make DESTDIR="${D}" install || die "install failed"
41
42 # Fix for switching
43 dodir ${RPATH}
44 mv ${D}/usr/$(get_libdir)/libblas* ${D}/${RPATH}
45
46 insinto ${TOP_PATH}
47 doins ${FILESDIR}/f77-reference || die
48 }
49
50 pkg_postinst() {
51 blas-config f77-reference
52 }

  ViewVC Help
Powered by ViewVC 1.1.20