aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2007-04-02 14:20:19 +0000
committerbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2007-04-02 14:20:19 +0000
commit46f5b7022ebfce51b7a7dab8e0c9d6aca419fb62 (patch)
tree3dc6ff7d313509befedd16bdbf46e0fbc097fc1e /sci-physics/cernlib
parentcleaning old versions of cernlib packages (diff)
downloadsci-46f5b7022ebfce51b7a7dab8e0c9d6aca419fb62.tar.gz
sci-46f5b7022ebfce51b7a7dab8e0c9d6aca419fb62.tar.bz2
sci-46f5b7022ebfce51b7a7dab8e0c9d6aca419fb62.zip
sci-physics/cernlib: version bump
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@535 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-physics/cernlib')
-rw-r--r--sci-physics/cernlib/Manifest9
-rw-r--r--sci-physics/cernlib/cernlib-2006.ebuild95
-rw-r--r--sci-physics/cernlib/files/digest-cernlib-20066
3 files changed, 110 insertions, 0 deletions
diff --git a/sci-physics/cernlib/Manifest b/sci-physics/cernlib/Manifest
index 9920603e8..31c801342 100644
--- a/sci-physics/cernlib/Manifest
+++ b/sci-physics/cernlib/Manifest
@@ -1,9 +1,15 @@
DIST cernlib_2005.dfsg-5.diff.gz 165656 RMD160 b18bcafe23b58ada7a68c6bd57b32cfa706f123b SHA1 a03ee117ec7fd3e84923eb1c1b75492a027264ef SHA256 0ecca8163c003c795833a33e893c2a4e18d74ca0e3c81a3706800c6e9af66feb
DIST cernlib_2005.dfsg.orig.tar.gz 6630738 RMD160 d1ae8cb2edb23c9e78fd621a04397b8986e6edc9 SHA1 d2f230ad45234123b269e4a855770a9814a1fff1 SHA256 67c5736312efec4969c22f071bbb1ba8f913baf2ba9a67b31a6972bd62960757
+DIST cernlib_2006.dfsg-1.diff.gz 164071 RMD160 2e3817e010399391d42a18aaa459211ef8056c26 SHA1 331a89c4ff1e438ab67da40aa5f8880f78a71914 SHA256 3f2bba276d1a9217dce1d9a08720152b145d44c295f994a5db01bc660f936c23
+DIST cernlib_2006.dfsg.orig.tar.gz 6152921 RMD160 349474eebc2e37c43ed552f0069bcafc2b13ba18 SHA1 3bf2f7d5a34c9fb7d629a08edb669b8714bc6249 SHA256 2e960ce2e85e50ebc476f2f1860a23a3a796537372b20a7b85e8f772d7611b22
EBUILD cernlib-2005-r1.ebuild 2340 RMD160 2f81f9b0d5b2ee1884a9a255c86dc5ee8f31c819 SHA1 0b8ef688c73c698520ff88ed832e5534c912bd1a SHA256 61621e47d371a36d818de4f7ac7edd9843ad304c6750d518a2c35892d1ad77fd
MD5 220620746ca5a52348f279810afa79a0 cernlib-2005-r1.ebuild 2340
RMD160 2f81f9b0d5b2ee1884a9a255c86dc5ee8f31c819 cernlib-2005-r1.ebuild 2340
SHA256 61621e47d371a36d818de4f7ac7edd9843ad304c6750d518a2c35892d1ad77fd cernlib-2005-r1.ebuild 2340
+EBUILD cernlib-2006.ebuild 2668 RMD160 e7b1f5d95180c94c4ef9b1cf13f4718b0134a673 SHA1 3c1887adc4d6f84353d77436fbc3dd222c293801 SHA256 ab207b2781620c7971b0d27a3b94b750aee4afde085e3119423ade1bb30892fb
+MD5 8a8964761a6445603fcdd8c83e852789 cernlib-2006.ebuild 2668
+RMD160 e7b1f5d95180c94c4ef9b1cf13f4718b0134a673 cernlib-2006.ebuild 2668
+SHA256 ab207b2781620c7971b0d27a3b94b750aee4afde085e3119423ade1bb30892fb cernlib-2006.ebuild 2668
MISC ChangeLog 499 RMD160 23be8787fdb5574f4612d7019634f95e231bc113 SHA1 1437aaa124a1fd662b6e2aa4d58abdb887cf129f SHA256 6cc427940a4ba57c1a6d4135ec30f4e2b4e7acaa0a432e7a018caf0a86df8b8e
MD5 7c98c4129645adfbe9550765acce553e ChangeLog 499
RMD160 23be8787fdb5574f4612d7019634f95e231bc113 ChangeLog 499
@@ -15,3 +21,6 @@ SHA256 9812f051c9ac5c19fd295cdf79d9ba9d799a7b5ebe6b10d4cf9428d1ebf4e32c metadata
MD5 3cb72cac86715d4b708ce5b335b05ad9 files/digest-cernlib-2005-r1 533
RMD160 ca79215b59b590de0c3c17fb45f0ac1268547207 files/digest-cernlib-2005-r1 533
SHA256 0f7ba8a1a5f2a565c13ffe8ddda1780374aa32c0ce6d38335c35e07afaefac56 files/digest-cernlib-2005-r1 533
+MD5 7563d9b1f2c4036b9043fda9a514fb31 files/digest-cernlib-2006 533
+RMD160 71e43d4d3aa215e151602439c8e18243bcf54a2d files/digest-cernlib-2006 533
+SHA256 67213fa6db999f58a7777ddfed31eb28a03dd879b8eedf890711360481b1113a files/digest-cernlib-2006 533
diff --git a/sci-physics/cernlib/cernlib-2006.ebuild b/sci-physics/cernlib/cernlib-2006.ebuild
new file mode 100644
index 000000000..08cdfdc23
--- /dev/null
+++ b/sci-physics/cernlib/cernlib-2006.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils multilib fortran
+
+DEB_PV="${PV}.dfsg"
+DEB_PR="1"
+
+DESCRIPTION="CERN program library for High Energy Physics"
+HOMEPAGE="http://wwwasd.web.cern.ch/wwwasd/cernlib"
+LICENSE="GPL-2 LGPL-2"
+SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_PV}.orig.tar.gz
+ mirror://debian/pool/main/c/${PN}/${PN}_${DEB_PV}-${DEB_PR}.diff.gz"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+DEPEND="virtual/motif
+ x11-misc/imake
+ app-admin/eselect-blas
+ virtual/lapack
+ dev-lang/cfortran
+ virtual/tetex"
+
+RESTRICT="test"
+
+S=${WORKDIR}/${PN}_${DEB_PV}.orig
+
+FORTRAN="gfortran g77 ifc"
+
+src_unpack() {
+ unpack ${A}
+
+ # apply the big debian patch
+ epatch "${PN}_${DEB_PV}-${DEB_PR}".diff || die "epatch failed"
+ mv ${PN}-2006.dfsg/debian "${S}"/
+ rm -rf ${PN}-2006.dfsg
+
+ cd "${S}"
+
+ # temporary fix for threading support (while we have buggy eselect)
+ if eselect blas show | grep -q threaded-atlas; then
+ einfo "Fixing threads linking for blas"
+ sed -i \
+ -e 's/$DEPS -lm/$DEPS -lm -lpthread/' \
+ -e 's/$DEPS -l$1 -lm/$DEPS -l$1 -lm -lpthread/' \
+ debian/add-ons/bin/cernlib.in || die "sed failed"
+ fi
+
+ # fix X11 library path and fortran stuff
+ sed -i \
+ -e "s:L/usr/X11R6/lib:L/usr/$(get_libdir)/X11:g" \
+ -e "s:XDIR=/usr/X11R6/lib:XDIR=/usr/$(get_libdir)/X11:g" \
+ -e "s:XDIR64=/usr/X11R6/lib:XDIR64=/usr/$(get_libdir)/X11:g" \
+ debian/add-ons/bin/cernlib.in || die "sed failed"
+
+ # fix some default paths
+ sed -i \
+ -e "s:/usr/local:/usr:g" \
+ -e "s:prefix)/lib:prefix)/$(get_libdir):" \
+ -e 's:$(prefix)/etc:/etc:' \
+ -e 's:$(prefix)/man:$(prefix)/share/man:' \
+ debian/add-ons/cernlib.mk || die "sed failed"
+
+ cp debian/add-ons/Makefile .
+ einfo "Applying Debian patches"
+ make \
+ DEB_BUILD_OPTIONS="${FORTRANC} nostrip" \
+ patch &> /dev/null || die "make patch failed"
+ # since we depend on cfortran, do not use the one from cernlib
+ # (adapted from $S/debian/rules)
+ mv -f src/include/cfortran/cfortran.h \
+ src/include/cfortran/cfortran.h.disabled
+}
+
+src_compile() {
+ make DEB_BUILD_OPTIONS="${FORTRANC} nostrip" \
+ || die "make failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ #einstall | die "einstall failed"
+ cd "${S}"/debian
+ docinto debian
+ dodoc changelog README.* deadpool.txt NEWS copyright
+ newdoc add-ons/README README.add-ons
+}
+
+pkg_postinst() {
+ elog "Gentoo cernlib is based on Debian's one:"
+ elog " - apply a significant amount of patches"
+ elog " - respects file system standards"
+ elog "Heavy cernlib users might want to check:"
+ elog "http://people.debian.org/~kmccarty/cernlib/"
+}
diff --git a/sci-physics/cernlib/files/digest-cernlib-2006 b/sci-physics/cernlib/files/digest-cernlib-2006
new file mode 100644
index 000000000..2fd460e33
--- /dev/null
+++ b/sci-physics/cernlib/files/digest-cernlib-2006
@@ -0,0 +1,6 @@
+MD5 51777e0bb52e104e3053615686f5a9be cernlib_2006.dfsg-1.diff.gz 164071
+RMD160 2e3817e010399391d42a18aaa459211ef8056c26 cernlib_2006.dfsg-1.diff.gz 164071
+SHA256 3f2bba276d1a9217dce1d9a08720152b145d44c295f994a5db01bc660f936c23 cernlib_2006.dfsg-1.diff.gz 164071
+MD5 757f06f37b9a1150cb918d6bc58fd775 cernlib_2006.dfsg.orig.tar.gz 6152921
+RMD160 349474eebc2e37c43ed552f0069bcafc2b13ba18 cernlib_2006.dfsg.orig.tar.gz 6152921
+SHA256 2e960ce2e85e50ebc476f2f1860a23a3a796537372b20a7b85e8f772d7611b22 cernlib_2006.dfsg.orig.tar.gz 6152921