From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9FCF4138010 for ; Mon, 10 Sep 2012 08:16:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 33C11E05F9; Mon, 10 Sep 2012 08:16:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E435EE05F9 for ; Mon, 10 Sep 2012 08:16:20 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1782033C83A for ; Mon, 10 Sep 2012 08:16:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 0684FE543C for ; Mon, 10 Sep 2012 08:16:18 +0000 (UTC) From: "Kacper Kowalik" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Kacper Kowalik" Message-ID: <1347044177.749d3b55f20f042691f587ba362bd989ffb1d8e3.xarthisius@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/thepeg/files/, sci-physics/thepeg/ X-VCS-Repository: proj/sci X-VCS-Files: sci-physics/thepeg/ChangeLog sci-physics/thepeg/files/thepeg-1.8.0-java.patch sci-physics/thepeg/metadata.xml sci-physics/thepeg/thepeg-1.8.0.ebuild X-VCS-Directories: sci-physics/thepeg/files/ sci-physics/thepeg/ X-VCS-Committer: xarthisius X-VCS-Committer-Name: Kacper Kowalik X-VCS-Revision: 749d3b55f20f042691f587ba362bd989ffb1d8e3 X-VCS-Branch: master Date: Mon, 10 Sep 2012 08:16:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 028a0536-bc8b-43de-a504-8033b648422e X-Archives-Hash: f0c69650b91cb7bf3ec2d3713a5b773d commit: 749d3b55f20f042691f587ba362bd989ffb1d8e3 Author: Jauhien Piatlicki (jauhien) gmail com> AuthorDate: Fri Sep 7 18:56:17 2012 +0000 Commit: Kacper Kowalik gentoo org> CommitDate: Fri Sep 7 18:56:17 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=749d3b55 New Ebuild for bug #424003 thanks to hasufell, mgorny and xarthisius. --- sci-physics/thepeg/ChangeLog | 10 +++ sci-physics/thepeg/files/thepeg-1.8.0-java.patch | 37 +++++++++ sci-physics/thepeg/metadata.xml | 20 +++++ sci-physics/thepeg/thepeg-1.8.0.ebuild | 93 ++++++++++++++++++++++ 4 files changed, 160 insertions(+), 0 deletions(-) diff --git a/sci-physics/thepeg/ChangeLog b/sci-physics/thepeg/ChangeLog new file mode 100644 index 0000000..35a5eb3 --- /dev/null +++ b/sci-physics/thepeg/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-physics/thepeg +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*thepeg-1.8.0 (07 Sep 2012) + + 07 Sep 2012; Jauhien Piatlicki (jauhien) + +thepeg-1.8.0.ebuild, +files/thepeg-1.8.0-java.patch, +metadata.xml: + New Ebuild for bug #424003 thanks to hasufell, mgorny and xarthisius. + diff --git a/sci-physics/thepeg/files/thepeg-1.8.0-java.patch b/sci-physics/thepeg/files/thepeg-1.8.0-java.patch new file mode 100644 index 0000000..45b0e95 --- /dev/null +++ b/sci-physics/thepeg/files/thepeg-1.8.0-java.patch @@ -0,0 +1,37 @@ +--- java/Makefile.am ++++ java/Makefile.am +@@ -11,8 +12,7 @@ + + CLEANFILES = ThePEG.jar thepeg.sh + +-jardir = $(pkglibdir) +-nodist_jar_DATA = ThePEG.jar ++noinst_DATA = ThePEG.jar + + dist_noinst_DATA = $(JAVASOURCES) jar-manifest + +@@ -34,7 +34,7 @@ + $(JAR) cmf ThePEG/jar-manifest ThePEG.jar ThePEG/*.class + + thepeg.sh: thepeg.install Makefile +- sed -e s:@pkglibdir[@]:$(pkglibdir):g \ ++ sed -e s:@datadir[@]:$(datadir):g \ + -e s:@bindir[@]:$(bindir):g \ + -e s:@java[@]:$(JAVA):g $(srcdir)/thepeg.install > thepeg.sh + chmod +x thepeg.sh +--- java/thepeg.install ++++ java/thepeg.install +@@ -1,6 +1,6 @@ + #!/bin/sh + +-pkglibdir=@pkglibdir@ ++source @datadir@/thepeg/package.env + bindir=@bindir@ + + ThePEG_CMD="${bindir}/setupThePEG" +@@ -19,4 +19,4 @@ + + + +-exec @java@ ${HEADLESS} -jar ${pkglibdir}/ThePEG.jar ${ThePEG_CMD} "$@" ++exec @java@ ${HEADLESS} -jar ${CLASSPATH} ${ThePEG_CMD} "$@" diff --git a/sci-physics/thepeg/metadata.xml b/sci-physics/thepeg/metadata.xml new file mode 100644 index 0000000..ca863dd --- /dev/null +++ b/sci-physics/thepeg/metadata.xml @@ -0,0 +1,20 @@ + + + +sci + + maintainer-wanted@gentoo.org + + + Toolkit for High Energy Physics Event Generation. + ThePEG has been broken out from the PYTHIA7 program + to better factorize the parts which were PYTHIA-specific + from those which are general model-independent components + of the toolkit and which can be used by any event generator model. + + + Adds support for High Energy Physics Monte Carlo + Generators sci-physics/hepmc + Adds support for sci-physics/lhapdf + + diff --git a/sci-physics/thepeg/thepeg-1.8.0.ebuild b/sci-physics/thepeg/thepeg-1.8.0.ebuild new file mode 100644 index 0000000..1698260 --- /dev/null +++ b/sci-physics/thepeg/thepeg-1.8.0.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit autotools elisp-common eutils java-pkg-opt-2 + +MYP=ThePEG-${PV} + +DESCRIPTION="Toolkit for High Energy Physics Event Generation" +HOMEPAGE="http://home.thep.lu.se/ThePEG/" +SRC_URI="http://www.hepforge.org/archive/thepeg/${MYP}.tar.bz2 + test? ( hepmc? ( + http://www.hepforge.org/archive/lhapdf/pdfsets/current/cteq6ll.LHpdf + http://www.hepforge.org/archive/lhapdf/pdfsets/current/cteq5l.LHgrid + http://www.hepforge.org/archive/lhapdf/pdfsets/current/GRV98nlo.LHgrid + http://www.hepforge.org/archive/lhapdf/pdfsets/current/MRST2001nlo.LHgrid ) )" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~x86" +IUSE="emacs hepmc java lhapdf test zlib" + +DEPEND="sci-libs/gsl + dev-lang/perl + emacs? ( virtual/emacs ) + hepmc? ( sci-physics/hepmc ) + java? ( >=virtual/jre-1.5 ) + lhapdf? ( sci-physics/lhapdf ) + zlib? ( sys-libs/zlib ) +" +RDEPEND="${DEPEND}" +DEPEND="${DEPEND} + test? ( sys-process/time )" + +S="${WORKDIR}/${MYP}" + +pkg_setup() { + elog "There is an extra option on package Rivet not yet in Gentoo:" + elog "You can use the env variable EXTRA_ECONF variable for this:" + elog "EXTRA_ECONF=\"--with-rivet=DIR\"" + elog "where DIR - location of Rivet installation" + java-pkg-opt-2_pkg_setup +} + +src_prepare() { + find -name 'Makefile.am' -exec sed -i '1ipkgdatadir=$(datadir)/thepeg' {} \; \ + || die "changing pkgdatadir name failed" + sed -i '/dist_pkgdata_DATA = ThePEG.el/d' lib/Makefile.am \ + || die "preventing install ThePEG.el in pkgdatadir failed" + epatch "${FILESDIR}"/${P}-java.patch + eautoreconf + + java-pkg-opt-2_src_prepare +} + +src_configure() { + econf \ + --disable-silent-rules \ + $(use_with hepmc hepmc "${EPREFIX}"/usr) \ + $(use_with java javagui) \ + $(use_with lhapdf LHAPDF "${EPREFIX}"/usr) \ + $(use_with zlib zlib "${EPREFIX}"/usr) +} + +src_compile() { + emake + if use emacs; then + elisp-compile lib/ThePEG.el || die + fi +} + +src_test() { + emake LHAPATH="${DISTDIR}" check +} + +src_install() { + emake DESTDIR="${D}" install + if use emacs; then + elisp-install ${PN} lib/ThePEG.el lib/ThePEG.elc || die + fi + use java && java-pkg_newjar java/ThePEG.jar +} + +pkg_postinst() { + if use emacs; then + elog "To use installed elisp file you should add" + elog "(add-to-list 'load-path \"${SITELISP}/${PN}\")" + elog "(load \"ThePEG\")" + elog "to your .emacs file" + fi +}