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

Contents of /sci-libs/blas-reference/blas-reference-20070226.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.27 - (show annotations) (download)
Tue Mar 31 20:10:55 2015 UTC (2 years, 6 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.26: +3 -3 lines
Update dependency after package move of eselect modules to app-eselect.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)

1 # Copyright 1999-2015 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-20070226.ebuild,v 1.26 2012/10/18 21:19:19 jlec Exp $
4
5 inherit eutils fortran-2 autotools multilib flag-o-matic toolchain-funcs
6
7 LAPACKPV="3.1.1"
8 LAPACKPN="lapack-lite"
9
10 DESCRIPTION="Basic Linear Algebra Subprograms F77 reference implementations"
11 HOMEPAGE="http://www.netlib.org/blas/"
12 SRC_URI="http://www.netlib.org/lapack/${LAPACKPN}-${LAPACKPV}.tgz"
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 s390 sparc x86 ~x86-fbsd"
17 IUSE="doc"
18
19 DEPEND="app-eselect/eselect-blas"
20 RDEPEND="${DEPEND}
21 doc? ( app-doc/blas-docs )"
22
23 S="${WORKDIR}/${LAPACKPN}-${LAPACKPV}"
24
25 src_unpack() {
26 ESELECT_PROF=reference
27 unpack ${A}
28 cd "${S}"
29 epatch "${FILESDIR}"/${P}-autotool.patch
30 eautoreconf
31 }
32
33 src_compile() {
34 econf \
35 --libdir=/usr/$(get_libdir)/blas/reference
36 emake LDFLAGS="${LDFLAGS}" || die "emake failed"
37 }
38
39 src_install() {
40 emake DESTDIR="${D}" install || die "emake install failed"
41 eselect blas add $(get_libdir) "${FILESDIR}"/eselect.blas.reference ${ESELECT_PROF}
42 }
43
44 pkg_postinst() {
45 local p=blas
46 local current_lib=$(eselect ${p} show | cut -d' ' -f2)
47 if [[ ${current_lib} == ${ESELECT_PROF} || -z ${current_lib} ]]; then
48 # work around eselect bug #189942
49 local configfile="${ROOT}"/etc/env.d/${p}/$(get_libdir)/config
50 [[ -e ${configfile} ]] && rm -f ${configfile}
51 eselect ${p} set ${ESELECT_PROF}
52 elog "${p} has been eselected to ${ESELECT_PROF}"
53 else
54 elog "Current eselected ${p} is ${current_lib}"
55 elog "To use ${p} ${ESELECT_PROF} implementation, you have to issue (as root):"
56 elog "\t eselect ${p} set ${ESELECT_PROF}"
57 fi
58 }

  ViewVC Help
Powered by ViewVC 1.1.20