1 |
bicatali 11/11/25 21:50:37 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pythia-6.4.26.ebuild pythia-8.1.57.ebuild |
5 |
Log: |
6 |
Version bumps |
7 |
|
8 |
(Portage version: 2.1.10.37/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.43 sci-physics/pythia/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/ChangeLog?rev=1.43&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/ChangeLog?rev=1.43&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/ChangeLog?r1=1.42&r2=1.43 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v |
20 |
retrieving revision 1.42 |
21 |
retrieving revision 1.43 |
22 |
diff -u -r1.42 -r1.43 |
23 |
--- ChangeLog 21 Jun 2011 14:32:06 -0000 1.42 |
24 |
+++ ChangeLog 25 Nov 2011 21:50:37 -0000 1.43 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for sci-physics/pythia |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v 1.42 2011/06/21 14:32:06 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/ChangeLog,v 1.43 2011/11/25 21:50:37 bicatali Exp $ |
30 |
+ |
31 |
+*pythia-8.1.57 (25 Nov 2011) |
32 |
+*pythia-6.4.26 (25 Nov 2011) |
33 |
+ |
34 |
+ 25 Nov 2011; Sébastien Fabbro <bicatali@g.o> +pythia-6.4.26.ebuild, |
35 |
+ +pythia-8.1.57.ebuild: |
36 |
+ Version bumps |
37 |
|
38 |
21 Jun 2011; Justin Lecher <jlec@g.o> pythia-8.1.45.ebuild, |
39 |
pythia-8.1.50.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 sci-physics/pythia/pythia-6.4.26.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/pythia-6.4.26.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/pythia-6.4.26.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: pythia-6.4.26.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/pythia-6.4.26.ebuild,v 1.1 2011/11/25 21:50:37 bicatali Exp $ |
53 |
|
54 |
EAPI=4 |
55 |
|
56 |
inherit autotools fortran-2 versionator |
57 |
|
58 |
MV=$(get_major_version) |
59 |
MY_PN=${PN}${MV} |
60 |
DOC_PV=0613 |
61 |
EX_PV=6.4.18 |
62 |
|
63 |
DESCRIPTION="Lund Monte Carlo high-energy physics event generator" |
64 |
HOMEPAGE="http://projects.hepforge.org/pythia6/" |
65 |
|
66 |
# pythia6 from root is needed for some files to interface pythia6 with root. |
67 |
# To produce a split version, replace the 6.4.x by the current version: |
68 |
# svn export http://svn.hepforge.org/pythia6/tags/v_6_4_x/ pythia-6.4.x |
69 |
# tar cjf pythia-6.4.x.tar.bz2 |
70 |
SRC_URI="http://dev.gentoo.org/~bicatali/${P}.tar.bz2 |
71 |
ftp://root.cern.ch/root/pythia6.tar.gz |
72 |
doc? ( http://home.thep.lu.se/~torbjorn/pythia/lutp${DOC_PV}man2.pdf ) |
73 |
examples? ( mirror://gentoo/${PN}-${EX_PV}-examples.tar.bz2 )" |
74 |
|
75 |
SLOT="6" |
76 |
LICENSE="public-domain" |
77 |
KEYWORDS="~amd64 ~x86" |
78 |
IUSE="doc examples static-libs" |
79 |
|
80 |
DEPEND="virtual/fortran" |
81 |
RDEPEND="${DEPEND}" |
82 |
|
83 |
src_prepare() { |
84 |
cp ../pythia6/tpythia6_called_from_cc.F . |
85 |
cp ../pythia6/pythia6_common_address.c . |
86 |
cat > configure.ac <<-EOF |
87 |
AC_INIT(${PN},${PV}) |
88 |
AM_INIT_AUTOMAKE |
89 |
AC_PROG_F77 |
90 |
LT_INIT |
91 |
AC_CHECK_LIB(m,sqrt) |
92 |
AC_CONFIG_FILES(Makefile) |
93 |
AC_OUTPUT |
94 |
EOF |
95 |
echo >> Makefile.am "lib_LTLIBRARIES = libpythia6.la" |
96 |
echo >> Makefile.am "libpythia6_la_SOURCES = \ " |
97 |
# replace wildcard from makefile to ls in shell |
98 |
local f |
99 |
for f in py*.f struct*.f up*.f fh*.f; do |
100 |
echo >> Makefile.am " ${f} \\" |
101 |
done |
102 |
echo >> Makefile.am " ssmssm.f sugra.f visaje.f pdfset.f \\" |
103 |
echo >> Makefile.am " tpythia6_called_from_cc.F pythia6_common_address.c" |
104 |
eautoreconf |
105 |
} |
106 |
|
107 |
src_configure() { |
108 |
econf $(use_enable static-libs static) |
109 |
} |
110 |
|
111 |
src_install() { |
112 |
default |
113 |
dodoc update_notes.txt |
114 |
use doc && dodoc "${DISTDIR}"/lutp${DOC_PV}man2.pdf |
115 |
if use examples; then |
116 |
insinto /usr/share/doc/${PF} |
117 |
doins -r "${WORKDIR}"/examples |
118 |
fi |
119 |
} |
120 |
|
121 |
|
122 |
|
123 |
1.1 sci-physics/pythia/pythia-8.1.57.ebuild |
124 |
|
125 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/pythia-8.1.57.ebuild?rev=1.1&view=markup |
126 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/pythia/pythia-8.1.57.ebuild?rev=1.1&content-type=text/plain |
127 |
|
128 |
Index: pythia-8.1.57.ebuild |
129 |
=================================================================== |
130 |
# Copyright 1999-2011 Gentoo Foundation |
131 |
# Distributed under the terms of the GNU General Public License v2 |
132 |
# $Header: /var/cvsroot/gentoo-x86/sci-physics/pythia/pythia-8.1.57.ebuild,v 1.1 2011/11/25 21:50:37 bicatali Exp $ |
133 |
|
134 |
EAPI=4 |
135 |
|
136 |
inherit eutils versionator |
137 |
|
138 |
MV=$(get_major_version) |
139 |
MY_P=${PN}$(replace_all_version_separators "" ${PV}) |
140 |
|
141 |
DESCRIPTION="Lund Monte Carlo high-energy physics event generator" |
142 |
HOMEPAGE="http://home.thep.lu.se/~torbjorn/Pythia.html" |
143 |
SRC_URI="http://home.thep.lu.se/~torbjorn/${PN}${MV}/${MY_P}.tgz" |
144 |
|
145 |
SLOT="8" |
146 |
LICENSE="GPL-2" |
147 |
KEYWORDS="~amd64 ~x86" |
148 |
IUSE="doc examples +hepmc static-libs" |
149 |
|
150 |
DEPEND="hepmc? ( sci-physics/hepmc )" |
151 |
RDEPEND=" |
152 |
virtual/fortran |
153 |
${DEPEND}" |
154 |
|
155 |
S="${WORKDIR}/${MY_P}" |
156 |
|
157 |
src_configure() { |
158 |
use hepmc && export HEPMCVERSION=2 HEPMCLOCATION="${EPREFIX}/usr" |
159 |
# homemade configure script creates a useless config.mk |
160 |
rm -f config.mk |
161 |
cat > config.mk <<-EOF |
162 |
SHAREDLIBS = yes |
163 |
LDFLAGSSHARED = -shared ${LDFLAGS} |
164 |
LDFLAGLIBNAME = -Wl,-soname |
165 |
SHAREDSUFFIX = so |
166 |
EOF |
167 |
if ! use static-libs; then |
168 |
sed -i \ |
169 |
-e '/targets.*\.a/d' \ |
170 |
-e 's/+=\(.*libpythia8\)/=\1/' \ |
171 |
Makefile || die |
172 |
sed -i \ |
173 |
-e 's:\.a:\.so:g' \ |
174 |
-e 's:$(LIBDIRARCH):$(LIBDIR):g' \ |
175 |
examples/Makefile || die |
176 |
fi |
177 |
} |
178 |
|
179 |
src_test() { |
180 |
cd "${S}"/examples |
181 |
# use emake for parallel instead of long runmains |
182 |
emake main0{1..9} |
183 |
for i in main0{1..9}*.exe; do |
184 |
LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" \ |
185 |
./${i} > ${i}.out || die "test ${i} failed" |
186 |
done |
187 |
if use hepmc; then |
188 |
emake main31 main32 |
189 |
LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" \ |
190 |
./main31.exe > main31.exe.out || die |
191 |
LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" \ |
192 |
./main32.exe main32.cmnd hepmcout32.dat > main32.exe.out || die |
193 |
fi |
194 |
emake clean && rm -f main*out |
195 |
} |
196 |
|
197 |
src_install() { |
198 |
dolib.so lib/*so |
199 |
use static-libs && dolib.a lib/archive/* |
200 |
|
201 |
insinto /usr/include/${PN} |
202 |
doins include/* |
203 |
|
204 |
# xmldoc needed by root |
205 |
insinto /usr/share/${PN} |
206 |
doins -r xmldoc |
207 |
echo "PYTHIA8DATA=${EROOT}usr/share/${PN}/xmldoc" >> 99pythia8 |
208 |
doenvd 99pythia8 |
209 |
|
210 |
dodoc GUIDELINES AUTHORS README |
211 |
if use doc; then |
212 |
dodoc worksheet.pdf |
213 |
dohtml -r htmldoc/* |
214 |
fi |
215 |
if use examples; then |
216 |
insinto /usr/share/doc/${PF} |
217 |
doins -r examples || die "examples install failed" |
218 |
fi |
219 |
} |