commit:     7a5190f2fa5e7708690504904117de0f82fdb7a1
Author:     Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 31 15:59:09 2014 +0000
Commit:     Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org>
CommitDate: Sun Aug 31 15:59:09 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=7a5190f2

sci-physics/thepeg: version bump

---
 sci-physics/thepeg/ChangeLog           |  6 +++
 sci-physics/thepeg/metadata.xml        |  2 +
 sci-physics/thepeg/thepeg-1.9.2.ebuild | 97 ++++++++++++++++++++++++++++++++++
 3 files changed, 105 insertions(+)

diff --git a/sci-physics/thepeg/ChangeLog b/sci-physics/thepeg/ChangeLog
index e530492..212a043 100644
--- a/sci-physics/thepeg/ChangeLog
+++ b/sci-physics/thepeg/ChangeLog
@@ -2,6 +2,12 @@
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*thepeg-1.9.2 (31 Aug 2014)
+
+  31 Aug 2014; Jauhien Piatlicki <jauh...@gentoo.org> +thepeg-1.9.2.ebuild,
+  metadata.xml:
+  version bump
+
 *thepeg-1.9.1-r1 (31 Aug 2014)
 *thepeg-1.9.0-r2 (31 Aug 2014)
 *thepeg-1.8.3-r1 (31 Aug 2014)

diff --git a/sci-physics/thepeg/metadata.xml b/sci-physics/thepeg/metadata.xml
index 12f7bfb..c1dafb3 100644
--- a/sci-physics/thepeg/metadata.xml
+++ b/sci-physics/thepeg/metadata.xml
@@ -13,6 +13,8 @@
   of the toolkit and which can be used by any event generator model.
 </longdescription>
 <use>
+  <flag name='c++0x'>Build ThePEG using the C++11 standard.
+  Experimental feature, not for production use.</flag>
   <flag name='fastjet'>Adds support for <pkg>sci-physics/fastjet</pkg></flag>
   <flag name='hepmc'>Adds support for High Energy Physics Monte Carlo
          Generators <pkg>sci-physics/hepmc</pkg></flag>

diff --git a/sci-physics/thepeg/thepeg-1.9.2.ebuild 
b/sci-physics/thepeg/thepeg-1.9.2.ebuild
new file mode 100644
index 0000000..3807b4d
--- /dev/null
+++ b/sci-physics/thepeg/thepeg-1.9.2.ebuild
@@ -0,0 +1,97 @@
+# 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/18"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="c++0x 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
+       # trick to force c++ linking
+       sed -i \
+               -e '1inodist_EXTRA_libThePEG_la_SOURCES = dummy.cxx' \
+               -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_enable c++0x stdcxx11)
+               $(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
+
+       cat <<-EOF > "${T}"/50${PN}
+       LDPATH="${EPREFIX}/usr/$(get_libdir)/ThePEG"
+       EOF
+       doenvd "${T}"/50${PN}
+}
+
+pkg_postinst() {
+       use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+       use emacs && elisp-site-regen
+}

Reply via email to