Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/root/files/, sci-physics/root/
Date: Thu, 05 Dec 2013 17:08:59
Message-Id: 1386263265.9befbea7304e0ca846512fe8aa6fed392d8e2243.bircoph@gentoo
1 commit: 9befbea7304e0ca846512fe8aa6fed392d8e2243
2 Author: Andrew Savchenko <bircoph <AT> gmail <DOT> com>
3 AuthorDate: Thu Dec 5 17:07:45 2013 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gmail <DOT> com>
5 CommitDate: Thu Dec 5 17:07:45 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=9befbea7
7
8 sci-physics/root: version bump and fixes
9
10 ---
11 sci-physics/root/ChangeLog | 14 ++
12 .../root/files/root-5.28.00b-asneeded.patch | 20 --
13 .../root/files/root-5.28.00b-prop-ldflags.patch | 13 --
14 .../files/root-5.32.00-explicit-functions.patch | 18 --
15 .../root/files/root-5.32.00-nobyte-compile.patch | 137 -------------
16 sci-physics/root/files/root-5.34.13-desktop.patch | 12 ++
17 sci-physics/root/files/root-5.34.13-pythia8.patch | 13 ++
18 sci-physics/root/files/root-5.34.13-unuran.patch | 40 ++++
19 sci-physics/root/metadata.xml | 1 -
20 .../{root-5.32.04.ebuild => root-5.34.13.ebuild} | 223 ++++++++++++---------
21 10 files changed, 207 insertions(+), 284 deletions(-)
22
23 diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog
24 index 4f26aae..cc4b7cb 100644
25 --- a/sci-physics/root/ChangeLog
26 +++ b/sci-physics/root/ChangeLog
27 @@ -2,6 +2,20 @@
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 # $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.96 2012/03/29 18:21:49 bicatali Exp $
30
31 +*root-5.34.13 (05 Dec 2013)
32 +
33 + 05 Dec 2013; Andrew Savchenko <bircoph@×××××.com> -root-5.32.04.ebuild,
34 + +root-5.34.13.ebuild, -files/root-5.28.00b-asneeded.patch,
35 + -files/root-5.28.00b-prop-ldflags.patch,
36 + -files/root-5.32.00-explicit-functions.patch,
37 + -files/root-5.32.00-nobyte-compile.patch, +files/root-5.34.13-desktop.patch,
38 + +files/root-5.34.13-pythia8.patch, +files/root-5.34.13-unuran.patch:
39 + Version bump. Fix Pythia8 version requirements and fix Pythia8
40 + build using patch from Oliver Freyermuth (see bug 490332 and
41 + https://sft.its.cern.ch/jira/browse/ROOT-5667). Fix c++0x USE flag.
42 + Fix installaton of python optimized modules. Fix desktop file to
43 + conform currest standard. Remove old.
44 +
45 09 Nov 2013; Andrew Savchenko <bircoph@×××××.com> +root-5.32.04.ebuild,
46 +files/root-5.28.00b-asneeded.patch, +files/root-5.28.00b-prop-ldflags.patch,
47 +files/root-5.32.00-explicit-functions.patch,
48
49 diff --git a/sci-physics/root/files/root-5.28.00b-asneeded.patch b/sci-physics/root/files/root-5.28.00b-asneeded.patch
50 deleted file mode 100644
51 index b845247..0000000
52 --- a/sci-physics/root/files/root-5.28.00b-asneeded.patch
53 +++ /dev/null
54 @@ -1,20 +0,0 @@
55 ---- root.orig/configure 2010-12-20 07:17:54.000000000 +0000
56 -+++ root/configure 2010-12-20 07:16:05.000000000 +0000
57 -@@ -709,7 +709,7 @@
58 - cat <<EOF > conftest.mk
59 - include ${ac_srcdir}/config/Makefile.${arch}
60 - conftest: conftest.c
61 -- \$(CC) \$(CFLAGS) \$(LDFLAGS) $linkdir $linklib \$< -o \$@
62 -+ \$(CC) \$(CFLAGS) \$(LDFLAGS) \$< $linkdir $linklib -o \$@
63 -
64 - conftest.c:
65 - echo "int main() { return 0; }" > \$@
66 -@@ -723,7 +723,7 @@
67 - cat <<EOF > conftest.mk
68 - include ${ac_srcdir}/config/Makefile.${arch}
69 - conftest:conftest.c
70 -- \$(CC) \$(CFLAGS) \$(LDFLAGS) $linkdir $linklib \$< -o \$@
71 -+ \$(CC) \$(CFLAGS) \$(LDFLAGS) \$< $linkdir $linklib -o \$@
72 -
73 - conftest.c:
74 - echo "extern int $linksymbol (); " > \$@
75
76 diff --git a/sci-physics/root/files/root-5.28.00b-prop-ldflags.patch b/sci-physics/root/files/root-5.28.00b-prop-ldflags.patch
77 deleted file mode 100644
78 index 7324319..0000000
79 --- a/sci-physics/root/files/root-5.28.00b-prop-ldflags.patch
80 +++ /dev/null
81 @@ -1,13 +0,0 @@
82 -diff -Naur root.orig/config/Makefile.in root/config/Makefile.in
83 ---- root.orig/config/Makefile.in 2010-12-14 17:20:26.000000000 +0300
84 -+++ root/config/Makefile.in 2010-12-17 22:33:34.902161458 +0300
85 -@@ -27,7 +27,7 @@
86 -
87 - EXTRA_CFLAGS := -Iinclude @cflags@
88 - EXTRA_CXXFLAGS := -Iinclude @cflags@
89 --EXTRA_LDFLAGS := @ldflags@
90 -+EXTRA_LDFLAGS := @ldflags@ $(LDFLAGS)
91 - WINRTDEBUG := @winrtdebug@
92 -
93 - GLBPATCHFLAGS := @glbpatchcflags@
94 -
95
96 diff --git a/sci-physics/root/files/root-5.32.00-explicit-functions.patch b/sci-physics/root/files/root-5.32.00-explicit-functions.patch
97 deleted file mode 100644
98 index 570d61e..0000000
99 --- a/sci-physics/root/files/root-5.32.00-explicit-functions.patch
100 +++ /dev/null
101 @@ -1,18 +0,0 @@
102 ---- root/io/io/Module.mk.orig 2012-02-29 19:46:38.000000000 +0400
103 -+++ root/io/io/Module.mk 2012-03-09 02:29:19.905665572 +0400
104 -@@ -67,15 +67,5 @@
105 - distclean:: distclean-$(MODNAME)
106 -
107 - ##### extra rules ######
108 --#ifeq ($(GCC_VERS_FULL),gcc-4.4.0)
109 --ifeq ($(GCC_VERS),gcc-4.4)
110 --ifneq ($(filter -O%,$(OPT)),)
111 - $(call stripsrc,$(IODIRS)/TStreamerInfoReadBuffer.o): CXXFLAGS += -DR__EXPLICIT_FUNCTION_INSTANTIATION
112 --endif
113 --endif
114 --ifeq ($(GCC_VERS),gcc-4.5)
115 --ifneq ($(filter -O%,$(OPT)),)
116 - $(call stripsrc,$(IODIRS)/TStreamerInfoReadBuffer.o): CXXFLAGS += -DR__EXPLICIT_FUNCTION_INSTANTIATION
117 --endif
118 --endif
119 --
120
121 diff --git a/sci-physics/root/files/root-5.32.00-nobyte-compile.patch b/sci-physics/root/files/root-5.32.00-nobyte-compile.patch
122 deleted file mode 100644
123 index 179e579..0000000
124 --- a/sci-physics/root/files/root-5.32.00-nobyte-compile.patch
125 +++ /dev/null
126 @@ -1,137 +0,0 @@
127 -diff -Naur root.as-needed/Makefile root/Makefile
128 ---- root.as-needed/Makefile 2011-07-10 10:42:49.758191296 +0400
129 -+++ root/Makefile 2011-07-10 10:43:21.493339703 +0400
130 -@@ -1167,10 +1167,7 @@
131 - if test "x$(RFLX_GRFLXPY)" != "x"; then \
132 - rm -f $(DESTDIR)$(LIBDIR)/$(RFLX_GRFLXPY); \
133 - fi; \
134 -- if test "x$(RFLX_GRFLXPYC)" != "x"; then \
135 -- rm -f $(DESTDIR)$(LIBDIR)/$(RFLX_GRFLXPYC); \
136 -- fi; \
137 -- if test "x$(RFLX_GRFLXPY)$(RFLX_GRFLXPYC)" != "x"; then \
138 -+ if test "x$(RFLX_GRFLXPY)" != "x"; then \
139 - dir=$(RFLX_GRFLXDD:lib/=); \
140 - while test "x$${dir}" != "x" && \
141 - test -d $(DESTDIR)$(LIBDIR)/$${dir} && \
142 -diff -Naur root.as-needed/bindings/pyroot/Module.mk root/bindings/pyroot/Module.mk
143 ---- root.as-needed/bindings/pyroot/Module.mk 2011-07-10 10:42:48.991561304 +0400
144 -+++ root/bindings/pyroot/Module.mk 2011-07-10 10:43:21.493339703 +0400
145 -@@ -48,8 +48,6 @@
146 - ROOTPY := $(subst $(MODDIR),$(LPATH),$(ROOTPYS))
147 - $(LPATH)/%.py: $(MODDIR)/%.py; cp $< $@
148 - endif
149 --ROOTPYC := $(ROOTPY:.py=.pyc)
150 --ROOTPYO := $(ROOTPY:.py=.pyo)
151 -
152 - # used in the main Makefile
153 - ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(PYROOTH))
154 -@@ -68,10 +66,8 @@
155 - include/%.h: $(PYROOTDIRI)/%.h
156 - cp $< $@
157 -
158 --%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )'
159 --%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )'
160 -
161 --$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) $(ROOTPYC) $(ROOTPYO) \
162 -+$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) \
163 - $(ROOTLIBSDEP) $(PYTHONLIBDEP)
164 - @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
165 - "$(SOFLAGS)" libPyROOT.$(SOEXT) $@ \
166 -@@ -113,7 +109,7 @@
167 -
168 - distclean-$(MODNAME): clean-$(MODNAME)
169 - @rm -f $(PYROOTDEP) $(PYROOTDS) $(PYROOTDH) $(PYROOTLIB) \
170 -- $(ROOTPY) $(ROOTPYC) $(ROOTPYO) $(PYROOTMAP) \
171 -+ $(ROOTPY) $(PYROOTMAP) \
172 - $(PYROOTPYD) $(PYTHON64DEP) $(PYTHON64)
173 -
174 - distclean:: distclean-$(MODNAME)
175 -diff -Naur root.as-needed/build/package/debian/rules root/build/package/debian/rules
176 ---- root.as-needed/build/package/debian/rules 2011-07-10 10:42:49.241549346 +0400
177 -+++ root/build/package/debian/rules 2011-07-10 10:48:06.989670589 +0400
178 -@@ -691,10 +691,6 @@
179 - -X$(SYSCONFDIR)/root/system.rootauthrc \
180 - -X$(SYSCONFDIR)/root/system.rootdaemonrc \
181 - -X$(PREFIX)/lib/root/$(SOVERS)/libAfterImage.a \
182 -- -X$(PREFIX)/lib/root/$(SOVERS)/PyCintex.pyc \
183 -- -X$(PREFIX)/lib/root/$(SOVERS)/PyCintex.pyo \
184 -- -X$(PREFIX)/lib/root/$(SOVERS)/ROOT.pyc \
185 -- -X$(PREFIX)/lib/root/$(SOVERS)/ROOT.pyo \
186 - -X$(PREFIX)/lib/root/$(SOVERS)/cint7 \
187 - -X$(PREFIX)/include/root/Minuit2
188 - # $(foreach i, \
189 -diff -Naur root.as-needed/cint/cintex/Module.mk root/cint/cintex/Module.mk
190 ---- root.as-needed/cint/cintex/Module.mk 2011-07-10 10:42:49.104889217 +0400
191 -+++ root/cint/cintex/Module.mk 2011-07-10 10:43:21.496672876 +0400
192 -@@ -31,10 +31,6 @@
193 - CINTEXPY := $(subst $(MODDIR)/python,$(LPATH),$(CINTEXPYS))
194 - $(LPATH)/%.py: $(MODDIR)/python/%.py; cp $< $@
195 - endif
196 --ifneq ($(BUILDPYTHON),no)
197 --CINTEXPYC := $(CINTEXPY:.py=.pyc)
198 --CINTEXPYO := $(CINTEXPY:.py=.pyo)
199 --endif
200 -
201 - # used in the main Makefile
202 - ALLHDRS += $(patsubst $(MODDIRI)/Cintex/%.h,include/Cintex/%.h,$(CINTEXH))
203 -@@ -86,8 +82,6 @@
204 - fi)
205 - cp $< $@
206 -
207 --%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )'
208 --%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )'
209 -
210 - $(CINTEXLIB): $(CINTEXO) $(CINTEXPY) $(CINTEXPYC) $(CINTEXPYO) \
211 - $(ORDER_) $(subst $(CINTEXLIB),,$(MAINLIBS)) $(CINTEXLIBDEP)
212 -diff -Naur root.as-needed/cint/reflex/Module.mk root/cint/reflex/Module.mk
213 ---- root.as-needed/cint/reflex/Module.mk 2011-07-10 10:42:49.074890651 +0400
214 -+++ root/cint/reflex/Module.mk 2011-07-10 10:43:21.496672876 +0400
215 -@@ -48,9 +48,6 @@
216 - RFLX_GRFLXS := $(wildcard $(RFLX_GRFLXSD)/*.py)
217 - RFLX_GRFLXPY := $(patsubst $(RFLX_GRFLXSD)/%.py,$(RFLX_GRFLXDD)/%.py,$(RFLX_GRFLXS))
218 - RFLX_GRFLXPY += $(RFLX_GCCXMLPATHPY)
219 --ifneq ($(BUILDPYTHON),no)
220 --RFLX_GRFLXPYC := $(subst .py,.pyc,$(RFLX_GRFLXPY))
221 --endif
222 -
223 - RFLX_LIBDIR = $(LIBDIR)
224 -
225 -@@ -92,7 +89,7 @@
226 -
227 - ALLEXECS += $(RFLX_GENMAPX)
228 -
229 --POSTBIN += $(RFLX_GRFLXPYC) $(RFLX_GRFLXPY)
230 -+POSTBIN += $(RFLX_GRFLXPY)
231 -
232 - ##### local rules #####
233 - .PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME) \
234 -@@ -122,8 +119,6 @@
235 - mkdir -p lib/python/genreflex; fi )
236 - cp $< $@
237 -
238 --$(RFLX_GRFLXDD)/%.pyc: $(RFLX_GRFLXDD)/%.py
239 -- @python -c 'import py_compile; py_compile.compile( "$<" )'
240 -
241 - $(RFLX_GENMAPO) : CXXFLAGS += -I$(REFLEXDIRS)/genmap
242 -
243 -@@ -149,7 +144,7 @@
244 - $(RLIBMAP) -o $@ -l $(REFLEXDICTLIB) \
245 - -d $(REFLEXDICTLIBDEPM) -c $(REFLEXL)
246 -
247 --all-$(MODNAME): $(REFLEXLIB) $(REFLEXDICTLIB) $(REFLEXDICTMAP) $(RFLX_GRFLXPYC) $(RFLX_GRFLXPY)
248 -+all-$(MODNAME): $(REFLEXLIB) $(REFLEXDICTLIB) $(REFLEXDICTMAP) $(RFLX_GRFLXPY)
249 -
250 - clean-genreflex:
251 - @rm -rf lib/python/genreflex
252 -diff -Naur root.as-needed/cint/reflex/python/CMakeLists.txt root/cint/reflex/python/CMakeLists.txt
253 ---- root.as-needed/cint/reflex/python/CMakeLists.txt 2011-07-10 10:42:49.074890651 +0400
254 -+++ root/cint/reflex/python/CMakeLists.txt 2011-07-10 10:43:21.496672876 +0400
255 -@@ -15,7 +15,7 @@
256 - ##################### sources ####################
257 -
258 - FILE(GLOB_RECURSE GENREFLEX_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} genreflex/*.py)
259 --SET(GENREFLEX_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/genreflex/genreflex.pyc PARENT_SCOPE)
260 -+SET(GENREFLEX_SCRIPT PARENT_SCOPE)
261 -
262 - ##################### gccxmlpath ####################
263 -
264
265 diff --git a/sci-physics/root/files/root-5.34.13-desktop.patch b/sci-physics/root/files/root-5.34.13-desktop.patch
266 new file mode 100644
267 index 0000000..7d47bcf
268 --- /dev/null
269 +++ b/sci-physics/root/files/root-5.34.13-desktop.patch
270 @@ -0,0 +1,12 @@
271 +diff --git a/etc/root.desktop b/etc/root.desktop
272 +index ca38211..688ecfa 100644
273 +--- a/etc/root.desktop
274 ++++ b/etc/root.desktop
275 +@@ -8,5 +8,5 @@ Name[de]=ROOT
276 + Comment=An object-oriented data analysis framework
277 + Comment[de]=Ein objektorientiertes Framework zur Datenanalyse
278 + StartupNotify=true
279 +-MimeType=application/x-root;text/x-c++src
280 +-Categories=Science;Development;Application;
281 ++MimeType=application/x-root;text/x-c++src;
282 ++Categories=Science;Development;
283
284 diff --git a/sci-physics/root/files/root-5.34.13-pythia8.patch b/sci-physics/root/files/root-5.34.13-pythia8.patch
285 new file mode 100644
286 index 0000000..07f62bb
287 --- /dev/null
288 +++ b/sci-physics/root/files/root-5.34.13-pythia8.patch
289 @@ -0,0 +1,13 @@
290 +diff --git a/montecarlo/pythia8/Module.mk b/montecarlo/pythia8/Module.mk
291 +index b3d0ee4..86fb3d5 100644
292 +--- a/montecarlo/pythia8/Module.mk
293 ++++ b/montecarlo/pythia8/Module.mk
294 +@@ -50,7 +50,7 @@ $(PYTHIA8LIB): $(PYTHIA8O) $(PYTHIA8DO) $(ORDER_) $(MAINLIBS) $(PYTHIA8LIBDEP)
295 + $(PYTHIA8DS): $(PYTHIA8H) $(PYTHIA8L) $(ROOTCINTTMPDEP)
296 + $(MAKEDIR)
297 + @echo "Generating dictionary $@..."
298 +- $(ROOTCINTTMP) -f $@ -c -I$(FPYTHIA8INCDIR) $(PYTHIA8H) $(PYTHIA8L)
299 ++ $(ROOTCINTTMP) -f $@ -c -p -I$(FPYTHIA8INCDIR) $(PYTHIA8H) $(PYTHIA8L)
300 +
301 + $(PYTHIA8MAP): $(RLIBMAP) $(MAKEFILEDEP) $(PYTHIA8L)
302 + $(RLIBMAP) -o $@ -l $(PYTHIA8LIB) \
303
304 diff --git a/sci-physics/root/files/root-5.34.13-unuran.patch b/sci-physics/root/files/root-5.34.13-unuran.patch
305 new file mode 100644
306 index 0000000..8262313
307 --- /dev/null
308 +++ b/sci-physics/root/files/root-5.34.13-unuran.patch
309 @@ -0,0 +1,40 @@
310 +diff --git a/math/unuran/Module.mk b/math/unuran/Module.mk
311 +index 00a530b..7cd22dc 100644
312 +--- a/math/unuran/Module.mk
313 ++++ b/math/unuran/Module.mk
314 +@@ -31,7 +31,7 @@ UNRS := $(wildcard $(UNRDIRS)/src/utils/*.c) \
315 + $(wildcard $(UNRDIRS)/src/uniform/*.c) \
316 + $(wildcard $(UNRDIRS)/src/urng/*.c)
317 + else
318 +-UNRTARCONTENT:=$(subst $(UNRVERS),$(UNRDIRS),$(shell mkdir -p $(UNRDIR); cd $(UNRDIR); gunzip -c $(UNRSRCS) | tar tf -))
319 ++UNRTARCONTENT:=
320 + UNRS := $(filter %.c, \
321 + $(filter $(UNRDIRS)/src/utils/%,$(UNRTARCONTENT)) \
322 + $(filter $(UNRDIRS)/src/methods/%,$(UNRTARCONTENT)) \
323 +@@ -81,10 +81,9 @@ INCLUDEFILES += $(UNURANDEP)
324 + ##### local rules #####
325 + .PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
326 +
327 +-include/%.h: $(UNURANDIRI)/%.h $(UNURANETAG)
328 ++include/%.h: $(UNURANDIRI)/%.h
329 + cp $< $@
330 +
331 +-$(UNURANDEP): $(UNRCFG)
332 + $(UNRS): $(UNURANETAG)
333 +
334 + $(UNURANETAG): $(UNRSRCS)
335 +@@ -137,12 +136,12 @@ $(UNRCFG): $(UNURANETAG)
336 + GNUMAKE=$(MAKE) ./configure CC="$$ACC" \
337 + CFLAGS="$$ACFLAGS");
338 +
339 +-$(UNURANLIB): $(UNRCFG) $(UNRO) $(UNURANO) $(UNURANDO) $(ORDER_) \
340 ++$(UNURANLIB): $(UNURANO) $(UNURANDO) $(ORDER_) \
341 + $(MAINLIBS) $(UNURANLIBDEP)
342 + @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
343 + "$(SOFLAGS)" libUnuran.$(SOEXT) $@ \
344 + "$(UNURANO) $(UNURANDO)" \
345 +- "$(UNURANLIBEXTRA) $(UNRO)"
346 ++ "$(UNURANLIBEXTRA) -lunuran"
347 +
348 + $(UNURANDS): $(UNRINIT) $(UNURANDH1) $(UNURANL) $(ROOTCINTTMPDEP)
349 + $(MAKEDIR)
350
351 diff --git a/sci-physics/root/metadata.xml b/sci-physics/root/metadata.xml
352 index 30f4635..67025ea 100644
353 --- a/sci-physics/root/metadata.xml
354 +++ b/sci-physics/root/metadata.xml
355 @@ -17,7 +17,6 @@
356 </longdescription>
357 <use>
358 <flag name="c++0x"> Build ROOT using the C++11 standard. Requires <pkg>sys-devel/gcc</pkg>&gt;=4.7.0</flag>
359 - <flag name="clarens"> Build the Clarens and PEAC plug-ins, to use in a GRID enabled analysis</flag>
360 <flag name="fits">Support for images and data from FITS files with <pkg>sci-libs/cfitsio</pkg></flag>
361 <flag name="geocad">Enable ROOT-CAD interface using <pkg>sci-libs/opencascade</pkg></flag>
362 <flag name="htmldoc">Generate html documentation</flag>
363
364 diff --git a/sci-physics/root/root-5.32.04.ebuild b/sci-physics/root/root-5.34.13.ebuild
365 similarity index 62%
366 rename from sci-physics/root/root-5.32.04.ebuild
367 rename to sci-physics/root/root-5.34.13.ebuild
368 index b685c3e..144d222 100644
369 --- a/sci-physics/root/root-5.32.04.ebuild
370 +++ b/sci-physics/root/root-5.34.13.ebuild
371 @@ -1,13 +1,12 @@
372 # Copyright 1999-2013 Gentoo Foundation
373 # Distributed under the terms of the GNU General Public License v2
374 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.32.04.ebuild,v 1.2 2013/03/02 23:27:01 hwoarang Exp $
375 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.10-r2.ebuild,v 1.1 2013/10/29 17:00:37 bicatali Exp $
376
377 EAPI=5
378
379 if [[ ${PV} == "9999" ]] ; then
380 - _SVN=subversion
381 - ESVN_REPO_URI="https://root.cern.ch/svn/root/trunk"
382 - ESVN_OPTIONS="--non-interactive --trust-server-cert"
383 + _GIT=git-2
384 + EGIT_REPO_URI="http://root.cern.ch/git/root.git"
385 SRC_URI=""
386 KEYWORDS=""
387 else
388 @@ -16,30 +15,42 @@ else
389 fi
390
391 PYTHON_COMPAT=( python2_{6,7} )
392 -inherit elisp-common eutils fdo-mime fortran-2 multilib python-single-r1 toolchain-funcs user ${_SVN}
393 +inherit elisp-common eutils fdo-mime fortran-2 ${_GIT} multilib python-single-r1 toolchain-funcs user versionator
394
395 ROOFIT_DOC_PV=2.91-33
396 TMVA_DOC_PV=4.03
397 PATCH_PV=5.28.00b
398 PATCH_PV2=5.32.00
399 +PATCH_PV3=5.34.05
400 +PATCH_PV4=5.34.13
401
402 DESCRIPTION="C++ data analysis framework and interpreter from CERN"
403 HOMEPAGE="http://root.cern.ch/"
404 SRC_URI="${SRC_URI}
405 - doc? ( ftp://root.cern.ch/${PN}/doc/ROOTUsersGuide.pdf
406 + !minimal? ( doc? (
407 math? (
408 ftp://root.cern.ch/${PN}/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf
409 http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf )
410 + metric? ( ftp://root.cern.ch/${PN}/doc/ROOTUsersGuideA4.pdf -> ROOTUsersGuideA4-${PV}.pdf )
411 + !metric? ( ftp://root.cern.ch/${PN}/doc/ROOTUsersGuideLetter.pdf -> ROOTUsersGuideLetter-${PV}.pdf )
412 htmldoc? (
413 http://root.cern.ch/drupal/sites/default/files/rootdrawing-logo.png
414 http://root.cern.ch/drupal/sites/all/themes/newsflash/images/blue/root-banner.png
415 - http://root.cern.ch/drupal/sites/all/themes/newsflash/images/info.png ) )"
416 + http://root.cern.ch/drupal/sites/all/themes/newsflash/images/info.png )
417 + ) )"
418
419 SLOT="0"
420 LICENSE="LGPL-2.1"
421 -IUSE="+X afs avahi clarens doc emacs examples fits fftw graphviz htmldoc kerberos
422 - ldap +math mpi mysql odbc +opengl openmp oracle postgres prefix pythia6
423 - pythia8 python qt4 +reflex ruby ssl xft xinetd xml xrootd"
424 +IUSE="+X afs avahi c++0x doc emacs examples fits fftw graphviz htmldoc
425 + kerberos ldap +math +metric minimal mpi mysql odbc +opengl openmp oracle postgres
426 + prefix pythia6 pythia8 python qt4 +reflex ruby sqlite ssl xinetd xml xrootd"
427 +
428 +REQUIRED_USE="
429 + !X? ( !opengl !qt4 )
430 + htmldoc? ( doc )
431 + mpi? ( math !openmp )
432 + openmp? ( math !mpi )
433 + python? ( ${PYTHON_REQUIRED_USE} )"
434
435 CDEPEND="
436 app-arch/xz-utils
437 @@ -59,42 +70,48 @@ CDEPEND="
438 x11-libs/libX11
439 x11-libs/libXext
440 x11-libs/libXpm
441 - || (
442 - >=media-libs/libafterimage-1.20[gif,jpeg,png,tiff]
443 - >=x11-wm/afterstep-2.2.11[gif,jpeg,png,tiff]
444 - )
445 - opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps )
446 - qt4? (
447 - dev-qt/qtgui:4
448 - dev-qt/qtopengl:4
449 - dev-qt/qt3support:4
450 - dev-qt/qtsvg:4
451 - dev-qt/qtwebkit:4
452 - dev-qt/qtxmlpatterns:4 )
453 - xft? ( x11-libs/libXft )
454 + !minimal? (
455 + || (
456 + >=media-libs/libafterimage-1.20[gif,jpeg,png,tiff]
457 + >=x11-wm/afterstep-2.2.11[gif,jpeg,png,tiff]
458 + )
459 + opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps )
460 + qt4? (
461 + dev-qt/qtgui:4
462 + dev-qt/qtopengl:4
463 + dev-qt/qt3support:4
464 + dev-qt/qtsvg:4
465 + dev-qt/qtwebkit:4
466 + dev-qt/qtxmlpatterns:4
467 + )
468 + x11-libs/libXft
469 )
470 - afs? ( net-fs/openafs )
471 - avahi? ( net-dns/avahi )
472 - clarens? ( dev-libs/xmlrpc-c[curl] )
473 - emacs? ( virtual/emacs )
474 - fits? ( sci-libs/cfitsio )
475 - fftw? ( sci-libs/fftw:3.0 )
476 - graphviz? ( media-gfx/graphviz )
477 - kerberos? ( virtual/krb5 )
478 - ldap? ( net-nds/openldap )
479 - math? ( sci-libs/gsl sci-mathematics/unuran mpi? ( virtual/mpi ) )
480 - mysql? ( virtual/mysql )
481 - odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
482 - oracle? ( dev-db/oracle-instantclient-basic )
483 - postgres? ( dev-db/postgresql-base )
484 - pythia6? ( sci-physics/pythia:6 )
485 - pythia8? ( <sci-physics/pythia-8.1.80:8 )
486 - ruby? (
487 - dev-lang/ruby
488 - dev-ruby/rubygems )
489 - ssl? ( dev-libs/openssl )
490 - xml? ( dev-libs/libxml2 )
491 - xrootd? ( net-libs/xrootd )"
492 + )
493 + !minimal? (
494 + afs? ( net-fs/openafs )
495 + avahi? ( net-dns/avahi )
496 + emacs? ( virtual/emacs )
497 + fits? ( sci-libs/cfitsio )
498 + fftw? ( sci-libs/fftw:3.0 )
499 + graphviz? ( media-gfx/graphviz )
500 + kerberos? ( virtual/krb5 )
501 + ldap? ( net-nds/openldap )
502 + math? ( sci-libs/gsl sci-mathematics/unuran mpi? ( virtual/mpi ) )
503 + mysql? ( virtual/mysql )
504 + odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
505 + oracle? ( dev-db/oracle-instantclient-basic )
506 + postgres? ( dev-db/postgresql-base )
507 + pythia6? ( sci-physics/pythia:6 )
508 + pythia8? ( >=sci-physics/pythia-8.1.80:8 )
509 + python? ( ${PYTHON_DEPS} )
510 + ruby? (
511 + dev-lang/ruby
512 + dev-ruby/rubygems )
513 + sqlite? ( dev-db/sqlite:3 )
514 + ssl? ( dev-libs/openssl )
515 + xml? ( dev-libs/libxml2 )
516 + xrootd? ( >=net-libs/xrootd-3.2.0 )
517 + )"
518
519 DEPEND="${CDEPEND}
520 virtual/pkgconfig"
521 @@ -105,11 +122,6 @@ RDEPEND="${CDEPEND}
522
523 PDEPEND="htmldoc? ( ~app-doc/root-docs-${PV} )"
524
525 -REQUIRED_USE="
526 - !X? ( !opengl !qt4 !xft )
527 - mpi? ( math !openmp )
528 - openmp? ( math !mpi )"
529 -
530 S="${WORKDIR}/${PN}"
531
532 pkg_setup() {
533 @@ -117,19 +129,20 @@ pkg_setup() {
534 use python && python-single-r1_pkg_setup
535 echo
536 elog "There are extra options on packages not yet in Gentoo:"
537 - elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus,"
538 + elog "Afdsmgrd, AliEn, castor, Chirp, dCache, gfal, Globus, gLite,"
539 elog "HDFS, Monalisa, MaxDB/SapDB, SRP."
540 elog "You can use the env variable EXTRA_ECONF variable for this."
541 elog "For example, for SRP, you would set: "
542 - elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\""
543 + elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=${EROOT%/}/usr/$(get_libdir)\""
544 echo
545 enewgroup rootd
546 enewuser rootd -1 -1 /var/spool/rootd rootd
547 + use minimal && return
548
549 if use math; then
550 if use openmp; then
551 - if [[ $(tc-getCC)$ == *gcc* ]] && ! tc-has-openmp; then
552 - ewarn "You are using a gcc without OpenMP capabilities"
553 + if [[ $(tc-getCXX)$ == *g++* ]] && ! tc-has-openmp; then
554 + ewarn "You are using a g++ without OpenMP capabilities"
555 die "Need an OpenMP capable compiler"
556 else
557 export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1
558 @@ -138,31 +151,36 @@ pkg_setup() {
559 export USE_MPI=1 USE_PARALLEL_MINUIT2=1
560 fi
561 fi
562 + if use c++0x && [[ $(tc-getCXX) == *g++* ]] && \
563 + ! version_is_at_least "4.7" "$(gcc-version)"; then
564 + eerror "You are using a g++ without C++0x capabilities"
565 + die "Need an C++0x capable compiler"
566 + fi
567 }
568
569 src_prepare() {
570 epatch \
571 - "${FILESDIR}"/${PN}-${PATCH_PV}-prop-ldflags.patch \
572 - "${FILESDIR}"/${PN}-${PATCH_PV}-asneeded.patch \
573 - "${FILESDIR}"/${PN}-${PATCH_PV2}-nobyte-compile.patch \
574 + "${FILESDIR}"/${PN}-${PATCH_PV2}-prop-flags.patch \
575 + "${FILESDIR}"/${PN}-${PATCH_PV3}-nobyte-compile.patch \
576 "${FILESDIR}"/${PN}-${PATCH_PV}-glibc212.patch \
577 - "${FILESDIR}"/${PN}-${PATCH_PV}-unuran.patch \
578 + "${FILESDIR}"/${PN}-${PATCH_PV4}-unuran.patch \
579 "${FILESDIR}"/${PN}-${PATCH_PV2}-afs.patch \
580 "${FILESDIR}"/${PN}-${PATCH_PV2}-cfitsio.patch \
581 "${FILESDIR}"/${PN}-${PATCH_PV2}-chklib64.patch \
582 - "${FILESDIR}"/${PN}-${PATCH_PV2}-explicit-functions.patch \
583 - "${FILESDIR}"/${PN}-${PATCH_PV2}-dotfont.patch
584 + "${FILESDIR}"/${PN}-${PATCH_PV2}-dotfont.patch \
585 + "${FILESDIR}"/${PN}-${PATCH_PV4}-pythia8.patch \
586 + "${FILESDIR}"/${PN}-${PATCH_PV4}-desktop.patch
587
588 # make sure we use system libs and headers
589 rm montecarlo/eg/inc/cfortran.h README/cfortran.doc || die
590 - rm -rf graf2d/asimage/src/libAfterImage || die
591 - rm -rf graf3d/ftgl/{inc,src} || die
592 - rm -rf graf2d/freetype/src || die
593 - rm -rf graf3d/glew/{inc,src} || die
594 - rm -rf core/pcre/src || die
595 - rm -rf math/unuran/src/unuran-*.tar.gz || die
596 + rm -r graf2d/asimage/src/libAfterImage || die
597 + rm -r graf3d/ftgl/{inc,src} || die
598 + rm -r graf2d/freetype/src || die
599 + rm -r graf3d/glew/{inc,src} || die
600 + rm -r core/pcre/src || die
601 + rm -r math/unuran/src/unuran-*.tar.gz || die
602 LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" -print0 | xargs -0 rm -f || die
603 - rm -rf core/lzma/src/*.tar.gz || die
604 + rm -r core/lzma/src/*.tar.gz || die
605 rm graf3d/gl/{inc,src}/gl2ps.* || die
606 sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' graf3d/gl/Module.mk || die
607
608 @@ -186,7 +204,7 @@ src_prepare() {
609 unset QTDIR
610
611 # Make html docs self-consistent for offline work (based on Fedora spec)
612 - if use htmldoc; then
613 + if use htmldoc && ! use minimal; then
614 epatch "${FILESDIR}"/${PN}-${PATCH_PV2}-htmldoc.patch
615 # make images local
616 sed 's!http://root.cern.ch/drupal/sites/all/themes/newsflash/images/blue/!!' \
617 @@ -203,7 +221,7 @@ src_prepare() {
618
619 src_configure() {
620 # the configure script is not the standard autotools
621 - ./configure \
622 + local mycommonconf="
623 --prefix="${EPREFIX}"/usr \
624 --etcdir="${EPREFIX}"/etc/root \
625 --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN} \
626 @@ -214,18 +232,29 @@ src_configure() {
627 --with-cxx=$(tc-getCXX) \
628 --with-f77=$(tc-getFC) \
629 --with-ld=$(tc-getCXX) \
630 + --nohowto
631 + "
632 + if use minimal; then
633 + ./configure \
634 + ${mycommonconf} \
635 + $(usex X --gminimal --minimal) \
636 + || die "configure failed"
637 + return
638 + fi
639 + # cling is disabled because in requires live llvm and clang
640 + ./configure \
641 + ${mycommonconf} \
642 --with-afs-shared=yes \
643 --with-sys-iconpath="${EPREFIX}"/usr/share/pixmaps \
644 --disable-builtin-afterimage \
645 - --disable-builtin-freetype \
646 --disable-builtin-ftgl \
647 + --disable-builtin-freetype \
648 --disable-builtin-glew \
649 --disable-builtin-pcre \
650 --disable-builtin-zlib \
651 --disable-builtin-lzma \
652 --disable-cling \
653 --enable-astiff \
654 - --enable-exceptions \
655 --enable-explicitlink \
656 --enable-gdml \
657 --enable-memstat \
658 @@ -236,10 +265,10 @@ src_configure() {
659 --fail-on-missing \
660 $(use_enable X x11) \
661 $(use_enable X asimage) \
662 + $(use_enable X xft) \
663 $(use_enable afs) \
664 $(use_enable avahi bonjour) \
665 - $(use_enable clarens) \
666 - $(use_enable clarens peac) \
667 + $(use_enable c++0x cxx11) \
668 $(use_enable fits fitsio) \
669 $(use_enable fftw fftw3) \
670 $(use_enable graphviz gviz) \
671 @@ -255,7 +284,9 @@ src_configure() {
672 $(use_enable mysql) \
673 $(use_enable odbc) \
674 $(use_enable opengl) \
675 + $(use_enable oracle) \
676 $(use_enable postgres pgsql) \
677 + $(usex postgres "--with-pgsql-incdir=$(pg_config --includedir)" "") \
678 $(use_enable prefix rpath) \
679 $(use_enable pythia6) \
680 $(use_enable pythia8) \
681 @@ -265,8 +296,8 @@ src_configure() {
682 $(use_enable reflex cintex) \
683 $(use_enable reflex) \
684 $(use_enable ruby) \
685 + $(use_enable sqlite) \
686 $(use_enable ssl) \
687 - $(use_enable xft) \
688 $(use_enable xml) \
689 $(use_enable xrootd) \
690 ${EXTRA_ECONF} \
691 @@ -274,28 +305,29 @@ src_configure() {
692 }
693
694 src_compile() {
695 - emake OPT="${CXXFLAGS}" F77OPT="${FFLAGS}"
696 - if use emacs; then
697 + emake OPT="${CXXFLAGS}" F77OPT="${FFLAGS}" ROOTSYS="${S}" LD_LIBRARY_PATH="${S}/lib"
698 + if use emacs && ! use minimal; then
699 elisp-compile build/misc/*.el || die "elisp-compile failed"
700 fi
701 }
702
703 doc_install() {
704 cd "${S}"
705 - if use doc; then
706 + if use doc && ! use minimal; then
707 einfo "Installing user's guides"
708 - dodoc "${DISTDIR}"/ROOTUsersGuide.pdf
709 + use metric && dodoc "${DISTDIR}"/ROOTUsersGuideA4-${PV}.pdf || \
710 + dodoc "${DISTDIR}"/ROOTUsersGuideLetter-${PV}.pdf
711 use math && dodoc \
712 "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \
713 "${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf
714 fi
715
716 - if use examples; then
717 + if use examples && ! use minimal; then
718 # these should really be taken care of by the root make install
719 insinto /usr/share/doc/${PF}/examples/tutorials/tmva
720 doins -r tmva/test
721 else
722 - rm -rf "${ED}"/usr/share/doc/${PF}/examples || die
723 + rm -r "${ED}"/usr/share/doc/${PF}/examples || die
724 fi
725 }
726
727 @@ -319,10 +351,9 @@ daemon_install() {
728
729 desktop_install() {
730 cd "${S}"
731 - sed -e 's,@prefix@,/usr,' \
732 - build/package/debian/root-system-bin.desktop.in > root.desktop
733 - domenu root.desktop
734 - doicon "${S}"/build/package/debian/root-system-bin.png
735 + echo "Icon=root-system-bin" >> etc/root.desktop
736 + domenu etc/root.desktop
737 + doicon build/package/debian/root-system-bin.png
738
739 insinto /usr/share/icons/hicolor/48x48/mimetypes
740 doins build/package/debian/application-x-root.png
741 @@ -335,18 +366,20 @@ src_install() {
742 emake DESTDIR="${D}" install
743
744 echo "LDPATH=${EPREFIX}/usr/$(get_libdir)/root" > 99root
745 - use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root
746 - if use python; then
747 - echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
748 - python_optimize /usr/$(get_libdir)/root
749 + if ! use minimal; then
750 + use pythia8 && echo "PYTHIA8=${EPREFIX}/usr" >> 99root
751 + if use python; then
752 + echo "PYTHONPATH=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
753 + python_optimize "${D}/usr/$(get_libdir)/root"
754 + fi
755 + use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
756 fi
757 - use ruby && echo "RUBYLIB=${EPREFIX}/usr/$(get_libdir)/root" >> 99root
758 doenvd 99root
759
760 # The build system installs Emacs support unconditionally and in the wrong
761 # directory. Remove it and call elisp-install in case of USE=emacs.
762 - rm -rf "${ED}"/usr/share/emacs
763 - if use emacs; then
764 + rm -r "${ED}"/usr/share/emacs
765 + if use emacs && ! use minimal; then
766 elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed"
767 fi
768
769 @@ -358,11 +391,11 @@ src_install() {
770 rm "${ED}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT} || die
771 rm "${ED}"usr/share/root/fonts/LICENSE || die
772 pushd "${ED}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null
773 - rm -f posix/mktypes dll_stl/setup \
774 + rm posix/mktypes dll_stl/setup \
775 G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o || die
776 - rm -f "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib || die
777 - rm -f "${ED}"/etc/root/proof/*.sample || die
778 - rm -rf "${ED}"/etc/root/daemons || die
779 + rm "${ED}"usr/$(get_libdir)/root/cint/cint/include/makehpib || die
780 + rm "${ED}"/etc/root/proof/*.sample || die
781 + rm -r "${ED}"/etc/root/daemons || die
782 popd > /dev/null
783 # these should be in PATH
784 mv "${ED}"etc/root/proof/utils/pq2/pq2* \