commit: 466d3cb19a801a16712329aaeaaddf0a80c35f7b Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> AuthorDate: Tue May 6 21:57:06 2014 +0000 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> CommitDate: Tue May 6 21:57:06 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=466d3cb1
sci-physics/thepeg: Version bump Package-Manager: portage-2.2.8-prefix --- sci-physics/thepeg/ChangeLog | 8 +++- sci-physics/thepeg/thepeg-1.9.1.ebuild | 87 ++++++++++++++++++++++++++++++++++ 2 files changed, 93 insertions(+), 2 deletions(-) diff --git a/sci-physics/thepeg/ChangeLog b/sci-physics/thepeg/ChangeLog index 5914b9e..57d3fad 100644 --- a/sci-physics/thepeg/ChangeLog +++ b/sci-physics/thepeg/ChangeLog @@ -1,7 +1,12 @@ # ChangeLog for sci-physics/thepeg -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*thepeg-1.9.1 (06 May 2014) + + 06 May 2014; Sébastien Fabbro <[email protected]> +thepeg-1.9.1.ebuild: + sci-physics/thepeg: Version bump + *thepeg-1.9.0-r1 (09 Nov 2013) 09 Nov 2013; Jauhien Piatlicki (jauhien) <[email protected]> @@ -39,4 +44,3 @@ 07 Sep 2012; Jauhien Piatlicki (jauhien) <[email protected]> +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/thepeg-1.9.1.ebuild b/sci-physics/thepeg/thepeg-1.9.1.ebuild new file mode 100644 index 0000000..e70b39f --- /dev/null +++ b/sci-physics/thepeg/thepeg-1.9.1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +AUTOTOOLS_IN_SOURCE_BUILD=1 + +inherit autotools-utils 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/" + +TEST_URI="http://www.hepforge.org/archive/lhapdf/pdfsets/current" +SRC_URI="http://www.hepforge.org/archive/thepeg/${MYP}.tar.bz2 + test? ( hepmc? ( + ${TEST_URI}/cteq6ll.LHpdf + ${TEST_URI}/cteq5l.LHgrid + ${TEST_URI}/GRV98nlo.LHgrid + ${TEST_URI}/MRST2001nlo.LHgrid ) )" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="emacs fastjet hepmc java lhapdf rivet static-libs test zlib" + +RDEPEND=" + sci-libs/gsl:0= + emacs? ( virtual/emacs ) + fastjet? ( sci-physics/fastjet:0= ) + hepmc? ( sci-physics/hepmc:0= ) + java? ( >=virtual/jre-1.5 ) + lhapdf? ( sci-physics/lhapdf:0= ) + rivet? ( sci-physics/rivet:0= ) + zlib? ( sys-libs/zlib:0= )" +DEPEND="${RDEPEND} + test? ( sys-process/time )" + +S="${WORKDIR}/${MYP}" + +PATCHES=( "${FILESDIR}"/${PN}-1.8.3-java.patch ) + +src_prepare() { + find -name 'Makefile.am' -exec \ + sed -i -e '1ipkgdatadir=$(datadir)/thepeg' {} \; || die + sed -i -e '/dist_pkgdata_DATA = ThePEG.el/d' lib/Makefile.am || die + autotools-utils_src_prepare + java-pkg-opt-2_src_prepare +} + +src_configure() { + local myeconfargs=( + $(use_with fastjet fastjet "${EPREFIX}"/usr) + $(use_with hepmc hepmc "${EPREFIX}"/usr) + $(use_with java javagui) + $(use_with lhapdf lhapdf "${EPREFIX}"/usr) + $(use_with rivet rivet "${EPREFIX}"/usr) + $(use_with zlib zlib "${EPREFIX}"/usr) + ) + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile + use emacs && elisp-compile lib/ThePEG.el +} + +src_test() { + emake LHAPATH="${DISTDIR}" -C "${BUILD_DIR}" check +} + +src_install() { + autotools-utils_src_install + use emacs && elisp-install ${PN} lib/ThePEG.el{,c} + use java && java-pkg_newjar java/ThePEG.jar +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +}
