1 |
commit: 7a5190f2fa5e7708690504904117de0f82fdb7a1 |
2 |
Author: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 31 15:59:09 2014 +0000 |
4 |
Commit: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 31 15:59:09 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=7a5190f2 |
7 |
|
8 |
sci-physics/thepeg: version bump |
9 |
|
10 |
--- |
11 |
sci-physics/thepeg/ChangeLog | 6 +++ |
12 |
sci-physics/thepeg/metadata.xml | 2 + |
13 |
sci-physics/thepeg/thepeg-1.9.2.ebuild | 97 ++++++++++++++++++++++++++++++++++ |
14 |
3 files changed, 105 insertions(+) |
15 |
|
16 |
diff --git a/sci-physics/thepeg/ChangeLog b/sci-physics/thepeg/ChangeLog |
17 |
index e530492..212a043 100644 |
18 |
--- a/sci-physics/thepeg/ChangeLog |
19 |
+++ b/sci-physics/thepeg/ChangeLog |
20 |
@@ -2,6 +2,12 @@ |
21 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
22 |
# $Header: $ |
23 |
|
24 |
+*thepeg-1.9.2 (31 Aug 2014) |
25 |
+ |
26 |
+ 31 Aug 2014; Jauhien Piatlicki <jauhien@g.o> +thepeg-1.9.2.ebuild, |
27 |
+ metadata.xml: |
28 |
+ version bump |
29 |
+ |
30 |
*thepeg-1.9.1-r1 (31 Aug 2014) |
31 |
*thepeg-1.9.0-r2 (31 Aug 2014) |
32 |
*thepeg-1.8.3-r1 (31 Aug 2014) |
33 |
|
34 |
diff --git a/sci-physics/thepeg/metadata.xml b/sci-physics/thepeg/metadata.xml |
35 |
index 12f7bfb..c1dafb3 100644 |
36 |
--- a/sci-physics/thepeg/metadata.xml |
37 |
+++ b/sci-physics/thepeg/metadata.xml |
38 |
@@ -13,6 +13,8 @@ |
39 |
of the toolkit and which can be used by any event generator model. |
40 |
</longdescription> |
41 |
<use> |
42 |
+ <flag name='c++0x'>Build ThePEG using the C++11 standard. |
43 |
+ Experimental feature, not for production use.</flag> |
44 |
<flag name='fastjet'>Adds support for <pkg>sci-physics/fastjet</pkg></flag> |
45 |
<flag name='hepmc'>Adds support for High Energy Physics Monte Carlo |
46 |
Generators <pkg>sci-physics/hepmc</pkg></flag> |
47 |
|
48 |
diff --git a/sci-physics/thepeg/thepeg-1.9.2.ebuild b/sci-physics/thepeg/thepeg-1.9.2.ebuild |
49 |
new file mode 100644 |
50 |
index 0000000..3807b4d |
51 |
--- /dev/null |
52 |
+++ b/sci-physics/thepeg/thepeg-1.9.2.ebuild |
53 |
@@ -0,0 +1,97 @@ |
54 |
+# Copyright 1999-2014 Gentoo Foundation |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+# $Header: $ |
57 |
+ |
58 |
+EAPI=5 |
59 |
+ |
60 |
+AUTOTOOLS_AUTORECONF=1 |
61 |
+AUTOTOOLS_IN_SOURCE_BUILD=1 |
62 |
+ |
63 |
+inherit autotools-utils elisp-common eutils java-pkg-opt-2 |
64 |
+ |
65 |
+MYP=ThePEG-${PV} |
66 |
+ |
67 |
+DESCRIPTION="Toolkit for High Energy Physics Event Generation" |
68 |
+HOMEPAGE="http://home.thep.lu.se/ThePEG/" |
69 |
+ |
70 |
+TEST_URI="http://www.hepforge.org/archive/lhapdf/pdfsets/current" |
71 |
+SRC_URI="http://www.hepforge.org/archive/thepeg/${MYP}.tar.bz2 |
72 |
+ test? ( hepmc? ( |
73 |
+ ${TEST_URI}/cteq6ll.LHpdf |
74 |
+ ${TEST_URI}/cteq5l.LHgrid |
75 |
+ ${TEST_URI}/GRV98nlo.LHgrid |
76 |
+ ${TEST_URI}/MRST2001nlo.LHgrid ) )" |
77 |
+LICENSE="GPL-2" |
78 |
+ |
79 |
+SLOT="0/18" |
80 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
81 |
+IUSE="c++0x emacs fastjet hepmc java lhapdf rivet static-libs test zlib" |
82 |
+ |
83 |
+RDEPEND=" |
84 |
+ sci-libs/gsl:0= |
85 |
+ emacs? ( virtual/emacs ) |
86 |
+ fastjet? ( sci-physics/fastjet:0= ) |
87 |
+ hepmc? ( sci-physics/hepmc:0= ) |
88 |
+ java? ( >=virtual/jre-1.5 ) |
89 |
+ lhapdf? ( sci-physics/lhapdf:0= ) |
90 |
+ rivet? ( sci-physics/rivet:0= ) |
91 |
+ zlib? ( sys-libs/zlib:0= )" |
92 |
+DEPEND="${RDEPEND} |
93 |
+ test? ( sys-process/time )" |
94 |
+ |
95 |
+S="${WORKDIR}/${MYP}" |
96 |
+ |
97 |
+PATCHES=( "${FILESDIR}"/${PN}-1.8.3-java.patch ) |
98 |
+ |
99 |
+src_prepare() { |
100 |
+ find -name 'Makefile.am' -exec \ |
101 |
+ sed -i -e '1ipkgdatadir=$(datadir)/thepeg' {} \; || die |
102 |
+ # trick to force c++ linking |
103 |
+ sed -i \ |
104 |
+ -e '1inodist_EXTRA_libThePEG_la_SOURCES = dummy.cxx' \ |
105 |
+ -e '/dist_pkgdata_DATA = ThePEG.el/d' \ |
106 |
+ lib/Makefile.am || die |
107 |
+ autotools-utils_src_prepare |
108 |
+ java-pkg-opt-2_src_prepare |
109 |
+} |
110 |
+ |
111 |
+src_configure() { |
112 |
+ local myeconfargs=( |
113 |
+ $(use_enable c++0x stdcxx11) |
114 |
+ $(use_with fastjet fastjet "${EPREFIX}"/usr) |
115 |
+ $(use_with hepmc hepmc "${EPREFIX}"/usr) |
116 |
+ $(use_with java javagui) |
117 |
+ $(use_with lhapdf lhapdf "${EPREFIX}"/usr) |
118 |
+ $(use_with rivet rivet "${EPREFIX}"/usr) |
119 |
+ $(use_with zlib zlib "${EPREFIX}"/usr) |
120 |
+ ) |
121 |
+ autotools-utils_src_configure |
122 |
+} |
123 |
+ |
124 |
+src_compile() { |
125 |
+ autotools-utils_src_compile |
126 |
+ use emacs && elisp-compile lib/ThePEG.el |
127 |
+} |
128 |
+ |
129 |
+src_test() { |
130 |
+ emake LHAPATH="${DISTDIR}" -C "${BUILD_DIR}" check |
131 |
+} |
132 |
+ |
133 |
+src_install() { |
134 |
+ autotools-utils_src_install |
135 |
+ use emacs && elisp-install ${PN} lib/ThePEG.el{,c} |
136 |
+ use java && java-pkg_newjar java/ThePEG.jar |
137 |
+ |
138 |
+ cat <<-EOF > "${T}"/50${PN} |
139 |
+ LDPATH="${EPREFIX}/usr/$(get_libdir)/ThePEG" |
140 |
+ EOF |
141 |
+ doenvd "${T}"/50${PN} |
142 |
+} |
143 |
+ |
144 |
+pkg_postinst() { |
145 |
+ use emacs && elisp-site-regen |
146 |
+} |
147 |
+ |
148 |
+pkg_postrm() { |
149 |
+ use emacs && elisp-site-regen |
150 |
+} |