diff options
author | 2013-02-01 07:08:09 +0000 | |
---|---|---|
committer | 2013-02-01 07:08:09 +0000 | |
commit | 39bd06d6842c76351ab7c9d1cb39ce6a26f5943b (patch) | |
tree | 29fe736f07d6dceb5628dca1512fa700fd1a0aae /sci-libs | |
parent | Version bump. (diff) | |
download | gentoo-2-39bd06d6842c76351ab7c9d1cb39ce6a26f5943b.tar.gz gentoo-2-39bd06d6842c76351ab7c9d1cb39ce6a26f5943b.tar.bz2 gentoo-2-39bd06d6842c76351ab7c9d1cb39ce6a26f5943b.zip |
sci-libs/lapack-reference: Undelete the package, #454918
(Portage version: 2.2.0_alpha161/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 70EB7916)
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/lapack-reference/ChangeLog | 303 | ||||
-rw-r--r-- | sci-libs/lapack-reference/lapack-reference-3.1.1-r1.ebuild | 91 | ||||
-rw-r--r-- | sci-libs/lapack-reference/lapack-reference-3.2.1-r1.ebuild | 98 | ||||
-rw-r--r-- | sci-libs/lapack-reference/lapack-reference-3.2.1.ebuild | 92 | ||||
-rw-r--r-- | sci-libs/lapack-reference/metadata.xml | 13 |
5 files changed, 597 insertions, 0 deletions
diff --git a/sci-libs/lapack-reference/ChangeLog b/sci-libs/lapack-reference/ChangeLog new file mode 100644 index 000000000000..e892eb5ec573 --- /dev/null +++ b/sci-libs/lapack-reference/ChangeLog @@ -0,0 +1,303 @@ +# ChangeLog for sci-libs/lapack-reference +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/lapack-reference/ChangeLog,v 1.64 2013/02/01 07:08:09 jlec Exp $ + + 01 Feb 2013; Justin Lecher <jlec@gentoo.org> + +lapack-reference-3.1.1-r1.ebuild, +lapack-reference-3.2.1.ebuild, + +lapack-reference-3.2.1-r1.ebuild, +metadata.xml: + Undelete the package, #454918 + + 26 Jan 2013; Christoph Junghans <ottxor@gentoo.org> + lapack-reference-3.2.1-r1.ebuild: + added ~arm tested by me + + 19 Oct 2012; Justin Lecher <jlec@gentoo.org> + lapack-reference-3.1.1-r1.ebuild, lapack-reference-3.2.1.ebuild, + lapack-reference-3.2.1-r1.ebuild, metadata.xml: + Remove virtual/fortran and always call fortran-2_pkg_setup as intend by the + updated fortran-2.eclass + + 12 May 2012; Alexis Ballier <aballier@gentoo.org> + lapack-reference-3.2.1-r1.ebuild: + keyword ~amd64-fbsd + + 04 May 2012; Jeff Horelick <jdhore@gentoo.org> + lapack-reference-3.1.1-r1.ebuild, lapack-reference-3.2.1.ebuild, + lapack-reference-3.2.1-r1.ebuild: + dev-util/pkgconfig -> virtual/pkgconfig + + 21 Jun 2011; Justin Lecher <jlec@gentoo.org> + lapack-reference-3.1.1-r1.ebuild, lapack-reference-3.2.1.ebuild, + lapack-reference-3.2.1-r1.ebuild: + Add dependency on virtual/fortran + + 21 Jun 2011; Justin Lecher <jlec@gentoo.org> + lapack-reference-3.1.1-r1.ebuild, lapack-reference-3.2.1.ebuild, + lapack-reference-3.2.1-r1.ebuild: + Remove unnecessary dep on virtual/fortran + + 21 Jun 2011; Justin Lecher <jlec@gentoo.org> + lapack-reference-3.1.1-r1.ebuild, lapack-reference-3.2.1.ebuild, + lapack-reference-3.2.1-r1.ebuild: + Added fortran-2.eclass support + + 28 May 2011; Justin Lecher <jlec@gentoo.org> + lapack-reference-3.1.1-r1.ebuild, lapack-reference-3.2.1.ebuild, + lapack-reference-3.2.1-r1.ebuild: + Add virtual/fortran dependency + + 17 Dec 2010; Justin Lecher <jlec@gentoo.org> + lapack-reference-3.1.1-r1.ebuild, lapack-reference-3.2.1.ebuild, + lapack-reference-3.2.1-r1.ebuild: + Fix for bug 348935 + + 17 Dec 2010; Justin Lecher <jlec@gentoo.org> + lapack-reference-3.1.1-r1.ebuild, lapack-reference-3.2.1.ebuild, + lapack-reference-3.2.1-r1.ebuild: + Fix for fortran.eclass removal + + 16 Dec 2010; Justin Lecher <jlec@gentoo.org> + lapack-reference-3.1.1-r1.ebuild, lapack-reference-3.2.1.ebuild, + lapack-reference-3.2.1-r1.ebuild: + Removal of fortran.eclass, #348851 + + 02 Oct 2010; Fabian Groffen <grobian@gentoo.org> + lapack-reference-3.2.1-r1.ebuild: + Marked ~x64-macos, bug #333981 + +*lapack-reference-3.2.1-r1 (07 Mar 2010) + + 07 Mar 2010; Justin Lecher (jlec) <jlec@gentoo.org> + +lapack-reference-3.2.1-r1.ebuild: + Moved to EAPI=3 for PREFIX support, imported prefix patches from overlay, + keyworded as in overlay + + 12 Dec 2009; Markus Dittrich <markusle@gentoo.org> + lapack-reference-3.2.1.ebuild, + +files/lapack-reference-3.2.1-parallel-make.patch: + Fixed parallel make failures in tests (see bug #295964). + +*lapack-reference-3.2.1 (13 Jul 2009) + + 13 Jul 2009; Markus Dittrich <markusle@gentoo.org> + +lapack-reference-3.2.1.ebuild: + Version bump. Since upstream currently only provides an unversioned tarball + we host a properly versioned one on our mirrors for the time being. + + 19 Dec 2007; Justin Bronder <jsbronder@gentoo.org> + lapack-reference-3.1.1-r1.ebuild: + Move ESELECT_PROF so binary packages work. + + 21 Nov 2007; Sébastien Fabbro <bicatali@gentoo.org> + -files/lapack-reference-3.1.0-autotool.patch, + -files/lapack-reference-3.1.1-autotool.patch, -files/eselect-reference, + -lapack-reference-3.1.0.ebuild, -lapack-reference-3.1.1.ebuild, + lapack-reference-3.1.1-r1.ebuild: + Removed old versions, switch to new style virtual + + 20 Nov 2007; Joe Peterson <lavajoe@gentoo.org> + lapack-reference-3.1.1-r1.ebuild: + Add ~x86-fbsd keyword (bug #189738) + + 16 Nov 2007; nixnut <nixnut@gentoo.org> lapack-reference-3.1.1-r1.ebuild: + Stable on ppc wrt bug 189738 + + 14 Nov 2007; Sébastien Fabbro <bicatali@gentoo.org> + lapack-reference-3.1.1-r1.ebuild: + amd64 stable wrt #189738, with kingtaco's green light. + + 29 Oct 2007; Raúl Porcel <armin76@gentoo.org> + lapack-reference-3.1.1-r1.ebuild: + alpha stable wrt #189738 + + 21 Oct 2007; nixnut <nixnut@gentoo.org> lapack-reference-3.1.1-r1.ebuild: + Added ~ppc + + 11 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org> + lapack-reference-3.1.1-r1.ebuild: + fixed lib->get_libdir for eselect bug workaround + + 10 Oct 2007; Sébastien Fabbro <bicatali@gentoo.org> + -files/lapack-reference-3.0-autotool.patch, -files/f77-reference, + -lapack-reference-3.0.ebuild, -lapack-reference-3.0-r1.ebuild, + lapack-reference-3.1.1-r1.ebuild: + Removed old versions, workaround for eselect bug #189942, cleanups. + + 08 Oct 2007; Markus Rothe <corsair@gentoo.org> + lapack-reference-3.1.1-r1.ebuild: + Stable on ppc64; bug #189738 + + 27 Sep 2007; Raúl Porcel <armin76@gentoo.org> + lapack-reference-3.1.1-r1.ebuild: + ia64/sparc stable wrt #189738 + + 13 Sep 2007; Christian Faulhammer <opfer@gentoo.org> + lapack-reference-3.1.1-r1.ebuild: + stable x86, bug 189738 + + 10 Sep 2007; Jeroen Roovers <jer@gentoo.org> + lapack-reference-3.1.1-r1.ebuild: + Stable for HPPA (bug #189738). + +*lapack-reference-3.1.1-r1 (21 Aug 2007) + + 21 Aug 2007; Sébastien Fabbro <bicatali@gentoo.org> + +files/lapack-reference-3.1.1-autotools.patch, + +files/eselect.lapack.reference, metadata.xml, + +lapack-reference-3.1.1-r1.ebuild: + New autotools patch to install pkg-config file and some cleanup. New eselect + file to add pkg-config. Added doc use flag to install generic docs, now + ready for new virtual style. Added longdescription in metadata.xml. + General cleanup. + + 25 Jul 2007; Markus Dittrich <markusle@gentoo.org> + +files/lapack-reference-3.1.1-test-fix.patch, + lapack-reference-3.1.1.ebuild: + Added patch to disable testing of LS drivers since they hang for + some yet to be determined reason. + + 25 Jul 2007; Markus Dittrich <markusle@gentoo.org> + files/lapack-reference-3.1.1-autotool.patch: + Fixed issues due to missing ETIME intrinsic in >=gcc-4.2. + + 14 Jul 2007; Steve Arnold <nerdboy@gentoo.org> + lapack-reference-3.1.0.ebuild: + Added last multilib fix and marked stable for amd64 (see bug #171784). I + still haven't tracked down the test issue; google reveals almost nothing. + It seems to be rare and only occurs on 64-bit platforms. Reference: + https://icl.cs.utk.edu/lapack-forum/viewtopic.php?t=299 + + 25 Jun 2007; Raúl Porcel <armin76@gentoo.org> + lapack-reference-3.1.1.ebuild: + Add ~alpha wrt #159002 + + 07 Jun 2007; Joe Peterson <lavajoe@gentoo.org> + lapack-reference-3.1.1.ebuild: + Add ~x86-fbsd keyword + + 24 Mar 2007; nixnut <nixnut@gentoo.org> lapack-reference-3.1.0.ebuild: + Stable on ppc wrt bug 171784 + + 24 Mar 2007; Markus Rothe <corsair@gentoo.org> + lapack-reference-3.1.0.ebuild: + Stable on ppc64; bug #171784 + + 23 Mar 2007; Christian Faulhammer <opfer@gentoo.org> + lapack-reference-3.1.0.ebuild: + stable x86, bug 171784 + + 22 Mar 2007; Ferris McCormick <fmccor@gentoo.org> + lapack-reference-3.1.0.ebuild: + Sparc stable --- Bug #171784 --- builds, runs all tests successfully, and + installs as expected. + + 21 Mar 2007; Markus Dittrich <markusle@gentoo.org> + files/lapack-reference-3.1.0-autotool.patch: + Small fix to resolve as-needed issues. + + 13 Mar 2007; Danny van Dyk <kugelfang@gentoo.org> + lapack-reference-3.0.ebuild: + QA: which -> type -P + +*lapack-reference-3.1.1 (08 Mar 2007) + + 08 Mar 2007; Markus Dittrich <markusle@gentoo.org> + +files/lapack-reference-3.1.1-autotool.patch, + -lapack-reference-3.0-r2.ebuild, -lapack-reference-3.0-r3.ebuild, + -lapack-reference-3.0-r4.ebuild, +lapack-reference-3.1.1.ebuild: + Version bump and removed obsolete versions. + +*lapack-reference-3.1.0 (04 Feb 2007) + + 04 Feb 2007; Markus Dittrich <markusle@gentoo.org> + +files/lapack-reference-3.1.0-autotool.patch, + +lapack-reference-3.1.0.ebuild: + Version bump. Ebuild now allows library checks via lapack's + test-routines. Thanks much to Adam Piątyszek + <ediap@et.put.poznan.pl> for his ebuild and patches + (this fixes bug #157410). + + 23 Jan 2007; Markus Dittrich <markusle@gentoo.org> + lapack-reference-3.0.ebuild, lapack-reference-3.0-r1.ebuild, + lapack-reference-3.0-r2.ebuild, lapack-reference-3.0-r3.ebuild, + lapack-reference-3.0-r4.ebuild: + Versioned the source tarballs according to the new upstream + naming convention (see bug #162667). + + 01 Nov 2006; Donnie Berkholz <dberkholz@gentoo.org>; ChangeLog: + Update for my nick change spyderous -> dberkholz. + + 24 Oct 2006; Joshua Jackson <tsunam@gentoo.org> + lapack-reference-3.0-r1.ebuild: + Stable x86; bug #137033 + + 11 Sep 2006; Ferris McCormick <fmccor@gentoo.org> + lapack-reference-3.0-r4.ebuild: + Add ~sparc keyword for completeness with other -reference packages. Builds as + expected. + + 25 Aug 2006; Donnie Berkholz <dberkholz@gentoo.org>; + +files/eselect-reference: + Add eselect symlink maps, reported by Markus Dittrich. + + 17 Aug 2006; Donnie Berkholz <dberkholz@gentoo.org>; + lapack-reference-3.0-r4.ebuild: + Note that configuration now uses eselect rather than lapack-config. + +*lapack-reference-3.0-r4 (03 Jul 2006) + + 03 Jul 2006; Donnie Berkholz <dberkholz@gentoo.org>; + +lapack-reference-3.0-r4.ebuild: + Bumps to switch to new eselect modules. + + 18 Jun 2006; Markus Rothe <corsair@gentoo.org> + lapack-reference-3.0-r3.ebuild: + Added ~ppc64; bug #137033 + +*lapack-reference-3.0-r3 (29 May 2006) + + 29 May 2006; Donnie Berkholz <dberkholz@gentoo.org>; + +files/lapack-reference-3.0-autotool.patch, + +lapack-reference-3.0-r3.ebuild: + Bump to autotool the package, which makes the build work much better in + parallel and with gcc4. Thanks to Adam Piątyszek for catching an initial + problem; a couple of files cannot be compiled with optimization. + + 15 May 2006; Donnie Berkholz <dberkholz@gentoo.org>; + lapack-reference-3.0-r2.ebuild: + Keyword ~ppc. + +*lapack-reference-3.0-r2 (16 Nov 2005) + + 16 Nov 2005; Markus Dittrich <markusle@gentoo.org> + +lapack-reference-3.0-r2.ebuild: + Use libtool for linking shared libraries when compiling with ifc. + This closes bug #112410 + +*lapack-reference-3.0-r1 (13 Nov 2005) + + 13 Nov 2005; Olivier Fisette <ribosome@gentoo.org> + +lapack-reference-3.0-r1.ebuild: + Migrated to fortran.eclass (bug #65950). + + 22 Apr 2005; Danny van Dyk <kugelfang@gentoo.org> + lapack-reference-3.0.ebuild: + Marked stable on amd64. + +*lapack-reference-3.0 (29 Dec 2004) + + 29 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml, + +files/f77-reference, +lapack-reference-3.0.ebuild: + Moved from app-sci/lapack-reference to sci-libs/lapack-reference. + + 06 Sep 2004; Ciaran McCreesh <ciaranm@gentoo.org> + lapack-reference-3.0.ebuild: + Switch to use epause and ebeep, bug #62950 + + 18 Jun 2004; Aron Griffis <agriffis@gentoo.org> lapack-reference-3.0.ebuild: + Fix use invocation + + 14 Jun 2004; George Shapovalov <george@gentoo.org> lapack-reference-3.0.ebuild, files/{digest-lapack-reference-3.0,f77-reference} : + initial release (#30463) + Full LAPACK implementation using the netlib reference implementation + ebuild submitted by Derek Dolney <dolney@astro.upenn.edu> diff --git a/sci-libs/lapack-reference/lapack-reference-3.1.1-r1.ebuild b/sci-libs/lapack-reference/lapack-reference-3.1.1-r1.ebuild new file mode 100644 index 000000000000..0c430eb62c1f --- /dev/null +++ b/sci-libs/lapack-reference/lapack-reference-3.1.1-r1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/lapack-reference/lapack-reference-3.1.1-r1.ebuild,v 1.32 2013/02/01 07:08:09 jlec Exp $ + +inherit autotools eutils fortran-2 flag-o-matic multilib toolchain-funcs + +MyPN="${PN/-reference/}" + +DESCRIPTION="FORTRAN reference implementation of LAPACK Linear Algebra PACKage" +HOMEPAGE="http://www.netlib.org/lapack/index.html" +SRC_URI=" + http://www.netlib.org/lapack/${MyPN}-lite-${PV}.tgz + mirror://gentoo/${P}-autotools.patch.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 s390 sparc x86 ~x86-fbsd" +IUSE="doc" + +RDEPEND=" + app-admin/eselect-lapack + virtual/blas" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/lapack-docs )" + +S="${WORKDIR}/${MyPN}-lite-${PV}" + +pkg_setup() { + fortran-2_pkg_setup + if [[ $(tc-getFC) =~ if ]]; then + ewarn "Using Intel Fortran at your own risk" + export LDFLAGS="$(raw-ldflags)" + export NOOPT_FFLAGS=-O + fi + ESELECT_PROF=reference +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${WORKDIR}"/${P}-autotools.patch + epatch "${FILESDIR}"/${P}-test-fix.patch + eautoreconf + + # set up the testing routines + sed -e "s:g77:$(tc-getFC):" \ + -e "s:-funroll-all-loops -O3:${FFLAGS} $(pkg-config --cflags blas):" \ + -e "s:LOADOPTS =:LOADOPTS = ${LDFLAGS} $(pkg-config --cflags blas):" \ + -e "s:../../blas\$(PLAT).a:$(pkg-config --libs blas):" \ + -e "s:lapack\$(PLAT).a:SRC/.libs/liblapack.a:" \ + make.inc.example > make.inc \ + || die "Failed to set up make.inc" +} + +src_compile() { + econf \ + --libdir="/usr/$(get_libdir)/lapack/reference" \ + --with-blas="$(pkg-config --libs blas)" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc README || die "dodoc failed" + eselect lapack add $(get_libdir) "${FILESDIR}"/eselect.lapack.reference ${ESELECT_PROF} +} + +src_test() { + cd "${S}"/TESTING/MATGEN + emake || die "Failed to create tmglib.a" + cd "${S}"/TESTING + emake || die "lapack-reference tests failed." +} + +pkg_postinst() { + local p=lapack + 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="${ROOT}"/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/lapack-reference/lapack-reference-3.2.1-r1.ebuild b/sci-libs/lapack-reference/lapack-reference-3.2.1-r1.ebuild new file mode 100644 index 000000000000..6ff697702342 --- /dev/null +++ b/sci-libs/lapack-reference/lapack-reference-3.2.1-r1.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/lapack-reference/lapack-reference-3.2.1-r1.ebuild,v 1.16 2013/02/01 07:08:09 jlec Exp $ + +EAPI=3 + +inherit autotools eutils fortran-2 flag-o-matic multilib toolchain-funcs + +MyPN="${PN/-reference/}" +PATCH_V="3.2.1" + +DESCRIPTION="FORTRAN reference implementation of LAPACK Linear Algebra PACKage" +HOMEPAGE="http://www.netlib.org/lapack/index.html" +SRC_URI=" + mirror://gentoo/${MyPN}-${PV}.tgz + mirror://gentoo/${PN}-${PATCH_V}-autotools.patch.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="doc" + +RDEPEND=" + app-admin/eselect-lapack + virtual/blas" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/lapack-docs )" + +S="${WORKDIR}/${MyPN}-${PV}" + +pkg_setup() { + fortran-2_pkg_setup + if [[ $(tc-getFC) =~ if ]]; then + ewarn "Using Intel Fortran at your own risk" + export LDFLAGS="$(raw-ldflags)" + export NOOPT_FFLAGS=-O + fi + ESELECT_PROF=reference +} + +src_prepare() { + epatch "${WORKDIR}"/${PN}-${PATCH_V}-autotools.patch + epatch "${FILESDIR}"/${P}-parallel-make.patch + eautoreconf + + # set up the testing routines + sed -e "s:g77:$(tc-getFC):" \ + -e "s:-funroll-all-loops -O3:${FFLAGS} $(pkg-config --cflags blas):" \ + -e "s:LOADOPTS =:LOADOPTS = ${LDFLAGS} $(pkg-config --cflags blas):" \ + -e "s:../../blas\$(PLAT).a:$(pkg-config --libs blas):" \ + -e "s:lapack\$(PLAT).a:SRC/.libs/liblapack.a:" \ + make.inc.example > make.inc \ + || die "Failed to set up make.inc" + + cp "${FILESDIR}"/eselect.lapack.reference "${T}"/ + sed -i -e "s:/usr:${EPREFIX}/usr:" "${T}"/eselect.lapack.reference || die + if [[ ${CHOST} == *-darwin* ]] ; then + sed -i -e 's/\.so\([\.0-9]\+\)\?/\1.dylib/g' \ + "${T}"/eselect.lapack.reference || die + fi +} + +src_configure() { + econf \ + --libdir="${EPREFIX}/usr/$(get_libdir)/lapack/reference" \ + --with-blas="$(pkg-config --libs blas)" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc README || die "dodoc failed" + eselect lapack add $(get_libdir) "${T}"/eselect.lapack.reference ${ESELECT_PROF} +} + +src_test() { + cd "${S}"/TESTING/MATGEN + emake || die "Failed to create tmglib.a" + cd "${S}"/TESTING + emake || die "lapack-reference tests failed." +} + +pkg_postinst() { + local p=lapack + 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/lapack-reference/lapack-reference-3.2.1.ebuild b/sci-libs/lapack-reference/lapack-reference-3.2.1.ebuild new file mode 100644 index 000000000000..4d5fe8b48e8a --- /dev/null +++ b/sci-libs/lapack-reference/lapack-reference-3.2.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/lapack-reference/lapack-reference-3.2.1.ebuild,v 1.14 2013/02/01 07:08:09 jlec Exp $ + +inherit autotools eutils fortran-2 flag-o-matic multilib toolchain-funcs + +MyPN="${PN/-reference/}" +PATCH_V="3.2.1" + +DESCRIPTION="FORTRAN reference implementation of LAPACK Linear Algebra PACKage" +HOMEPAGE="http://www.netlib.org/lapack/index.html" +SRC_URI=" + mirror://gentoo/${MyPN}-${PV}.tgz + mirror://gentoo/${PN}-${PATCH_V}-autotools.patch.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd" +IUSE="doc" + +RDEPEND=" + app-admin/eselect-lapack + virtual/blas" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig + doc? ( app-doc/lapack-docs )" + +S="${WORKDIR}/${MyPN}-${PV}" + +pkg_setup() { + fortran-2_pkg_setup + if [[ $(tc-getFC) =~ if ]]; then + ewarn "Using Intel Fortran at your own risk" + export LDFLAGS="$(raw-ldflags)" + export NOOPT_FFLAGS=-O + fi + ESELECT_PROF=reference +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${WORKDIR}"/${PN}-${PATCH_V}-autotools.patch + epatch "${FILESDIR}"/${P}-parallel-make.patch + eautoreconf + + # set up the testing routines + sed -e "s:g77:$(tc-getFC):" \ + -e "s:-funroll-all-loops -O3:${FFLAGS} $(pkg-config --cflags blas):" \ + -e "s:LOADOPTS =:LOADOPTS = ${LDFLAGS} $(pkg-config --cflags blas):" \ + -e "s:../../blas\$(PLAT).a:$(pkg-config --libs blas):" \ + -e "s:lapack\$(PLAT).a:SRC/.libs/liblapack.a:" \ + make.inc.example > make.inc \ + || die "Failed to set up make.inc" +} + +src_compile() { + econf \ + --libdir="/usr/$(get_libdir)/lapack/reference" \ + --with-blas="$(pkg-config --libs blas)" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc README || die "dodoc failed" + eselect lapack add $(get_libdir) "${FILESDIR}"/eselect.lapack.reference ${ESELECT_PROF} +} + +src_test() { + cd "${S}"/TESTING/MATGEN + emake || die "Failed to create tmglib.a" + cd "${S}"/TESTING + emake || die "lapack-reference tests failed." +} + +pkg_postinst() { + local p=lapack + 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="${ROOT}"/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/lapack-reference/metadata.xml b/sci-libs/lapack-reference/metadata.xml new file mode 100644 index 000000000000..41e8160d30cf --- /dev/null +++ b/sci-libs/lapack-reference/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci</herd> + <longdescription lang="en"> +LAPACK is a comprehensive library that does linear algebra +operations including matrix inversions, least squared solutions to +linear sets of equations, eigenvector analysis, singular value +decomposition, etc. It is a very comprehensive and reputable package +that has found extensive use in the scientific community. +This package installs the reference FORTRAN 77 implementation from Netlib. +</longdescription> +</pkgmetadata> |