summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2007-08-24 21:31:50 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2007-08-24 21:31:50 +0000
commit2360ee1d1e0a8e193a2125a633a6dee37bc9a8ba (patch)
tree0e6890defdfb26e866e2d34da5c8d558a07d7ef3 /sci-physics/cernlib
parentarm/sh stable (diff)
downloadgentoo-2-2360ee1d1e0a8e193a2125a633a6dee37bc9a8ba.tar.gz
gentoo-2-2360ee1d1e0a8e193a2125a633a6dee37bc9a8ba.tar.bz2
gentoo-2-2360ee1d1e0a8e193a2125a633a6dee37bc9a8ba.zip
Initial import. Closes bug #65708
(Portage version: 2.1.2.12)
Diffstat (limited to 'sci-physics/cernlib')
-rw-r--r--sci-physics/cernlib/ChangeLog10
-rw-r--r--sci-physics/cernlib/Manifest17
-rw-r--r--sci-physics/cernlib/cernlib-2006.ebuild117
-rw-r--r--sci-physics/cernlib/files/digest-cernlib-20066
-rw-r--r--sci-physics/cernlib/metadata.xml14
5 files changed, 164 insertions, 0 deletions
diff --git a/sci-physics/cernlib/ChangeLog b/sci-physics/cernlib/ChangeLog
new file mode 100644
index 000000000000..33b909a17bc4
--- /dev/null
+++ b/sci-physics/cernlib/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-physics/cernlib
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/cernlib/ChangeLog,v 1.1 2007/08/24 21:31:50 bicatali Exp $
+
+*cernlib-2006 (24 Aug 2007)
+
+ 24 Aug 2007; Sébastien Fabbro <bicatali@gentoo.org> +metadata.xml,
+ +cernlib-2006.ebuild:
+ Initial import. Closes bug #65708
+
diff --git a/sci-physics/cernlib/Manifest b/sci-physics/cernlib/Manifest
new file mode 100644
index 000000000000..689c916b89a1
--- /dev/null
+++ b/sci-physics/cernlib/Manifest
@@ -0,0 +1,17 @@
+DIST cernlib_2006.dfsg.2-2.diff.gz 167199 RMD160 2772f85fc4e8891e2729f57b35b24b1dd78de82d SHA1 ab4cf56fc7cd9bc2768a85128521a1b168c95ebe SHA256 40e2996e61f7b30dbedb1c525755a2e64df26e4878cce36f5f458229306dedb7
+DIST cernlib_2006.dfsg.2.orig.tar.gz 6152834 RMD160 a75f320a2568eb3942268e7b03525a045e324b70 SHA1 181fef4381d49a2e40a8f21550c3cef0dbaa4dd9 SHA256 f8ef612cdef0e02b69ccabbe0061eed5f952522565affc25e8ad6e0b73b73f26
+EBUILD cernlib-2006.ebuild 3132 RMD160 caa9d32605f78558dd55f531bf9c52d0012b0952 SHA1 285955fbc4621c23a40d25f3d2d7511544990f2d SHA256 ba0d8f10e78b2ab8eb61a619be34389cf6eb73218955d21c0e61a912356ee315
+MD5 f5d8671a6e75fc271dbcea20b32d35c6 cernlib-2006.ebuild 3132
+RMD160 caa9d32605f78558dd55f531bf9c52d0012b0952 cernlib-2006.ebuild 3132
+SHA256 ba0d8f10e78b2ab8eb61a619be34389cf6eb73218955d21c0e61a912356ee315 cernlib-2006.ebuild 3132
+MISC ChangeLog 280 RMD160 31ce5ff52381d122288a6f04399129010f86451c SHA1 5c166b53a21c7df3b95802e8e0f38be889d5e7d4 SHA256 cbe0496b6538f0ec0d0d36066897425c1edace06ee453e8ec0659661df5fcc4b
+MD5 76c3a8da106f7c94c7c0cc79a11b0405 ChangeLog 280
+RMD160 31ce5ff52381d122288a6f04399129010f86451c ChangeLog 280
+SHA256 cbe0496b6538f0ec0d0d36066897425c1edace06ee453e8ec0659661df5fcc4b ChangeLog 280
+MISC metadata.xml 654 RMD160 a33df2636030f2653d4bf478451979fc9850dc85 SHA1 7b018c6bb2eb2b897cd4a60b3a6080995094f44a SHA256 9812f051c9ac5c19fd295cdf79d9ba9d799a7b5ebe6b10d4cf9428d1ebf4e32c
+MD5 bfd8973f1748e907d0cc9f6af493c480 metadata.xml 654
+RMD160 a33df2636030f2653d4bf478451979fc9850dc85 metadata.xml 654
+SHA256 9812f051c9ac5c19fd295cdf79d9ba9d799a7b5ebe6b10d4cf9428d1ebf4e32c metadata.xml 654
+MD5 79f851b0e55de1fa9171f1899e3b2314 files/digest-cernlib-2006 545
+RMD160 94ceb0bb31819cd069ec50100198d25f50a54826 files/digest-cernlib-2006 545
+SHA256 28901345c90f52f3a076eb00c0206175f9a43efabdb75cc78aa373f59eda4019 files/digest-cernlib-2006 545
diff --git a/sci-physics/cernlib/cernlib-2006.ebuild b/sci-physics/cernlib/cernlib-2006.ebuild
new file mode 100644
index 000000000000..554260f14323
--- /dev/null
+++ b/sci-physics/cernlib/cernlib-2006.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/cernlib/cernlib-2006.ebuild,v 1.1 2007/08/24 21:31:50 bicatali Exp $
+
+inherit eutils multilib fortran
+
+DEB_PN=cernlib
+DEB_PV=${PV}.dfsg.2
+DEB_PR=2
+DEB_P=${PN}_${DEB_PV}
+
+DESCRIPTION="CERN program library for High Energy Physics"
+HOMEPAGE="http://wwwasd.web.cern.ch/wwwasd/cernlib"
+SRC_URI="mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}.orig.tar.gz
+ mirror://debian/pool/main/${DEB_PN:0:1}/${DEB_PN}/${DEB_P}-${DEB_PR}.diff.gz"
+
+KEYWORDS="~x86 ~amd64"
+LICENSE="GPL-2 LGPL-2 BSD"
+
+SLOT="0"
+
+DEPEND="virtual/motif
+ virtual/lapack
+ virtual/tetex
+ dev-lang/cfortran
+ x11-misc/imake
+ x11-misc/makedepend
+ app-admin/eselect-blas"
+
+RDEPEND="virtual/motif
+ virtual/lapack
+ dev-lang/cfortran"
+
+
+S=${WORKDIR}/${DEB_PN}-${DEB_PV}.orig
+
+FORTRAN="gfortran g77 ifc"
+
+src_unpack() {
+
+ unpack ${A}
+ epatch "${DEB_P}-${DEB_PR}".diff
+
+ cd "${S}"
+ # temporary fix for threading support (might be supported by 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
+ 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 .
+ sed -i \
+ -e 's:/usr/local:/usr:g' \
+ Makefile || "sed'ing the Makefile failed"
+
+ einfo "Applying Debian patches"
+ emake -j1 \
+ DEB_BUILD_OPTIONS="${FORTRANC} nostrip" \
+ patch || die "make patch failed"
+
+ # since we depend on cfortran, do not use the one from cernlib
+ # (adapted from debian/cernlib-debian.mk)
+ mv -f src/include/cfortran/cfortran.h \
+ src/include/cfortran/cfortran.h.disabled
+ # create local LaTeX cache directory
+ mkdir -p .texmf-var
+
+ # fix an ifort problem
+ sed -i \
+ -e 's/= $(CLIBS) -nofor_main/+= -nofor_main/' \
+ src/packlib/kuip/programs/kxterm/Imakefile || die "sed failed"
+}
+
+src_compile() {
+ emake -j1 \
+ DEB_BUILD_OPTIONS="${FORTRANC} nostrip" \
+ || die "emake failed"
+}
+
+src_install() {
+ emake \
+ DEB_BUILD_OPTIONS="${FORTRANC} nostrip" \
+ DESTDIR="${D}" \
+ install || die "emake install failed"
+ cd "${S}"/debian
+ dodoc changelog README.* deadpool.txt NEWS copyright || die "dodoc failed"
+ newdoc add-ons/README README.add-ons || die "newdoc failed"
+}
+
+pkg_postinst() {
+ elog "Gentoo ${PN} is based on Debian similar package."
+ elog "Serious cernlib users might want to check:"
+ elog "http://people.debian.org/~kmccarty/cernlib/"
+ elog "for the changes and licensing from the original package"
+ if use amd64; then
+ elog "Please see the possible warnings in using ${PN} on 64 bits:"
+ elog "/usr/share/doc/${PF}/README.*64*"
+ fi
+}
diff --git a/sci-physics/cernlib/files/digest-cernlib-2006 b/sci-physics/cernlib/files/digest-cernlib-2006
new file mode 100644
index 000000000000..a07ecc229fe4
--- /dev/null
+++ b/sci-physics/cernlib/files/digest-cernlib-2006
@@ -0,0 +1,6 @@
+MD5 2a9795aed7895477a2759dc34e7f9b96 cernlib_2006.dfsg.2-2.diff.gz 167199
+RMD160 2772f85fc4e8891e2729f57b35b24b1dd78de82d cernlib_2006.dfsg.2-2.diff.gz 167199
+SHA256 40e2996e61f7b30dbedb1c525755a2e64df26e4878cce36f5f458229306dedb7 cernlib_2006.dfsg.2-2.diff.gz 167199
+MD5 34be8a2775d8bfb96dcf4e7a1c0338fb cernlib_2006.dfsg.2.orig.tar.gz 6152834
+RMD160 a75f320a2568eb3942268e7b03525a045e324b70 cernlib_2006.dfsg.2.orig.tar.gz 6152834
+SHA256 f8ef612cdef0e02b69ccabbe0061eed5f952522565affc25e8ad6e0b73b73f26 cernlib_2006.dfsg.2.orig.tar.gz 6152834
diff --git a/sci-physics/cernlib/metadata.xml b/sci-physics/cernlib/metadata.xml
new file mode 100644
index 000000000000..72b191c10bcf
--- /dev/null
+++ b/sci-physics/cernlib/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci-physics</herd>
+<longdescription lang="en">
+ The CERN Program Library is a large collection of general purpose
+ libraries and modules maintained and offered in both source and
+ object code form on the CERN central computers. Most of these
+ programs were developed at CERN and are therefore oriented towards
+ the needs of a physics research laboratory that is general
+ mathematics, data analysis, detectors simulation, data-handling
+ etc... applicable to a wide range of problems.
+</longdescription>
+</pkgmetadata>