summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-02-27 06:55:49 +0000
committerJustin Lecher <jlec@gentoo.org>2013-02-27 06:55:49 +0000
commitcff0f87ad808eeeff53d9bc8216467bfca7179d4 (patch)
tree9adaf8c6eb5a8497e8b67e178ca330c055b6162b /sci-libs/lapack-reference
parentBump (diff)
downloadhistorical-cff0f87ad808eeeff53d9bc8216467bfca7179d4.tar.gz
historical-cff0f87ad808eeeff53d9bc8216467bfca7179d4.tar.bz2
historical-cff0f87ad808eeeff53d9bc8216467bfca7179d4.zip
sci-libs/lapack-reference: Add new version which only sets pc file with eselect
Package-Manager: portage-2.2.0_alpha163/cvs/Linux x86_64 Manifest-Sign-Key: 0x70EB7916
Diffstat (limited to 'sci-libs/lapack-reference')
-rw-r--r--sci-libs/lapack-reference/ChangeLog8
-rw-r--r--sci-libs/lapack-reference/Manifest12
-rw-r--r--sci-libs/lapack-reference/files/eselect.lapack.reference-ng1
-rw-r--r--sci-libs/lapack-reference/lapack-reference-3.2.1-r2.ebuild98
4 files changed, 113 insertions, 6 deletions
diff --git a/sci-libs/lapack-reference/ChangeLog b/sci-libs/lapack-reference/ChangeLog
index e67d862a83ff..61b2841d8ca4 100644
--- a/sci-libs/lapack-reference/ChangeLog
+++ b/sci-libs/lapack-reference/ChangeLog
@@ -1,6 +1,12 @@
# 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.67 2013/02/21 21:27:56 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/lapack-reference/ChangeLog,v 1.68 2013/02/27 06:55:48 jlec Exp $
+
+*lapack-reference-3.2.1-r2 (27 Feb 2013)
+
+ 27 Feb 2013; Justin Lecher <jlec@gentoo.org>
+ +lapack-reference-3.2.1-r2.ebuild, +files/eselect.lapack.reference-ng:
+ Add new version which only sets pc file with eselect
21 Feb 2013; Justin Lecher <jlec@gentoo.org>
lapack-reference-3.1.1-r1.ebuild, -lapack-reference-3.2.1.ebuild,
diff --git a/sci-libs/lapack-reference/Manifest b/sci-libs/lapack-reference/Manifest
index 6104d99ad085..d216d5ac0ffe 100644
--- a/sci-libs/lapack-reference/Manifest
+++ b/sci-libs/lapack-reference/Manifest
@@ -1,7 +1,8 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
+Hash: SHA256
AUX eselect.lapack.reference 237 SHA256 2a72a6a9b49ec944656e164842907ee76d878a6772a7d71c1cb196d8beb6fa13 SHA512 cd0b5c771e552d348ce87192583bed2dbf9f2c61cbaf512b006dd9da3b36d3f0c8ad24129e595f644fc0472f5e60e0c3c0964ec86f9ece1c0f00e942d2515936 WHIRLPOOL 102823a489c08259775505f7e67e41ca0b4dc7dcc50a6a67bcd79d3a0b166439d756659a56df4ee59518888ec68d106865a67aa96ef326478c5ec0c2e56c91f3
+AUX eselect.lapack.reference-ng 64 SHA256 bcdbc2401cdd3950d020da54cad65b5c3a9d0c1b5b8cd01f9e3afcbecb5d7eb5 SHA512 2095e0e9f57ebb116c736847df4b4509fabc66509099c6b53fde74223a49f90f35e37f9e261da6f737c51cae07e5f39dd17232c213a0d4a2416f94f9f4250108 WHIRLPOOL caa297fd37a0babe2b8e1bba1a21125bd19535a7bc179b4ad1c435f71b6e595f99fb7f7f9380f3234f34db350f114faa06d0cd98338854a160e4302e85173553
AUX lapack-reference-3.1.1-test-fix.patch 2120 SHA256 40c514db2bf9a08ce9630e53058ef3d863fd981c774987b233f6bdce3601a6f8 SHA512 8f68b0baa5ae73537f7d6628ec4189eb4bed9f5b503de6c1ea75468ff53af907f3c31ea06996474e8071dcf3634416cd908d2c2c9e2ba6d1773c41bf17cb1e7e WHIRLPOOL cc039f49e4399bbf2dcf4daf6f798c91bb58debd03ed4774251b5ac81e2231f89c599fe8b12aa877e9e7da22f605420be92f68bb192733427b6440272a6345bf
AUX lapack-reference-3.2.1-parallel-make.patch 4904 SHA256 e730190be4361ff5e0c20c80ad8fb250d072684c16f57597fe9809a9e14e0b3e SHA512 2d42f14ddfd78f9f1566e3f31c03b74fe41f6b93a12156554b884b82496f6777781290167597ac220c3fff89edd055952a208c49835a69f745d728fcef605a78 WHIRLPOOL d05d62750a20e7e2ef6e5e908da720c19ee1185515f5353721514305865ef99da4b6005cfc6efb7e612db14c38f1e8f572903e35c554f6bc8f2f7a872651097e
DIST lapack-3.2.1.tgz 4792502 SHA256 5825f83971157001fd4235514afe8ff5fc16e1c06b2e872e442c242efd6c166d SHA512 a89b88540f8e5b05b7c58e8e301a5068729ceb35fcb2143edfff1644458ff1a375e5185492cf116b50409fe0c17b51c253a2987f4df83e9f9c3968a4b77e5d97 WHIRLPOOL f5c4be0a4e595ea5276a4878ab6e3578bb621be72142b6bf6cb15fc45bd52558c89b04a7ee0d1558b4f0aa9d1cff9cad43667f2251762dc8ad6aa5e687536149
@@ -10,12 +11,13 @@ DIST lapack-reference-3.1.1-autotools.patch.bz2 7233 SHA256 63e2c0b64118ca20aed3
DIST lapack-reference-3.2.1-autotools.patch.bz2 13338 SHA256 de2ab4ea9723f549c77b38d932e5ddb55b7b5583b0050e527505210460dcdf76 SHA512 957e8c7646a0d6ade9c0dfdaf2aa665a01f932dfda376ba1db164106fb174793e6504cdbed7daf158f23bb69502937963cb2e2d45ac720980d3832f6fc0fedbd WHIRLPOOL 8872222a124cd8593c8441034b6fd47463193e03bdebafc8b2790ebc73f49eb811762dc9cd98949bda0af7869f9d12b9ebbfc23457b5393d88c00a013c4f419d
EBUILD lapack-reference-3.1.1-r1.ebuild 2698 SHA256 d4b8c2e35d0e859e1724fefbe28aebcad4b736b71ef8316d09f8b848f7bc884e SHA512 b77125e963d1e028a75b94565996c3c6d3c37cd698184f93cac0ec9f07f9c10d11acba93ed91eb494cce2119dd847fc8c21811cc1f03075f313aa4c7d7a2e4d2 WHIRLPOOL d7b843a200bc61efeb92c7429bc0a2ff3e8f7b59b4bbfd983e16c868d2635c419f327533162ef6ccf5ebf4a85d6dbcc77ded19aa94ed1e2463823ec48ff0e8cd
EBUILD lapack-reference-3.2.1-r1.ebuild 3040 SHA256 cc78321aeb6adfbe2b9d29d4c85671b3ec6b01e566a50080af0fdd8fc9586ce0 SHA512 636cccf29e0c1efde02de4e1d5bafc7a67146845c115ff37ecc906dee5d4b32ceda22a1f24c41a4d337bc419328b1f3d314dcad8b9985b51a4d5b2397494a4ca WHIRLPOOL 70bc6e28904579ce012f0ce6f78f378e72eb16473abd07b78fcde3265dddcc95e7c0f5a622a485e2a16c757263c96a3856388f20f5a02f5c3c7655c2e4834f87
-MISC ChangeLog 11704 SHA256 bbc4c33f258b77db1807625bb40e0bda845b82346770ac7795eb530c083fb9bb SHA512 a210229fdfa3e577f44552bd55a59969f80a0168a3cdb7242d600404ed3eaefdf30985a0d1280992764124e9fcac6e41b0c8e5bce9a2a14f252902c880d9e7bf WHIRLPOOL 500a4aa22d7d3870b8ed826df0348f69a1406a3471408fb730db52a3c507235ba64dba480101449ece93d36baf9bc06b80bde529004c1e64ccd689610a2bb0e0
+EBUILD lapack-reference-3.2.1-r2.ebuild 2920 SHA256 830acbe8afc968301bfc8ac5c04d3ca97a5d91f0a629fe5834e3e17cc10efd2f SHA512 8625d53fcc9fa509b7fbc626d97e302a7eda97fea75c15a5d01aaed81bc506e479c3e5e61bd86c3774dbd833ad7ac26854ff590e9da85a91b732a24cc735494c WHIRLPOOL 72dbb699b7fa5748b40b446c6740fb9cbcd1263b15633dfa81f97c2456fda7493abdacdf8c556e7598997bdd9d3e954d917e7ff7d5dba0efab7e5ae76a8718fc
+MISC ChangeLog 11922 SHA256 c8888d1896b29c44f26d2a23bb9e98d031a5e6fdb095356a35bec590d035ce9e SHA512 c442fdca03d66de1be0dd48fb5ad6d94313189a0c7cc3339709059fca8b9301ec1d90d72df079525b00e1fb6ae78fb266d8be92de405f4941c72e6af252584aa WHIRLPOOL 412b6fe6eb6530a720f681d292bb46644833956f68baf16f74497b3f28645901857bd746a82280359d047a88ef905eba3491ac3138cfbeae444267cd5c700d13
MISC metadata.xml 598 SHA256 e291e54118fa577845be28694c5668ad3264ee2b619f190d5646b04dc55707f4 SHA512 323804442122e0f2c60e51875ff8381f3938016567878dd7b2462ecfbe8ea25e3424c786ad11719cb561c6fe64bd400491bc65f2bd8907ad6f6e1774c862ef5f WHIRLPOOL ce8ca53a5f9a46536ca1da4d009ccbe58239efd3f29d5dd005ba5389e7451cdfdf344fe88b11bacd3b38def421bef154258466abddfc1ff72ae7b4b6d7e2ffab
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
-iEYEAREKAAYFAlEmkYoACgkQgAnW8HDreRbgiACfZA3JM41U+UEwa0qL3MHFdipf
-JMoAoKMXJI2TgCPijC7dOfW6lRSTG70z
-=oTZh
+iEYEAREIAAYFAlEtrfUACgkQgAnW8HDreRa6cwCeOVN4HG2psy5oZ3irBJf55PfD
+Dn8An1WyLfIxvs8XQsOuBYBDeH+KKqrJ
+=4AEQ
-----END PGP SIGNATURE-----
diff --git a/sci-libs/lapack-reference/files/eselect.lapack.reference-ng b/sci-libs/lapack-reference/files/eselect.lapack.reference-ng
new file mode 100644
index 000000000000..11231ea71286
--- /dev/null
+++ b/sci-libs/lapack-reference/files/eselect.lapack.reference-ng
@@ -0,0 +1 @@
+../lapack/reference/lapack.pc /usr/@LIBDIR@/pkgconfig/lapack.pc
diff --git a/sci-libs/lapack-reference/lapack-reference-3.2.1-r2.ebuild b/sci-libs/lapack-reference/lapack-reference-3.2.1-r2.ebuild
new file mode 100644
index 000000000000..1ec3503d5765
--- /dev/null
+++ b/sci-libs/lapack-reference/lapack-reference-3.2.1-r2.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-r2.ebuild,v 1.1 2013/02/27 06:55:48 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=""
+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} $($(tc-getPKG_CONFIG) --cflags blas):" \
+ -e "s:LOADOPTS =:LOADOPTS = ${LDFLAGS} $($(tc-getPKG_CONFIG) --cflags blas):" \
+ -e "s:../../blas\$(PLAT).a:$($(tc-getPKG_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-ng "${T}"/eselect.lapack.reference || die
+ 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="$($(tc-getPKG_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
+}