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