Gentoo Archives: gentoo-commits

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