1 |
bicatali 13/02/25 04:45:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: root-5.34.05.ebuild |
5 |
Removed: root-5.34.03.ebuild |
6 |
Log: |
7 |
Version bump |
8 |
|
9 |
(Portage version: 2.2.01.21688-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360) |
10 |
|
11 |
Revision Changes Path |
12 |
1.113 sci-physics/root/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/ChangeLog?rev=1.113&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/ChangeLog?rev=1.113&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/ChangeLog?r1=1.112&r2=1.113 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v |
21 |
retrieving revision 1.112 |
22 |
retrieving revision 1.113 |
23 |
diff -u -r1.112 -r1.113 |
24 |
--- ChangeLog 22 Jan 2013 17:18:55 -0000 1.112 |
25 |
+++ ChangeLog 25 Feb 2013 04:45:41 -0000 1.113 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sci-physics/root |
28 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.112 2013/01/22 17:18:55 bicatali Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.113 2013/02/25 04:45:41 bicatali Exp $ |
31 |
+ |
32 |
+*root-5.34.05 (23 Feb 2013) |
33 |
+ |
34 |
+ 23 Feb 2013; Andrew Savchenko <bircoph@×××××.com> -root-5.34.03.ebuild, |
35 |
+ +root-5.34.05.ebuild, +files/root-5.34.05-nobyte-compile.patch: |
36 |
+ Version bump. |
37 |
|
38 |
22 Jan 2013; Sébastien Fabbro <bicatali@g.o> |
39 |
+files/root-5.32.00-prop-flags.patch, |
40 |
|
41 |
|
42 |
|
43 |
1.1 sci-physics/root/root-5.34.05.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.34.05.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-physics/root/root-5.34.05.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: root-5.34.05.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2013 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.05.ebuild,v 1.1 2013/02/25 04:45:41 bicatali Exp $ |
53 |
|
54 |
EAPI=4 |
55 |
|
56 |
PYTHON_DEPEND="python? 2" |
57 |
|
58 |
if [[ ${PV} == "9999" ]] ; then |
59 |
_SVN=subversion |
60 |
ESVN_REPO_URI="http://root.cern.ch/svn/root/trunk" |
61 |
SRC_URI="" |
62 |
KEYWORDS="" |
63 |
else |
64 |
SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz" |
65 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
66 |
fi |
67 |
|
68 |
inherit elisp-common eutils fdo-mime fortran-2 multilib python toolchain-funcs user ${_SVN} versionator |
69 |
|
70 |
ROOFIT_DOC_PV=2.91-33 |
71 |
TMVA_DOC_PV=4.03 |
72 |
PATCH_PV=5.28.00b |
73 |
PATCH_PV2=5.32.00 |
74 |
PATCH_PV3=5.34.05 |
75 |
|
76 |
DESCRIPTION="C++ data analysis framework and interpreter from CERN" |
77 |
HOMEPAGE="http://root.cern.ch/" |
78 |
SRC_URI="${SRC_URI} |
79 |
doc? ( ftp://root.cern.ch/${PN}/doc/ROOTUsersGuide.pdf -> ROOTUsersGuide-${PV}.pdf |
80 |
math? ( |
81 |
ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf |
82 |
http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf ) |
83 |
htmldoc? ( |
84 |
http://root.cern.ch/drupal/sites/default/files/rootdrawing-logo.png |
85 |
http://root.cern.ch/drupal/sites/all/themes/newsflash/images/blue/root-banner.png |
86 |
http://root.cern.ch/drupal/sites/all/themes/newsflash/images/info.png ) )" |
87 |
|
88 |
SLOT="0" |
89 |
LICENSE="LGPL-2.1" |
90 |
IUSE="+X afs avahi -c++0x doc emacs examples fits fftw graphviz htmldoc |
91 |
kerberos ldap +math mpi mysql odbc +opengl openmp oracle postgres prefix |
92 |
pythia6 pythia8 python qt4 +reflex ruby ssl xinetd xml xrootd" |
93 |
|
94 |
CDEPEND=" |
95 |
app-arch/xz-utils |
96 |
>=dev-lang/cfortran-4.4-r2 |
97 |
dev-libs/libpcre |
98 |
media-fonts/dejavu |
99 |
media-libs/freetype |
100 |
media-libs/giflib |
101 |
media-libs/libpng:0 |
102 |
media-libs/tiff:0 |
103 |
sys-libs/zlib |
104 |
virtual/jpeg |
105 |
virtual/shadow |
106 |
X? ( |
107 |
media-libs/ftgl |
108 |
media-libs/glew |
109 |
x11-libs/libX11 |
110 |
x11-libs/libXext |
111 |
x11-libs/libXpm |
112 |
|| ( |
113 |
>=media-libs/libafterimage-1.20[gif,jpeg,png,tiff] |
114 |
>=x11-wm/afterstep-2.2.11[gif,jpeg,png,tiff] |
115 |
) |
116 |
opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps ) |
117 |
qt4? ( |
118 |
x11-libs/qt-gui:4 |
119 |
x11-libs/qt-opengl:4 |
120 |
x11-libs/qt-qt3support:4 |
121 |
x11-libs/qt-svg:4 |
122 |
x11-libs/qt-webkit:4 |
123 |
x11-libs/qt-xmlpatterns:4 ) |
124 |
x11-libs/libXft |
125 |
) |
126 |
afs? ( net-fs/openafs ) |
127 |
avahi? ( net-dns/avahi ) |
128 |
emacs? ( virtual/emacs ) |
129 |
fits? ( sci-libs/cfitsio ) |
130 |
fftw? ( sci-libs/fftw:3.0 ) |
131 |
graphviz? ( media-gfx/graphviz ) |
132 |
kerberos? ( virtual/krb5 ) |
133 |
ldap? ( net-nds/openldap ) |
134 |
math? ( sci-libs/gsl sci-mathematics/unuran mpi? ( virtual/mpi ) ) |
135 |
mysql? ( virtual/mysql ) |
136 |
odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) ) |
137 |
oracle? ( dev-db/oracle-instantclient-basic ) |
138 |
postgres? ( dev-db/postgresql-base ) |
139 |
pythia6? ( sci-physics/pythia:6 ) |
140 |
pythia8? ( sci-physics/pythia:8 ) |
141 |
ruby? ( |
142 |
dev-lang/ruby |
143 |
dev-ruby/rubygems ) |
144 |
ssl? ( dev-libs/openssl ) |
145 |
xml? ( dev-libs/libxml2 ) |
146 |
xrootd? ( >=net-libs/xrootd-3.2.0 )" |
147 |
|
148 |
DEPEND="${CDEPEND} |
149 |
virtual/pkgconfig" |
150 |
|
151 |
RDEPEND="${CDEPEND} |
152 |
reflex? ( dev-cpp/gccxml ) |
153 |
xinetd? ( sys-apps/xinetd )" |
154 |
|
155 |
PDEPEND="htmldoc? ( ~app-doc/root-docs-${PV} )" |
156 |
|
157 |
REQUIRED_USE=" |
158 |
!X? ( !opengl !qt4 ) |
159 |
htmldoc? ( doc ) |
160 |
mpi? ( math !openmp ) |
161 |
openmp? ( math !mpi )" |
162 |
|
163 |
S="${WORKDIR}/${PN}" |
164 |
|
165 |
pkg_setup() { |
166 |
fortran-2_pkg_setup |
167 |
python_set_active_version 2 |
168 |
python_pkg_setup |
169 |
echo |
170 |
elog "There are extra options on packages not yet in Gentoo:" |
171 |
elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus," |
172 |
elog "HDFS, Monalisa, MaxDB/SapDB, SRP." |
173 |
elog "You can use the env variable EXTRA_ECONF variable for this." |
174 |
elog "For example, for SRP, you would set: " |
175 |
elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\"" |
176 |
echo |
177 |
enewgroup rootd |
178 |
enewuser rootd -1 -1 /var/spool/rootd rootd |
179 |
|
180 |
if use math; then |
181 |
if use openmp; then |
182 |
if [[ $(tc-getCXX)$ == *g++* ]] && ! tc-has-openmp; then |
183 |
ewarn "You are using a g++ without OpenMP capabilities" |
184 |
die "Need an OpenMP capable compiler" |
185 |
else |
186 |
export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1 |
187 |
fi |
188 |
elif use mpi; then |
189 |
export USE_MPI=1 USE_PARALLEL_MINUIT2=1 |
190 |
fi |
191 |
fi |
192 |
if use c++0x && [[ $(tc-getCXX) == *g++* ]] && \ |
193 |
! version_is_at_least "4.7" "$(gcc-version)"; then |
194 |
eerror "You are using a g++ without C++0x capabilities" |
195 |
die "Need an C++0x capable compiler" |
196 |
fi |
197 |
} |
198 |
|
199 |
src_prepare() { |
200 |
epatch \ |
201 |
"${FILESDIR}"/${PN}-${PATCH_PV2}-prop-flags.patch \ |
202 |
"${FILESDIR}"/${PN}-${PATCH_PV3}-nobyte-compile.patch \ |
203 |
"${FILESDIR}"/${PN}-${PATCH_PV}-glibc212.patch \ |
204 |
"${FILESDIR}"/${PN}-${PATCH_PV}-unuran.patch \ |
205 |
"${FILESDIR}"/${PN}-${PATCH_PV2}-afs.patch \ |
206 |
"${FILESDIR}"/${PN}-${PATCH_PV2}-cfitsio.patch \ |
207 |
"${FILESDIR}"/${PN}-${PATCH_PV2}-chklib64.patch \ |
208 |
"${FILESDIR}"/${PN}-${PATCH_PV2}-dotfont.patch |
209 |
|
210 |
# make sure we use system libs and headers |
211 |
rm montecarlo/eg/inc/cfortran.h README/cfortran.doc || die |
212 |
rm -r graf2d/asimage/src/libAfterImage || die |
213 |
rm -r graf3d/ftgl/{inc,src} || die |
214 |
rm -r graf2d/freetype/src || die |
215 |
rm -r graf3d/glew/{inc,src} || die |
216 |
rm -r core/pcre/src || die |
217 |
rm -r math/unuran/src/unuran-*.tar.gz || die |
218 |
LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" -print0 | xargs -0 rm -f || die |
219 |
rm -r core/lzma/src/*.tar.gz || die |
220 |
rm graf3d/gl/{inc,src}/gl2ps.* || die |
221 |
sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' graf3d/gl/Module.mk || die |
222 |
|
223 |
# In Gentoo, libPythia6 is called libpythia6 |
224 |
# libungif is called libgif, |
225 |
# iodbc is in /usr/include/iodbc |
226 |
# pg_config.h is checked instead of libpq-fe.h |
227 |
sed -i \ |
228 |
-e 's:libPythia6:libpythia6:g' \ |
229 |
-e 's:ungif:gif:g' \ |
230 |
-e 's:$ODBCINCDIR:$ODBCINCDIR /usr/include/iodbc:' \ |
231 |
-e 's:libpq-fe.h:pg_config.h:' \ |
232 |
configure || die "adjusting configure for Gentoo failed" |
233 |
|
234 |
# prefixify the configure script |
235 |
sed -i \ |
236 |
-e 's:/usr:${EPREFIX}/usr:g' \ |
237 |
configure || die "prefixify configure failed" |
238 |
|
239 |
# QTDIR only used for qt3 in gentoo, and configure looks for it. |
240 |
unset QTDIR |
241 |
|
242 |
# Make html docs self-consistent for offline work (based on Fedora spec) |
243 |
if use htmldoc; then |
244 |
epatch "${FILESDIR}"/${PN}-${PATCH_PV2}-htmldoc.patch |
245 |
# make images local |
246 |
sed 's!http://root.cern.ch/drupal/sites/all/themes/newsflash/images/blue/!!' \ |
247 |
-i etc/html/ROOT.css || die "htmldoc sed failed" |
248 |
sed 's!http://root.cern.ch/drupal/sites/all/themes/newsflash/images/!!' \ |
249 |
-i etc/html/ROOT.css || die "htmldoc sed failed" |
250 |
sed 's!http://root.cern.ch/drupal/sites/default/files/!!' \ |
251 |
-i etc/html/header.html || die "htmldoc sed failed" |
252 |
|
253 |
cp "${DISTDIR}"/{rootdrawing-logo.png,root-banner.png,info.png} etc/html || |
254 |
die "htmldoc preparation failed" |
255 |
fi |
256 |
} |
257 |
|
258 |
src_configure() { |
259 |
# the configure script is not the standard autotools |
260 |
./configure \ |
261 |
--prefix="${EPREFIX}"/usr \ |
262 |
--etcdir="${EPREFIX}"/etc/root \ |
263 |
--libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \ |
264 |
--docdir="${EPREFIX}"/usr/share/doc/${PF} \ |
265 |
--tutdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tutorials \ |
266 |
--testdir="${EPREFIX}"/usr/share/doc/${PF}/examples/tests \ |
267 |
--with-cc=$(tc-getCC) \ |
268 |
--with-cxx=$(tc-getCXX) \ |
269 |
--with-f77=$(tc-getFC) \ |
270 |
--with-ld=$(tc-getCXX) \ |
271 |
--with-afs-shared=yes \ |
272 |
--with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \ |
273 |
--disable-builtin-afterimage \ |
274 |
--disable-builtin-freetype \ |
275 |
--disable-builtin-ftgl \ |
276 |
--disable-builtin-glew \ |
277 |
--disable-builtin-pcre \ |
278 |
--disable-builtin-zlib \ |
279 |
--disable-builtin-lzma \ |
280 |
--disable-cling \ |
281 |
--enable-astiff \ |
282 |
--enable-explicitlink \ |
283 |
--enable-gdml \ |
284 |
--enable-memstat \ |
285 |
--enable-shadowpw \ |
286 |
--enable-shared \ |
287 |
--enable-soversion \ |
288 |
--enable-table \ |
289 |
--fail-on-missing \ |
290 |
$(use_enable X x11) \ |
291 |
$(use_enable X asimage) \ |
292 |
$(use_enable X xft) \ |
293 |
$(use_enable afs) \ |
294 |
$(use_enable avahi bonjour) \ |
295 |
$(use_enable fits fitsio) \ |
296 |
$(use_enable fftw fftw3) \ |
297 |
$(use_enable graphviz gviz) \ |
298 |
$(use_enable kerberos krb5) \ |
299 |
$(use_enable ldap) \ |
300 |
$(use_enable math gsl-shared) \ |
301 |
$(use_enable math genvector) \ |
302 |
$(use_enable math mathmore) \ |
303 |
$(use_enable math minuit2) \ |
304 |
$(use_enable math roofit) \ |
305 |
$(use_enable math tmva) \ |
306 |
$(use_enable math unuran) \ |
307 |
$(use_enable mysql) \ |
308 |
$(use_enable odbc) \ |
309 |
$(use_enable opengl) \ |
310 |
$(use_enable postgres pgsql) \ |
311 |
$(use_enable prefix rpath) \ |
312 |
$(use_enable pythia6) \ |
313 |
$(use_enable pythia8) \ |
314 |
$(use_enable python) \ |
315 |
$(use_enable qt4 qt) \ |
316 |
$(use_enable qt4 qtgsi) \ |
317 |
$(use_enable reflex cintex) \ |
318 |
$(use_enable reflex) \ |
319 |
$(use_enable ruby) \ |
320 |
$(use_enable ssl) \ |
321 |
$(use_enable xml) \ |
322 |
$(use_enable xrootd) \ |
323 |
${EXTRA_ECONF} \ |
324 |
|| die "configure failed" |
325 |
} |
326 |
|
327 |
src_compile() { |
328 |
emake OPT="${CXXFLAGS}" F77OPT="${FFLAGS}" ROOTSYS="${S}" LD_LIBRARY_PATH="${S}/lib" |
329 |
if use emacs; then |
330 |
elisp-compile build/misc/*.el || die "elisp-compile failed" |
331 |
fi |
332 |
} |
333 |
|
334 |
doc_install() { |
335 |
cd "${S}" |
336 |
if use doc; then |
337 |
einfo "Installing user's guides" |
338 |
dodoc "${DISTDIR}"/ROOTUsersGuide-${PV}.pdf |
339 |
use math && dodoc \ |
340 |
"${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \ |
341 |
"${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf |
342 |
fi |
343 |
|
344 |
if use examples; then |
345 |
# these should really be taken care of by the root make install |
346 |
insinto /usr/share/doc/${PF}/examples/tutorials/tmva |
347 |
doins -r tmva/test |
348 |
else |
349 |
rm -r "${ED}"/usr/share/doc/${PF}/examples || die |
350 |
fi |
351 |
} |
352 |
|
353 |
daemon_install() { |
354 |
cd "${S}" |
355 |
local daemons="rootd proofd" |
356 |
dodir /var/spool/rootd |
357 |
fowners rootd:rootd /var/spool/rootd |
358 |
dodir /var/spool/rootd/{pub,tmp} |
359 |
fperms 1777 /var/spool/rootd/{pub,tmp} |
360 |
|
361 |
for i in ${daemons}; do |
362 |
newinitd "${FILESDIR}"/${i}.initd ${i} |
363 |
newconfd "${FILESDIR}"/${i}.confd ${i} |
364 |
done |
365 |
if use xinetd; then |
366 |
insinto /etc/xinetd |
367 |
doins etc/daemons/{rootd,proofd}.xinetd |
368 |
fi |
369 |
} |
370 |
|
371 |
desktop_install() { |
372 |
cd "${S}" |
373 |
sed -e 's,@prefix@,/usr,' \ |
374 |
build/package/debian/root-system-bin.desktop.in > root.desktop |
375 |
domenu root.desktop |
376 |
doicon "${S}"/build/package/debian/root-system-bin.png |
377 |
|
378 |
insinto /usr/share/icons/hicolor/48x48/mimetypes |
379 |
doins build/package/debian/application-x-root.png |
380 |
|
381 |
insinto /usr/share/icons/hicolor/48x48/apps |
382 |
doicon build/package/debian/root-system-bin.xpm |
383 |
} |
384 |
|
385 |
src_install() { |
386 |
emake DESTDIR="${D}" install |
387 |
|
388 |
echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root |
389 |
use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root |
390 |
use python && echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root |
391 |
use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root |
392 |
doenvd 99root |
393 |
|
394 |
# The build system installs Emacs support unconditionally and in the wrong |
395 |
# directory. Remove it and call elisp-install in case of USE=emacs. |
396 |
rm -r "${ED}"/usr/share/emacs |
397 |
if use emacs; then |
398 |
elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed" |
399 |
fi |
400 |
|
401 |
doc_install |
402 |
daemon_install |
403 |
desktop_install |
404 |
|
405 |
# Cleanup of files either already distributed or unused on Gentoo |
406 |
rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT} || die |
407 |
rm "${ED}"usr/share/root/fonts/LICENSE || die |
408 |
pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null |
409 |
rm posix/mktypes dll_stl/setup \ |
410 |
G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o || die |
411 |
rm "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib || die |
412 |
rm "${ED}"/etc/root/proof/*.sample || die |
413 |
rm -r "${ED}"/etc/root/daemons || die |
414 |
popd > /dev/null |
415 |
# these should be in PATH |
416 |
mv "${ED}"etc/root/proof/utils/pq2/pq2* \ |
417 |
"${ED}"usr/bin/ || die |
418 |
} |
419 |
|
420 |
pkg_postinst() { |
421 |
fdo-mime_desktop_database_update |
422 |
use python && python_mod_optimize /usr/$(get_libdir)/root |
423 |
} |
424 |
|
425 |
pkg_postrm() { |
426 |
fdo-mime_desktop_database_update |
427 |
use python && python_mod_cleanup /usr/$(get_libdir)/root |
428 |
} |