diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2007-08-24 21:36:03 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2007-08-24 21:36:03 +0000 |
commit | fbcc6935746c57bcc6ac8e1105db13ead86b784d (patch) | |
tree | df418bf872e1e8c1eda28c09fbffb1e454dd8351 /sci-physics/cernlib-montecarlo | |
parent | and x86 (diff) | |
download | historical-fbcc6935746c57bcc6ac8e1105db13ead86b784d.tar.gz historical-fbcc6935746c57bcc6ac8e1105db13ead86b784d.tar.bz2 historical-fbcc6935746c57bcc6ac8e1105db13ead86b784d.zip |
Initial import.
Package-Manager: portage-2.1.2.12
Diffstat (limited to 'sci-physics/cernlib-montecarlo')
4 files changed, 101 insertions, 0 deletions
diff --git a/sci-physics/cernlib-montecarlo/ChangeLog b/sci-physics/cernlib-montecarlo/ChangeLog new file mode 100644 index 000000000000..246664bce9ca --- /dev/null +++ b/sci-physics/cernlib-montecarlo/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-physics/cernlib-montecarlo +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/cernlib-montecarlo/ChangeLog,v 1.1 2007/08/24 21:36:03 bicatali Exp $ + +*cernlib-montecarlo-2006 (24 Aug 2007) + + 24 Aug 2007; SĂ©bastien Fabbro <bicatali@gentoo.org> +metadata.xml, + +cernlib-montecarlo-2006.ebuild: + Initial import. + diff --git a/sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006.ebuild b/sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006.ebuild new file mode 100644 index 000000000000..3dd18328b1bc --- /dev/null +++ b/sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/cernlib-montecarlo/cernlib-montecarlo-2006.ebuild,v 1.1 2007/08/24 21:36:03 bicatali Exp $ + +inherit eutils multilib fortran + +DEB_PN=mclibs +DEB_PV=${PV}.dfsg.2 +DEB_PR=1 +DEB_P=${DEB_PN}_${DEB_PV} + +DESCRIPTION="Monte-carlo library and tools for the cernlib" +HOMEPAGE="http://wwwasd.web.cern.ch/wwwasd/cernlib" +LICENSE="GPL-2 LGPL-2 BSD" +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="~amd64 ~x86" +SLOT="0" +IUSE="" + +RDEPEND="virtual/motif + virtual/lapack + dev-lang/cfortran + sci-physics/cernlib" + +DEPEND="${RDEPEND} + virtual/tetex + x11-misc/imake + x11-misc/makedepend" + +S="${WORKDIR}/${DEB_PN}-${DEB_PV}.orig" + +FORTRAN="gfortran g77 ifc" + +src_unpack() { + unpack ${A} + epatch "${DEB_P}-${DEB_PR}".diff + + cd "${S}" + 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 +} + +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 copyright || die "dodoc failed" + newdoc add-ons/README README.add-ons || die "newdoc failed" +} diff --git a/sci-physics/cernlib-montecarlo/files/digest-cernlib-montecarlo-2006 b/sci-physics/cernlib-montecarlo/files/digest-cernlib-montecarlo-2006 new file mode 100644 index 000000000000..94404b369cf5 --- /dev/null +++ b/sci-physics/cernlib-montecarlo/files/digest-cernlib-montecarlo-2006 @@ -0,0 +1,6 @@ +MD5 3978b81499f205062b540aa58bb79193 mclibs_2006.dfsg.2-1.diff.gz 35476 +RMD160 ab74f1a53c13aac8b7dd106911c74b7528f3efd4 mclibs_2006.dfsg.2-1.diff.gz 35476 +SHA256 9b323f66d089ddc4a115dca4856234ff8bd27cf19c8dff25a1265f0a26ddbfc6 mclibs_2006.dfsg.2-1.diff.gz 35476 +MD5 140bde921ffa94b06bda51b57f609f36 mclibs_2006.dfsg.2.orig.tar.gz 7406559 +RMD160 116bc443dafc299d66d0e83080c1b3b5b34d41b9 mclibs_2006.dfsg.2.orig.tar.gz 7406559 +SHA256 8e73ccb987cb8f930ed44eac807d4f8fd5b03d6926b2f8d62ffb6b31806acf73 mclibs_2006.dfsg.2.orig.tar.gz 7406559 diff --git a/sci-physics/cernlib-montecarlo/metadata.xml b/sci-physics/cernlib-montecarlo/metadata.xml new file mode 100644 index 000000000000..1ce24154637e --- /dev/null +++ b/sci-physics/cernlib-montecarlo/metadata.xml @@ -0,0 +1,12 @@ +<?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"> +This metapackage provides various Monte Carlo libraries included in +Cernlib (both shared and static). Likely only physicists will be +interested in these packages. +The libraries of Ariadne, Fritiof, Jetset, Lepto, and Pythia are not +available for Gentoo: see cernlib Debian packaging for explanation. +</longdescription> +</pkgmetadata> |