Gentoo Archives: gentoo-commits

From: "git@oystercatcher mirror+tproxy" <git@××××××××××××××××××××.org>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-physics/root/, sci-physics/root/files/
Date: Tue, 03 Mar 2015 04:31:35
Message-Id: 1425356918.fdaad17b655abec00d1f4d5f2963774ad51e0dab.git@gentoo
1 commit: fdaad17b655abec00d1f4d5f2963774ad51e0dab
2 Author: Andrew Savchenko <bircoph <AT> gmail <DOT> com>
3 AuthorDate: Tue Mar 3 04:28:38 2015 +0000
4 Commit: git@oystercatcher mirror+tproxy <git <AT> oystercatcher <DOT> gentoo <DOT> org>
5 CommitDate: Tue Mar 3 04:28:38 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=fdaad17b
7
8 sci-physics/root: 5.34.26 is now in portage
9
10 Package-Manager: portage-2.2.17
11 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
12
13 ---
14 sci-physics/root/ChangeLog | 5 +
15 sci-physics/root/files/root-5.32.00-dotfont.patch | 58 ---
16 .../root/files/root-5.34.05-nobyte-compile.patch | 137 -------
17 sci-physics/root/metadata.xml | 3 -
18 sci-physics/root/root-5.34.26.ebuild | 449 ---------------------
19 5 files changed, 5 insertions(+), 647 deletions(-)
20
21 diff --git a/sci-physics/root/ChangeLog b/sci-physics/root/ChangeLog
22 index 1553e5c..d1fdd9d 100644
23 --- a/sci-physics/root/ChangeLog
24 +++ b/sci-physics/root/ChangeLog
25 @@ -2,6 +2,11 @@
26 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
27 # $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.96 2012/03/29 18:21:49 bicatali Exp $
28
29 + 03 Mar 2015; Andrew Savchenko <bircoph@g.o> -root-5.34.26.ebuild,
30 + -files/root-5.32.00-dotfont.patch, -files/root-5.34.05-nobyte-compile.patch,
31 + metadata.xml:
32 + 5.34.26 is moved to the portage tree
33 +
34 02 Mar 2015; Andrew Savchenko <bircoph@g.o> metadata.xml:
35 Indentation fixes (in order to conform to portage version)
36
37
38 diff --git a/sci-physics/root/files/root-5.32.00-dotfont.patch b/sci-physics/root/files/root-5.32.00-dotfont.patch
39 deleted file mode 100644
40 index 85d6dea..0000000
41 --- a/sci-physics/root/files/root-5.32.00-dotfont.patch
42 +++ /dev/null
43 @@ -1,58 +0,0 @@
44 ---- root/html/src/TClassDocOutput.cxx.orig 2012-05-25 16:18:10.000000000 +0400
45 -+++ root/html/src/TClassDocOutput.cxx 2012-05-29 21:36:53.813593012 +0400
46 -@@ -625,7 +625,7 @@
47 - << "size=\"8,10\";" << endl
48 - << "ratio=auto;" << endl
49 - << "margin=0;" << endl
50 -- << "node [shape=plaintext,fontsize=40,width=4,height=0.75];" << endl
51 -+ << "node [shape=plaintext,fontsize=40,width=4,height=0.75,fontname=\"DejaVu Serif\"];" << endl
52 - << "\"" << fCurrentClass->GetName() << "\" [shape=ellipse];" << endl;
53 -
54 - std::stringstream ssDep;
55 -@@ -704,7 +704,7 @@
56 - outdot << ";" << endl;
57 - } else if (writeAndMoreFor) {
58 - outdot << " \"...andmore" << writeAndMoreFor->GetName()
59 -- << "\" [label=\"...and more\",fontname=\"Times-Italic\",fillcolor=lightgrey,style=filled];" << endl;
60 -+ << "\" [label=\"...and more\",fontname=\"DejaVu Serif Italic\",fillcolor=lightgrey,style=filled];" << endl;
61 - }
62 - }
63 - if (!levelExists) break;
64 -@@ -733,7 +733,7 @@
65 - << "ranksep=0.1;" << endl
66 - << "nodesep=0;" << endl
67 - << "margin=0;" << endl;
68 -- outdot << " node [style=filled,width=0.7,height=0.15,fixedsize=true,shape=plaintext,fontsize=10];" << endl;
69 -+ outdot << " node [style=filled,width=0.7,height=0.15,fixedsize=true,shape=plaintext,fontsize=10,fontname=\"DejaVu Serif\"];" << endl;
70 -
71 - std::stringstream ssDep;
72 - const int numColumns = 3;
73 -@@ -939,7 +939,7 @@
74 - << "ranksep=0;" << endl
75 - << "nodesep=0;" << endl
76 - << "size=\"8,10\";" << endl
77 -- << "node [fontsize=20,shape=plaintext];" << endl;
78 -+ << "node [fontsize=20,shape=plaintext,fontname=\"DejaVu Serif\"];" << endl;
79 -
80 - for (std::list<std::string>::iterator iFile = listFilesToParse.begin();
81 - iFile != listFilesToParse.end(); ++iFile) {
82 -@@ -999,7 +999,8 @@
83 - << "ranksep=0.7;" << endl
84 - << "nodesep=0.3;" << endl
85 - << "size=\"8,8\";" << endl
86 -- << "ratio=compress;" << endl;
87 -+ << "ratio=compress;" << endl
88 -+ << "node [fontname=\"DejaVu Serif\"];" << endl;
89 -
90 - TString libs(fCurrentClass->GetSharedLibs());
91 - outdot << "\"All Libraries\" [URL=\"LibraryDependencies.html\",shape=box,rank=max,fillcolor=lightgray,style=filled];" << endl;
92 -@@ -1109,7 +1110,8 @@
93 -
94 - dotout << "digraph G {" << endl
95 - << "ratio=auto;" << endl
96 -- << "rankdir=RL;" << endl;
97 -+ << "rankdir=RL;" << endl
98 -+ << "node [fontname=\"DejaVu Serif\"];" << endl;
99 -
100 - // loop on all classes
101 - TClassDocInfo* cdi = 0;
102
103 diff --git a/sci-physics/root/files/root-5.34.05-nobyte-compile.patch b/sci-physics/root/files/root-5.34.05-nobyte-compile.patch
104 deleted file mode 100644
105 index ec67a15..0000000
106 --- a/sci-physics/root/files/root-5.34.05-nobyte-compile.patch
107 +++ /dev/null
108 @@ -1,137 +0,0 @@
109 -diff -Naur root.as-needed/Makefile root/Makefile
110 ---- a/Makefile.orig 2013-02-15 02:27:56.000000000 +0400
111 -+++ b/Makefile 2013-02-23 02:22:14.556465852 +0400
112 -@@ -1258,10 +1258,7 @@
113 - for lib in $(RFLX_GRFLXPY); do \
114 - rm -f $(DESTDIR)$(LIBDIR)/$${lib#lib/}; \
115 - done; \
116 -- for lib in $(RFLX_GRFLXPYC); do \
117 -- rm -f $(DESTDIR)$(LIBDIR)/$${lib#lib/}; \
118 -- done; \
119 -- if test "x$(RFLX_GRFLXPY)$(RFLX_GRFLXPYC)" != "x"; then \
120 -+ if test "x$(RFLX_GRFLXPY)" != "x"; then \
121 - dir=$(subst lib/,,$(RFLX_GRFLXDD)); \
122 - while test "x$${dir}" != "x" && \
123 - test -d $(DESTDIR)$(LIBDIR)/$${dir} && \
124 -diff -Naur root.as-needed/bindings/pyroot/Module.mk root/bindings/pyroot/Module.mk
125 ---- root.as-needed/bindings/pyroot/Module.mk 2011-07-10 10:42:48.991561304 +0400
126 -+++ root/bindings/pyroot/Module.mk 2011-07-10 10:43:21.493339703 +0400
127 -@@ -48,8 +48,6 @@
128 - ROOTPY := $(subst $(MODDIR),$(LPATH),$(ROOTPYS))
129 - $(LPATH)/%.py: $(MODDIR)/%.py; cp $< $@
130 - endif
131 --ROOTPYC := $(ROOTPY:.py=.pyc)
132 --ROOTPYO := $(ROOTPY:.py=.pyo)
133 -
134 - # used in the main Makefile
135 - ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(PYROOTH))
136 -@@ -68,10 +66,8 @@
137 - include/%.h: $(PYROOTDIRI)/%.h
138 - cp $< $@
139 -
140 --%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )'
141 --%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )'
142 -
143 --$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) $(ROOTPYC) $(ROOTPYO) \
144 -+$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) \
145 - $(ROOTLIBSDEP) $(PYTHONLIBDEP)
146 - @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
147 - "$(SOFLAGS)" libPyROOT.$(SOEXT) $@ \
148 -@@ -113,7 +109,7 @@
149 -
150 - distclean-$(MODNAME): clean-$(MODNAME)
151 - @rm -f $(PYROOTDEP) $(PYROOTDS) $(PYROOTDH) $(PYROOTLIB) \
152 -- $(ROOTPY) $(ROOTPYC) $(ROOTPYO) $(PYROOTMAP) \
153 -+ $(ROOTPY) $(PYROOTMAP) \
154 - $(PYROOTPYD) $(PYTHON64DEP) $(PYTHON64)
155 -
156 - distclean:: distclean-$(MODNAME)
157 -diff -Naur root.as-needed/build/package/debian/rules root/build/package/debian/rules
158 ---- root.as-needed/build/package/debian/rules 2011-07-10 10:42:49.241549346 +0400
159 -+++ root/build/package/debian/rules 2011-07-10 10:48:06.989670589 +0400
160 -@@ -691,10 +691,6 @@
161 - -X$(SYSCONFDIR)/root/system.rootauthrc \
162 - -X$(SYSCONFDIR)/root/system.rootdaemonrc \
163 - -X$(PREFIX)/lib/root/$(SOVERS)/libAfterImage.a \
164 -- -X$(PREFIX)/lib/root/$(SOVERS)/PyCintex.pyc \
165 -- -X$(PREFIX)/lib/root/$(SOVERS)/PyCintex.pyo \
166 -- -X$(PREFIX)/lib/root/$(SOVERS)/ROOT.pyc \
167 -- -X$(PREFIX)/lib/root/$(SOVERS)/ROOT.pyo \
168 - -X$(PREFIX)/lib/root/$(SOVERS)/cint7 \
169 - -X$(PREFIX)/include/root/Minuit2
170 - # $(foreach i, \
171 -diff -Naur root.as-needed/cint/cintex/Module.mk root/cint/cintex/Module.mk
172 ---- root.as-needed/cint/cintex/Module.mk 2011-07-10 10:42:49.104889217 +0400
173 -+++ root/cint/cintex/Module.mk 2011-07-10 10:43:21.496672876 +0400
174 -@@ -31,10 +31,6 @@
175 - CINTEXPY := $(subst $(MODDIR)/python,$(LPATH),$(CINTEXPYS))
176 - $(LPATH)/%.py: $(MODDIR)/python/%.py; cp $< $@
177 - endif
178 --ifneq ($(BUILDPYTHON),no)
179 --CINTEXPYC := $(CINTEXPY:.py=.pyc)
180 --CINTEXPYO := $(CINTEXPY:.py=.pyo)
181 --endif
182 -
183 - # used in the main Makefile
184 - ALLHDRS += $(patsubst $(MODDIRI)/Cintex/%.h,include/Cintex/%.h,$(CINTEXH))
185 -@@ -86,8 +82,6 @@
186 - fi)
187 - cp $< $@
188 -
189 --%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )'
190 --%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )'
191 -
192 - $(CINTEXLIB): $(CINTEXO) $(CINTEXPY) $(CINTEXPYC) $(CINTEXPYO) \
193 - $(ORDER_) $(subst $(CINTEXLIB),,$(MAINLIBS)) $(CINTEXLIBDEP)
194 -diff -Naur root.as-needed/cint/reflex/Module.mk root/cint/reflex/Module.mk
195 ---- root.as-needed/cint/reflex/Module.mk 2011-07-10 10:42:49.074890651 +0400
196 -+++ root/cint/reflex/Module.mk 2011-07-10 10:43:21.496672876 +0400
197 -@@ -48,9 +48,6 @@
198 - RFLX_GRFLXS := $(wildcard $(RFLX_GRFLXSD)/*.py)
199 - RFLX_GRFLXPY := $(patsubst $(RFLX_GRFLXSD)/%.py,$(RFLX_GRFLXDD)/%.py,$(RFLX_GRFLXS))
200 - RFLX_GRFLXPY += $(RFLX_GCCXMLPATHPY)
201 --ifneq ($(BUILDPYTHON),no)
202 --RFLX_GRFLXPYC := $(subst .py,.pyc,$(RFLX_GRFLXPY))
203 --endif
204 -
205 - RFLX_LIBDIR = $(LIBDIR)
206 -
207 -@@ -92,7 +89,7 @@
208 -
209 - ALLEXECS += $(RFLX_GENMAPX)
210 -
211 --POSTBIN += $(RFLX_GRFLXPYC) $(RFLX_GRFLXPY)
212 -+POSTBIN += $(RFLX_GRFLXPY)
213 -
214 - ##### local rules #####
215 - .PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME) \
216 -@@ -122,8 +119,6 @@
217 - mkdir -p lib/python/genreflex; fi )
218 - cp $< $@
219 -
220 --$(RFLX_GRFLXDD)/%.pyc: $(RFLX_GRFLXDD)/%.py
221 -- @python -c 'import py_compile; py_compile.compile( "$<" )'
222 -
223 - $(RFLX_GENMAPO) : CXXFLAGS += -I$(REFLEXDIRS)/genmap
224 -
225 -@@ -149,7 +144,7 @@
226 - $(RLIBMAP) -o $@ -l $(REFLEXDICTLIB) \
227 - -d $(REFLEXDICTLIBDEPM) -c $(REFLEXL)
228 -
229 --all-$(MODNAME): $(REFLEXLIB) $(REFLEXDICTLIB) $(REFLEXDICTMAP) $(RFLX_GRFLXPYC) $(RFLX_GRFLXPY)
230 -+all-$(MODNAME): $(REFLEXLIB) $(REFLEXDICTLIB) $(REFLEXDICTMAP) $(RFLX_GRFLXPY)
231 -
232 - clean-genreflex:
233 - @rm -rf lib/python/genreflex
234 -diff -Naur root.as-needed/cint/reflex/python/CMakeLists.txt root/cint/reflex/python/CMakeLists.txt
235 ---- root.as-needed/cint/reflex/python/CMakeLists.txt 2011-07-10 10:42:49.074890651 +0400
236 -+++ root/cint/reflex/python/CMakeLists.txt 2011-07-10 10:43:21.496672876 +0400
237 -@@ -15,7 +15,7 @@
238 - ##################### sources ####################
239 -
240 - FILE(GLOB_RECURSE GENREFLEX_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} genreflex/*.py)
241 --SET(GENREFLEX_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/genreflex/genreflex.pyc PARENT_SCOPE)
242 -+SET(GENREFLEX_SCRIPT PARENT_SCOPE)
243 -
244 - ##################### gccxmlpath ####################
245 -
246
247 diff --git a/sci-physics/root/metadata.xml b/sci-physics/root/metadata.xml
248 index 0ff221b..7e1dbd5 100644
249 --- a/sci-physics/root/metadata.xml
250 +++ b/sci-physics/root/metadata.xml
251 @@ -15,15 +15,12 @@
252 GUI toolkit, and a complete visualization framework.
253 </longdescription>
254 <use>
255 - <flag name="c++11"> Build ROOT using the C++11 standard</flag>
256 - <flag name="c++14"> Build ROOT using the C++14 standard</flag>
257 <flag name="fits">Support for images and data from FITS files with <pkg>sci-libs/cfitsio</pkg></flag>
258 <flag name="geocad">Enable ROOT-CAD interface using <pkg>sci-libs/opencascade</pkg></flag>
259 <flag name="http">Enable http server support including but not limited to fastcgi support</flag>
260 <flag name="math">Build all math related libraries plugins, needs <pkg>sci-libs/gsl</pkg> </flag>
261 <flag name="pythia6">Build the interface for <pkg>sci-physics/pythia</pkg> version 6.x </flag>
262 <flag name="pythia8">Build the interface for <pkg>sci-physics/pythia</pkg> version 8.x </flag>
263 - <flag name="reflex">Build the reflection database for the C++ interpreter</flag>
264 <flag name="xrootd">Build the interface for <pkg>net-libs/xrootd</pkg> </flag>
265 </use>
266 </pkgmetadata>
267
268 diff --git a/sci-physics/root/root-5.34.26.ebuild b/sci-physics/root/root-5.34.26.ebuild
269 deleted file mode 100644
270 index 15ec664..0000000
271 --- a/sci-physics/root/root-5.34.26.ebuild
272 +++ /dev/null
273 @@ -1,449 +0,0 @@
274 -# Copyright 1999-2015 Gentoo Foundation
275 -# Distributed under the terms of the GNU General Public License v2
276 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/root-5.34.18-r1.ebuild,v 1.3 2014/03/27 18:51:54 bicatali Exp $
277 -
278 -EAPI=5
279 -
280 -if [[ ${PV} == "9999" ]] ; then
281 - inherit git-r3
282 - EGIT_REPO_URI="http://root.cern.ch/git/root.git"
283 -else
284 - SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz"
285 - KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
286 -fi
287 -SRC_URI+=" http://dev.gentoo.org/~bircoph/patches/${PN}-5.34.26-ldflags.patch.xz"
288 -
289 -PYTHON_COMPAT=( python2_7 )
290 -
291 -inherit elisp-common eutils fdo-mime fortran-2 multilib python-single-r1 \
292 - toolchain-funcs user versionator
293 -
294 -DESCRIPTION="C++ data analysis framework and interpreter from CERN"
295 -HOMEPAGE="http://root.cern.ch/"
296 -DOC_URI="ftp://root.cern.ch/${PN}/doc"
297 -
298 -SLOT="0/$(get_version_component_range 1-3 ${PV})"
299 -LICENSE="LGPL-2.1 freedist MSttfEULA LGPL-3 libpng UoI-NCSA"
300 -IUSE="+X afs avahi c++11 c++14 doc emacs examples fits fftw
301 - graphviz http kerberos ldap +math minimal mpi mysql odbc
302 - +opengl openmp oracle postgres prefix pythia6 pythia8
303 - python qt4 +reflex ruby sqlite ssl xinetd xml xrootd"
304 -
305 -# TODO: add support for: davix
306 -# TODO: unbundle: vdt
307 -
308 -REQUIRED_USE="
309 - !X? ( !minimal? ( !opengl !qt4 ) )
310 - mpi? ( math !openmp )
311 - openmp? ( math !mpi )
312 - python? ( ${PYTHON_REQUIRED_USE} )
313 -"
314 -
315 -CDEPEND="
316 - app-arch/xz-utils:0=
317 - >=dev-lang/cfortran-4.4-r2
318 - dev-libs/libpcre:3=
319 - media-fonts/dejavu
320 - media-libs/freetype:2=
321 - media-libs/giflib:0=
322 - media-libs/libpng:0=
323 - media-libs/tiff:0=
324 - sys-libs/zlib:0=
325 - virtual/jpeg:0
326 - virtual/shadow
327 - X? (
328 - media-libs/ftgl:0=
329 - media-libs/glew:0=
330 - x11-libs/libX11:0=
331 - x11-libs/libXext:0=
332 - x11-libs/libXpm:0=
333 - !minimal? (
334 - || (
335 - media-libs/libafterimage:0=[gif,jpeg,png,tiff]
336 - >=x11-wm/afterstep-2.2.11:0=[gif,jpeg,png,tiff]
337 - )
338 - opengl? ( virtual/opengl virtual/glu x11-libs/gl2ps:0= )
339 - qt4? (
340 - dev-qt/qtgui:4=
341 - dev-qt/qtopengl:4=
342 - dev-qt/qt3support:4=
343 - dev-qt/qtsvg:4=
344 - dev-qt/qtwebkit:4=
345 - dev-qt/qtxmlpatterns:4=
346 - )
347 - x11-libs/libXft:0=
348 - )
349 - )
350 - !minimal? (
351 - afs? ( net-fs/openafs )
352 - avahi? ( net-dns/avahi:0= )
353 - emacs? ( virtual/emacs )
354 - fits? ( sci-libs/cfitsio:0= )
355 - fftw? ( sci-libs/fftw:3.0= )
356 - graphviz? ( media-gfx/graphviz:0= )
357 - http? ( dev-libs/fcgi:0= )
358 - kerberos? ( virtual/krb5 )
359 - ldap? ( net-nds/openldap:0= )
360 - math? (
361 - sci-libs/gsl:0=
362 - sci-mathematics/unuran:0=
363 - mpi? ( virtual/mpi )
364 - )
365 - mysql? ( virtual/mysql )
366 - odbc? ( || ( dev-db/libiodbc:0= dev-db/unixODBC:0= ) )
367 - oracle? ( dev-db/oracle-instantclient-basic:0= )
368 - postgres? ( dev-db/postgresql:= )
369 - pythia6? ( sci-physics/pythia:6= )
370 - pythia8? ( >=sci-physics/pythia-8.1.80:8= )
371 - python? ( ${PYTHON_DEPS} )
372 - ruby? (
373 - dev-lang/ruby:=
374 - dev-ruby/rubygems:=
375 - )
376 - sqlite? ( dev-db/sqlite:3= )
377 - ssl? ( dev-libs/openssl:0= )
378 - xml? ( dev-libs/libxml2:2= )
379 - xrootd? ( >=net-libs/xrootd-3.3.5:0= )
380 - )"
381 -
382 -DEPEND="${CDEPEND}
383 - virtual/pkgconfig"
384 -
385 -RDEPEND="${CDEPEND}
386 - reflex? ( dev-cpp/gccxml )
387 - xinetd? ( sys-apps/xinetd )"
388 -
389 -PDEPEND="doc? ( !minimal? ( ~app-doc/root-docs-${PV}[http=,math=] ) )"
390 -
391 -S="${WORKDIR}/${PN}"
392 -
393 -# install stuff in ${P} and not ${PF} for easier tracking in root-docs
394 -DOC_DIR="/usr/share/doc/${P}"
395 -
396 -die_compiler() {
397 - eerror "You are using a $(tc-getCXX) without C++$1 capabilities"
398 - die "Need one of the following C++$1 capable compilers:\n"\
399 - " >=sys-devel/gcc[cxx]-$2\n"\
400 - " >=sys-devel/clang-$3\n"\
401 - " >=dev-lang/icc-$4"
402 -}
403 -
404 -# check compiler to satisfy minimal versions
405 -# $1 - std version
406 -# $2 - g++
407 -# $3 - clang++
408 -# $4 - icc/icpc
409 -check_compiler() {
410 - case "$(tc-getCXX)" in
411 - *clang++*)
412 - version_is_at_least "$3" "$(has_version sys-devel/clang)" || die_compiler "$1" "$2" "$3" "$4"
413 - ;;
414 - *g++*)
415 - version_is_at_least "$2" "$(gcc-version)" || die_compiler "$1" "$2" "$3" "$4"
416 - ;;
417 - *icc*|*icpc*)
418 - version_is_at_least "$4" "$(has_version dev-lang/icc)" || die_compiler "$1" "$2" "$3" "$4"
419 - ;;
420 - *)
421 - ewarn "You are using an unsupported compiler."
422 - ewarn "Please report any issues upstream."
423 - ;;
424 - esac
425 -}
426 -
427 -pkg_setup() {
428 - fortran-2_pkg_setup
429 - use python && python-single-r1_pkg_setup
430 - echo
431 - elog "There are extra options on packages not yet in Gentoo:"
432 - elog "Afdsmgrd, AliEn, castor, Chirp, dCache, gfal, Globus, gLite,"
433 - elog "HDFS, Monalisa, MaxDB/SapDB, SRP."
434 - elog "You can use the env variable EXTRA_ECONF variable for this."
435 - elog "For example, for SRP, you would set: "
436 - elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=${EROOT%/}/usr/$(get_libdir)\""
437 - echo
438 -
439 - enewgroup rootd
440 - enewuser rootd -1 -1 /var/spool/rootd rootd
441 -
442 - use minimal && return
443 -
444 - if use math; then
445 - if use openmp; then
446 - if [[ "$(tc-getCXX)" == *g++* && "$(tc-getCXX)" != *clang++* ]] && ! tc-has-openmp; then
447 - ewarn "You are using a g++ without OpenMP capabilities"
448 - die "Need an OpenMP capable compiler"
449 - else
450 - export USE_OPENMP=1 USE_PARALLEL_MINUIT2=1
451 - fi
452 - elif use mpi; then
453 - export USE_MPI=1 USE_PARALLEL_MINUIT2=1
454 - fi
455 - fi
456 -
457 - use c++11 && check_compiler "11" "4.8" "3.3" "13"
458 - use c++14 && check_compiler "14" "4.9" "3.4" "15"
459 -}
460 -
461 -src_prepare() {
462 - epatch \
463 - "${FILESDIR}"/${PN}-5.28.00b-glibc212.patch \
464 - "${FILESDIR}"/${PN}-5.32.00-afs.patch \
465 - "${FILESDIR}"/${PN}-5.32.00-cfitsio.patch \
466 - "${FILESDIR}"/${PN}-5.32.00-chklib64.patch \
467 - "${FILESDIR}"/${PN}-5.32.00-dotfont.patch \
468 - "${FILESDIR}"/${PN}-5.34.05-nobyte-compile.patch \
469 - "${FILESDIR}"/${PN}-5.34.13-unuran.patch \
470 - "${FILESDIR}"/${PN}-5.34.13-desktop.patch \
471 - "${WORKDIR}"/${PN}-5.34.26-ldflags.patch
472 -
473 - # make sure we use system libs and headers
474 - rm montecarlo/eg/inc/cfortran.h README/cfortran.doc || die
475 - rm -r graf2d/asimage/src/libAfterImage || die
476 - rm -r graf3d/ftgl/{inc,src} || die
477 - rm -r graf2d/freetype/src || die
478 - rm -r graf3d/glew/{inc,src} || die
479 - rm -r core/pcre/src || die
480 - rm -r math/unuran/src/unuran-*.tar.gz || die
481 - LANG=C LC_ALL=C find core/zip -type f -name "[a-z]*" -print0 | \
482 - xargs -0 rm || die
483 - rm -r core/lzma/src/*.tar.gz || die
484 - rm graf3d/gl/{inc,src}/gl2ps.* || die
485 - sed -i -e 's/^GLLIBS *:= .* $(OPENGLLIB)/& -lgl2ps/' \
486 - graf3d/gl/Module.mk || die
487 -
488 - # In Gentoo, libPythia6 is called libpythia6
489 - # iodbc is in /usr/include/iodbc
490 - # pg_config.h is checked instead of libpq-fe.h
491 - sed -i \
492 - -e 's:libPythia6:libpythia6:g' \
493 - -e 's:$ODBCINCDIR:$ODBCINCDIR /usr/include/iodbc:' \
494 - -e 's:libpq-fe.h:pg_config.h:' \
495 - configure || die "adjusting configure for Gentoo failed"
496 -
497 - # prefixify the configure script
498 - sed -i \
499 - -e 's:/usr:${EPREFIX}/usr:g' \
500 - configure || die "prefixify configure failed"
501 -
502 - # CSS should use local images
503 - sed -i -e 's,http://.*/,,' etc/html/ROOT.css || die "html sed failed"
504 -
505 - # fix reflex path (bug #497280)
506 - sed -i -e 's|${ROOTSYS}/lib|@libdir@|' config/genreflex.in || die
507 -
508 - # QTDIR only used for qt3 in gentoo, and configure looks for it.
509 - unset QTDIR
510 -}
511 -
512 -src_configure() {
513 - local -a myconf
514 - # Some compilers need special care
515 - case "$(tc-getCXX)" in
516 - *clang++*)
517 - myconf=(
518 - --with-clang
519 - --with-f77="$(tc-getFC)"
520 - )
521 - ;;
522 - *icc*|*icpc*)
523 - # For icc we need to provide architecture manually
524 - # and not to tamper with tc-get*
525 - use x86 && myconf=( linuxicc )
526 - use amd64 && myconf=( linuxx8664icc )
527 - ;;
528 - *) # gcc goes here too
529 - myconf=(
530 - --with-cc="$(tc-getCC)"
531 - --with-cxx="$(tc-getCXX)"
532 - --with-f77="$(tc-getFC)"
533 - --with-ld="$(tc-getCXX)"
534 - )
535 - ;;
536 - esac
537 -
538 - # the configure script is not the standard autotools
539 - myconf+=(
540 - --prefix="${EPREFIX}/usr"
541 - --etcdir="${EPREFIX}/etc/root"
542 - --libdir="${EPREFIX}/usr/$(get_libdir)/${PN}"
543 - --docdir="${EPREFIX}${DOC_DIR}"
544 - --tutdir="${EPREFIX}${DOC_DIR}/examples/tutorials"
545 - --testdir="${EPREFIX}${DOC_DIR}/examples/tests"
546 - --disable-werror
547 - --nohowto
548 - --cflags='${CFLAGS}'
549 - --cxxflags='${CXXFLAGS}'
550 - --ldflags='${LDFLAGS}'
551 - )
552 -
553 - if use minimal; then
554 - myconf+=( $(usex X --gminimal --minimal) )
555 - else
556 - myconf+=(
557 - --with-afs-shared=yes
558 - --with-sys-iconpath="${EPREFIX}/usr/share/pixmaps"
559 - --disable-builtin-afterimage
560 - --disable-builtin-ftgl
561 - --disable-builtin-freetype
562 - --disable-builtin-glew
563 - --disable-builtin-pcre
564 - --disable-builtin-zlib
565 - --disable-builtin-lzma
566 - --disable-cling
567 - --enable-astiff
568 - --enable-explicitlink
569 - --enable-gdml
570 - --enable-memstat
571 - --enable-shadowpw
572 - --enable-shared
573 - --enable-soversion
574 - --enable-table
575 - --fail-on-missing
576 - $(use_enable X x11)
577 - $(use_enable X asimage)
578 - $(use_enable X xft)
579 - $(use_enable afs)
580 - $(use_enable avahi bonjour)
581 - $(use_enable c++11 cxx11)
582 - $(use_enable c++14 cxx14)
583 - $(use_enable fits fitsio)
584 - $(use_enable fftw fftw3)
585 - $(use_enable graphviz gviz)
586 - $(use_enable http)
587 - $(use_enable kerberos krb5)
588 - $(use_enable ldap)
589 - $(use_enable math gsl-shared)
590 - $(use_enable math genvector)
591 - $(use_enable math mathmore)
592 - $(use_enable math minuit2)
593 - $(use_enable math roofit)
594 - $(use_enable math tmva)
595 - $(use_enable math unuran)
596 - $(use_enable mysql)
597 - $(usex mysql "--with-mysql-incdir=${EPREFIX}/usr/include/mysql" "")
598 - $(use_enable odbc)
599 - $(use_enable opengl)
600 - $(use_enable oracle)
601 - $(use_enable postgres pgsql)
602 - $(usex postgres "--with-pgsql-incdir=$(pg_config --includedir)" "")
603 - $(use_enable prefix rpath)
604 - $(use_enable pythia6)
605 - $(use_enable pythia8)
606 - $(use_enable python)
607 - $(use_enable qt4 qt)
608 - $(use_enable qt4 qtgsi)
609 - $(use_enable reflex cintex)
610 - $(use_enable reflex)
611 - $(use_enable ruby)
612 - $(use_enable sqlite)
613 - $(use_enable ssl)
614 - $(use_enable xml)
615 - $(use_enable xrootd)
616 - ${EXTRA_ECONF}
617 - )
618 - fi
619 -
620 - ./configure ${myconf[@]} || die "configure failed"
621 -}
622 -
623 -src_compile() {
624 - emake \
625 - OPT="${CXXFLAGS}" \
626 - F77OPT="${FFLAGS}" \
627 - ROOTSYS="${S}" \
628 - LD_LIBRARY_PATH="${S}/lib"
629 - use emacs && ! use minimal && elisp-compile build/misc/*.el
630 -}
631 -
632 -daemon_install() {
633 - local daemons="rootd proofd"
634 - dodir /var/spool/rootd
635 - fowners rootd:rootd /var/spool/rootd
636 - dodir /var/spool/rootd/{pub,tmp}
637 - fperms 1777 /var/spool/rootd/{pub,tmp}
638 -
639 - for i in ${daemons}; do
640 - newinitd "${FILESDIR}"/${i}.initd ${i}
641 - newconfd "${FILESDIR}"/${i}.confd ${i}
642 - done
643 - if use xinetd; then
644 - insinto /etc/xinetd
645 - doins "${S}"/etc/daemons/{rootd,proofd}.xinetd
646 - fi
647 -}
648 -
649 -desktop_install() {
650 - cd "${S}"
651 - echo "Icon=root-system-bin" >> etc/root.desktop
652 - domenu etc/root.desktop
653 - doicon build/package/debian/root-system-bin.png
654 -
655 - insinto /usr/share/icons/hicolor/48x48/mimetypes
656 - doins build/package/debian/application-x-root.png
657 -
658 - insinto /usr/share/icons/hicolor/48x48/apps
659 - doicon build/package/debian/root-system-bin.xpm
660 -}
661 -
662 -cleanup_install() {
663 - # Cleanup of files either already distributed or unused on Gentoo
664 - pushd "${ED}" > /dev/null
665 - rm usr/share/root/fonts/LICENSE || die
666 - rm etc/root/proof/*.sample || die
667 - rm -r etc/root/daemons || die
668 - # these should be in PATH
669 - mv etc/root/proof/utils/pq2/pq2* usr/bin/ || die
670 - rm ${DOC_DIR#/}/{INSTALL,LICENSE,COPYING.CINT} || die
671 - use examples || rm -r ${DOC_DIR#/}/examples || die
672 - cd usr/$(get_libdir)/root/cint/cint
673 - rm lib/posix/mktypes lib/dll_stl/setup lib/G__* || die
674 - rm lib/dll_stl/G__* lib/dll_stl/rootcint_* lib/posix/exten.o || die
675 - rm include/makehpib || die
676 - popd > /dev/null
677 -}
678 -
679 -src_install() {
680 - emake DESTDIR="${D}" install
681 -
682 - echo "LDPATH=${EPREFIX%/}/usr/$(get_libdir)/root" > 99root
683 -
684 - if ! use minimal; then
685 - use pythia8 && echo "PYTHIA8=${EPREFIX%/}/usr" >> 99root
686 - if use python; then
687 - echo "PYTHONPATH=${EPREFIX%/}/usr/$(get_libdir)/root" >> 99root
688 - python_optimize "${D}/usr/$(get_libdir)/root"
689 - use reflex && python_optimize "${D}/usr/$(get_libdir)/root/python/genreflex/"
690 - fi
691 - use ruby && \
692 - echo "RUBYLIB=${EPREFIX%/}/usr/$(get_libdir)/root" >> 99root
693 - use emacs && elisp-install ${PN} build/misc/*.{el,elc}
694 - if use examples; then
695 - # these should really be taken care of by the root make install
696 - insinto ${DOC_DIR}/examples/tutorials/tmva
697 - doins -r tmva/test
698 - fi
699 - fi
700 - doenvd 99root
701 -
702 - # The build system installs Emacs support unconditionally in the wrong
703 - # directory. Remove it and call elisp-install in case of USE=emacs.
704 - rm -r "${ED}"/usr/share/emacs || die
705 -
706 - daemon_install
707 - desktop_install
708 - cleanup_install
709 -
710 - # do not copress files used by ROOT's CLI (.credit, .demo, .license)
711 - docompress -x "${DOC_DIR}"/{CREDITS,examples/tutorials}
712 - # needed for .license command to work
713 - dosym "${ED}"usr/portage/licenses/LGPL-2.1 "${DOC_DIR}/LICENSE"
714 -}
715 -
716 -pkg_postinst() {
717 - fdo-mime_desktop_database_update
718 -}
719 -
720 -pkg_postrm() {
721 - fdo-mime_desktop_database_update
722 -}