diff options
author | Justin Lecher <jlec@gentoo.org> | 2013-02-27 06:53:32 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2013-02-27 06:53:32 +0000 |
commit | e13b5b6a2cd05cb2eb5927b08d802f073b90f5e0 (patch) | |
tree | 2cdb5de82825dfb14614789e3677bda93b29a3e6 /sci-libs/blas-reference | |
parent | Reintroduce mistakenly removed stable version. Thanks to Michael Sterrett <mr... (diff) | |
download | gentoo-2-e13b5b6a2cd05cb2eb5927b08d802f073b90f5e0.tar.gz gentoo-2-e13b5b6a2cd05cb2eb5927b08d802f073b90f5e0.tar.bz2 gentoo-2-e13b5b6a2cd05cb2eb5927b08d802f073b90f5e0.zip |
sci-libs/blas-reference: Add new version which only sets pc file with eselect
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)
Diffstat (limited to 'sci-libs/blas-reference')
-rw-r--r-- | sci-libs/blas-reference/ChangeLog | 9 | ||||
-rw-r--r-- | sci-libs/blas-reference/blas-reference-20070226-r3.ebuild | 70 | ||||
-rw-r--r-- | sci-libs/blas-reference/files/eselect.blas.reference-ng | 1 | ||||
-rw-r--r-- | sci-libs/blas-reference/metadata.xml | 4 |
4 files changed, 81 insertions, 3 deletions
diff --git a/sci-libs/blas-reference/ChangeLog b/sci-libs/blas-reference/ChangeLog index 993b20f5c52e..84b15407ceef 100644 --- a/sci-libs/blas-reference/ChangeLog +++ b/sci-libs/blas-reference/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-libs/blas-reference # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-reference/ChangeLog,v 1.59 2013/01/25 17:17:59 ottxor Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-reference/ChangeLog,v 1.60 2013/02/27 06:53:32 jlec Exp $ + +*blas-reference-20070226-r3 (27 Feb 2013) + + 27 Feb 2013; Justin Lecher <jlec@gentoo.org> + +blas-reference-20070226-r3.ebuild, +files/eselect.blas.reference-ng, + metadata.xml: + Add new version which only sets pc file with eselect 25 Jan 2013; Christoph Junghans <ottxor@gentoo.org> blas-reference-20070226-r2.ebuild: diff --git a/sci-libs/blas-reference/blas-reference-20070226-r3.ebuild b/sci-libs/blas-reference/blas-reference-20070226-r3.ebuild new file mode 100644 index 000000000000..2d70e4f6c932 --- /dev/null +++ b/sci-libs/blas-reference/blas-reference-20070226-r3.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-reference/blas-reference-20070226-r3.ebuild,v 1.1 2013/02/27 06:53:32 jlec Exp $ + +EAPI=3 + +inherit eutils fortran-2 autotools multilib flag-o-matic toolchain-funcs + +LAPACKPV="3.1.1" +LAPACKPN="lapack-lite" + +DESCRIPTION="Basic Linear Algebra Subprograms F77 reference implementations" +HOMEPAGE="http://www.netlib.org/blas/" +SRC_URI="http://www.netlib.org/lapack/${LAPACKPN}-${LAPACKPV}.tgz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +IUSE="doc" + +DEPEND="app-admin/eselect-blas" +RDEPEND="${DEPEND} + doc? ( app-doc/blas-docs )" + +S="${WORKDIR}/${LAPACKPN}-${LAPACKPV}" + +src_prepare() { + ESELECT_PROF=reference + epatch \ + "${FILESDIR}"/${P}-autotool.patch \ + "${FILESDIR}"/${P}-pkg-config.patch + eautoreconf + + cp "${FILESDIR}"/eselect.blas.reference-ng "${T}"/eselect.blas.reference || die + sed -i -e "s:/usr:${EPREFIX}/usr:" "${T}"/eselect.blas.reference || die + if [[ ${CHOST} == *-darwin* ]] ; then + sed -i -e 's/\.so\([\.0-9]\+\)\?/\1.dylib/g' \ + "${T}"/eselect.blas.reference || die + fi +} + +src_configure() { + econf \ + --libdir="${EPREFIX}"/usr/$(get_libdir)/blas/reference +} + +src_compile() { + emake LDFLAGS="${LDFLAGS}" || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + eselect blas add $(get_libdir) "${T}"/eselect.blas.reference ${ESELECT_PROF} +} + +pkg_postinst() { + local p=blas + local current_lib=$(eselect ${p} show | cut -d' ' -f2) + if [[ ${current_lib} == ${ESELECT_PROF} || -z ${current_lib} ]]; then + # work around eselect bug #189942 + local configfile="${EROOT}"/etc/env.d/${p}/$(get_libdir)/config + [[ -e ${configfile} ]] && rm -f ${configfile} + eselect ${p} set ${ESELECT_PROF} + elog "${p} has been eselected to ${ESELECT_PROF}" + else + elog "Current eselected ${p} is ${current_lib}" + elog "To use ${p} ${ESELECT_PROF} implementation, you have to issue (as root):" + elog "\t eselect ${p} set ${ESELECT_PROF}" + fi +} diff --git a/sci-libs/blas-reference/files/eselect.blas.reference-ng b/sci-libs/blas-reference/files/eselect.blas.reference-ng new file mode 100644 index 000000000000..840389479fe2 --- /dev/null +++ b/sci-libs/blas-reference/files/eselect.blas.reference-ng @@ -0,0 +1 @@ +../blas/reference/blas.pc /usr/@LIBDIR@/pkgconfig/blas.pc diff --git a/sci-libs/blas-reference/metadata.xml b/sci-libs/blas-reference/metadata.xml index 2ed3939585f1..6d6f67c0371c 100644 --- a/sci-libs/blas-reference/metadata.xml +++ b/sci-libs/blas-reference/metadata.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <herd>sci</herd> - <longdescription lang="en"> + <herd>sci</herd> + <longdescription lang="en"> The BLAS (Basic Linear Algebra Subprograms) are high quality "building block" routines for performing basic vector and matrix operations. Level 1 BLAS do vector-vector operations, Level 2 BLAS do matrix-vector operations, |