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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (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.8: +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-2007 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-r4.ebuild,v 1.8 2007/06/29 17:42:09 jer 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="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
16
17 RDEPEND="app-admin/eselect-blas"
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 cd "${S}"
30 epatch "${FILESDIR}"/${P}-autotool.patch
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 eselect blas add $(get_libdir) ${FILESDIR}/eselect-reference reference
47 }
48
49 pkg_postinst() {
50 if [[ -z "$(eselect blas show)" ]]; then
51 eselect blas set reference
52 fi
53
54 elog "Configuration now uses eselect rather than blas-config."
55 }

  ViewVC Help
Powered by ViewVC 1.1.20