1 |
bicatali 10/02/19 06:31:29 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: root-5.26.00-r1.ebuild |
5 |
Log: |
6 |
Patch version bump. Also fixed a configure problem when checking for symbol (bug #305279) |
7 |
(Portage version: 2.2_rc62/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.61 sci-physics/root/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/ChangeLog?rev=1.61&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/ChangeLog?rev=1.61&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/ChangeLog?r1=1.60&r2=1.61 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v |
19 |
retrieving revision 1.60 |
20 |
retrieving revision 1.61 |
21 |
diff -u -r1.60 -r1.61 |
22 |
--- ChangeLog 9 Jan 2010 17:31:14 -0000 1.60 |
23 |
+++ ChangeLog 19 Feb 2010 06:31:28 -0000 1.61 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for sci-physics/root |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.60 2010/01/09 17:31:14 bicatali Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/root/ChangeLog,v 1.61 2010/02/19 06:31:28 bicatali Exp $ |
29 |
+ |
30 |
+*root-5.26.00-r1 (19 Feb 2010) |
31 |
+ |
32 |
+ 19 Feb 2010; Sébastien Fabbro <bicatali@g.o> |
33 |
+ +root-5.26.00-r1.ebuild: |
34 |
+ Patch version bump. Also fixed a configure problem when checking for |
35 |
+ symbol (bug #305279) |
36 |
|
37 |
*root-5.26.00 (09 Jan 2010) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 sci-physics/root/root-5.26.00-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/root-5.26.00-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-physics/root/root-5.26.00-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: root-5.26.00-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 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.26.00-r1.ebuild,v 1.1 2010/02/19 06:31:28 bicatali Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
inherit versionator eutils qt4 elisp-common fdo-mime toolchain-funcs flag-o-matic |
55 |
|
56 |
DOC_PV=$(get_major_version)_$(get_version_component_range 2) |
57 |
ROOFIT_DOC_PV=2.91-33 |
58 |
TMVA_DOC_PV=4 |
59 |
PATCH_PV=p02 |
60 |
|
61 |
DESCRIPTION="C++ data analysis framework and interpreter from CERN" |
62 |
SRC_URI="ftp://root.cern.ch/${PN}/${PN}_v${PV}.source.tar.gz |
63 |
mirror://gentoo/${P}-patches-${PATCH_PV}.tar.bz2 |
64 |
doc? ( ftp://root.cern.ch/root/doc/Users_Guide_${DOC_PV}.pdf |
65 |
ftp://root.cern.ch/root/doc/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf |
66 |
http://tmva.sourceforge.net/docu/TMVAUsersGuide.pdf -> TMVAUsersGuide-v${TMVA_DOC_PV}.pdf )" |
67 |
|
68 |
HOMEPAGE="http://root.cern.ch/" |
69 |
|
70 |
SLOT="0" |
71 |
LICENSE="LGPL-2.1" |
72 |
KEYWORDS="~amd64 ~hppa ~sparc ~x86" |
73 |
|
74 |
IUSE="afs cint7 clarens doc emacs examples fftw geant4 kerberos ldap |
75 |
+math mysql odbc +opengl openmp oracle postgres pythia6 pythia8 python |
76 |
+reflex ruby qt4 ssl xft xml xinetd xrootd" |
77 |
|
78 |
# libafterimage ignored, to check every version |
79 |
# see https://savannah.cern.ch/bugs/?func=detailitem&item_id=30944 |
80 |
# || ( >=media-libs/libafterimage-1.18 x11-wm/afterstep ) |
81 |
CDEPEND=">=dev-lang/cfortran-4.4-r2 |
82 |
dev-libs/libpcre |
83 |
>=media-libs/ftgl-2.1.3_rc5 |
84 |
media-libs/libpng |
85 |
media-libs/jpeg |
86 |
media-libs/giflib |
87 |
media-libs/glew |
88 |
media-libs/tiff |
89 |
sys-apps/shadow |
90 |
x11-libs/libXpm |
91 |
x11-libs/libXft |
92 |
afs? ( >=net-fs/openafs-1.4.7 ) |
93 |
clarens? ( dev-libs/xmlrpc-c ) |
94 |
emacs? ( virtual/emacs ) |
95 |
fftw? ( sci-libs/fftw:3.0 ) |
96 |
geant4? ( sci-physics/geant:4 ) |
97 |
kerberos? ( virtual/krb5 ) |
98 |
ldap? ( net-nds/openldap ) |
99 |
math? ( >=sci-libs/gsl-1.8 ) |
100 |
mysql? ( virtual/mysql ) |
101 |
odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) ) |
102 |
opengl? ( virtual/opengl virtual/glu ) |
103 |
oracle? ( dev-db/oracle-instantclient-basic ) |
104 |
postgres? ( virtual/postgresql-base ) |
105 |
pythia6? ( sci-physics/pythia:6 ) |
106 |
pythia8? ( sci-physics/pythia:8 ) |
107 |
python? ( dev-lang/python ) |
108 |
qt4? ( x11-libs/qt-gui:4 |
109 |
x11-libs/qt-opengl:4 |
110 |
x11-libs/qt-qt3support:4 |
111 |
x11-libs/qt-xmlpatterns:4 ) |
112 |
ruby? ( dev-lang/ruby |
113 |
dev-ruby/rubygems ) |
114 |
ssl? ( dev-libs/openssl ) |
115 |
xml? ( dev-libs/libxml2 )" |
116 |
|
117 |
DEPEND="${CDEPEND} |
118 |
dev-util/pkgconfig" |
119 |
|
120 |
RDEPEND="${CDEPEND} |
121 |
xinetd? ( sys-apps/xinetd )" |
122 |
|
123 |
S="${WORKDIR}/${PN}" |
124 |
|
125 |
pkg_setup() { |
126 |
elog |
127 |
elog "You may want to build ROOT with these non Gentoo extra packages:" |
128 |
elog "AliEn, castor, Chirp, dCache, gfal, gLite, Globus," |
129 |
elog "Monalisa, MaxDB/SapDB, SRP." |
130 |
elog "You can use the env variable EXTRA_ECONF variable for this." |
131 |
elog "For example, for SRP, you would set: " |
132 |
elog "EXTRA_ECONF=\"--enable-srp --with-srp-libdir=/usr/$(get_libdir)\"" |
133 |
elog |
134 |
enewgroup rootd |
135 |
enewuser rootd -1 -1 /var/spool/rootd rootd |
136 |
|
137 |
if use openmp && \ |
138 |
[[ $(tc-getCC)$ == *gcc* ]] && \ |
139 |
( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] || \ |
140 |
! built_with_use sys-devel/gcc openmp ); then |
141 |
ewarn "You are using gcc and OpenMP is available with gcc >= 4.2" |
142 |
ewarn "If you want to build this package with OpenMP, abort now," |
143 |
ewarn "and set CC to an OpenMP capable compiler" |
144 |
epause 5 |
145 |
elif use openmp; then |
146 |
export USE_OPENMP=1 |
147 |
use math && export USE_PARALLEL_MINUIT2=1 |
148 |
fi |
149 |
# bug #287178 |
150 |
append-ldflags $(no-as-needed) |
151 |
} |
152 |
|
153 |
src_prepare() { |
154 |
epatch "${WORKDIR}"/${P}-svn32375.patch |
155 |
epatch "${WORKDIR}"/${P}-gcc44.patch |
156 |
epatch "${WORKDIR}"/${P}-prop-flags.patch |
157 |
epatch "${WORKDIR}"/${P}-xrootd-prop-flags.patch |
158 |
epatch "${WORKDIR}"/${P}-configure-paths.patch |
159 |
epatch "${WORKDIR}"/${P}-g4root-flags.patch |
160 |
|
161 |
# use system cfortran |
162 |
rm montecarlo/eg/inc/cfortran.h README/cfortran.doc |
163 |
|
164 |
# take a more descriptive name for ruby libs |
165 |
sed -i \ |
166 |
-e 's/libRuby/libRubyROOT/g' \ |
167 |
bindings/ruby/Module.mk bindings/ruby/src/drr.cxx \ |
168 |
|| die "ajusting ruby libname failed" |
169 |
|
170 |
# in gentoo, libPythia6 is called libpythia6 |
171 |
# libungif is called libgif, and libftgl_pic is libftgl |
172 |
sed -i \ |
173 |
-e 's/libPythia6/libpythia6/g' \ |
174 |
-e 's/ungif/gif/g' \ |
175 |
-e 's/ftgl_pic/ftgl/g' \ |
176 |
configure || die "adjusting library names failed" |
177 |
|
178 |
# libafterimage flags are hardcoded |
179 |
sed -i \ |
180 |
-e 's/CFLAGS="-O3"//' \ |
181 |
-e 's/CFLAGS=$$ACFLAGS//' \ |
182 |
graf2d/asimage/Module.mk graf2d/asimage/src/libAfterImage/configure \ |
183 |
|| die "flag propagation in libafterimage failed" |
184 |
# QTDIR only used for qt3 in gentoo, and configure looks for it. |
185 |
unset QTDIR |
186 |
} |
187 |
|
188 |
src_configure() { |
189 |
# the configure script is not the standard autotools |
190 |
./configure \ |
191 |
--with-cc=$(tc-getCC) \ |
192 |
--with-cxx=$(tc-getCXX) \ |
193 |
--with-f77=$(tc-getFC) \ |
194 |
--fail-on-missing \ |
195 |
--prefix=/usr \ |
196 |
--libdir=/usr/$(get_libdir)/${PN} \ |
197 |
--docdir=/usr/share/doc/${PF} \ |
198 |
--tutdir=/usr/share/doc/${PF}/examples/tutorials \ |
199 |
--testdir=/usr/share/doc/${PF}/examples/tests \ |
200 |
--with-sys-iconpath=/usr/share/pixmaps \ |
201 |
--disable-builtin-freetype \ |
202 |
--disable-builtin-ftgl \ |
203 |
--disable-builtin-glew \ |
204 |
--disable-builtin-pcre \ |
205 |
--disable-builtin-zlib \ |
206 |
--disable-rpath \ |
207 |
--enable-asimage \ |
208 |
--enable-astiff \ |
209 |
--enable-exceptions \ |
210 |
--enable-explicitlink \ |
211 |
--enable-gdml \ |
212 |
--enable-memstat \ |
213 |
--enable-shadowpw \ |
214 |
--enable-shared \ |
215 |
--enable-soversion \ |
216 |
--enable-table \ |
217 |
--with-afs-shared=yes \ |
218 |
$(use_enable afs) \ |
219 |
$(use_enable cint7) \ |
220 |
$(use_enable clarens) \ |
221 |
$(use_enable clarens peac) \ |
222 |
$(use_enable fftw fftw3) \ |
223 |
$(use_enable geant4 g4root) \ |
224 |
$(use_enable kerberos krb5) \ |
225 |
$(use_enable ldap) \ |
226 |
$(use_enable math gsl-shared) \ |
227 |
$(use_enable math genvector) \ |
228 |
$(use_enable math mathmore) \ |
229 |
$(use_enable math minuit2) \ |
230 |
$(use_enable math roofit) \ |
231 |
$(use_enable math unuran) \ |
232 |
$(use_enable mysql) \ |
233 |
$(use_enable odbc) \ |
234 |
$(use_enable opengl) \ |
235 |
$(use_enable postgres pgsql) \ |
236 |
$(use_enable pythia6) \ |
237 |
$(use_enable pythia8) \ |
238 |
$(use_enable python) \ |
239 |
$(use_enable qt4 qt) \ |
240 |
$(use_enable qt4 qtgsi) \ |
241 |
$(use_enable reflex cintex) \ |
242 |
$(use_enable reflex) \ |
243 |
$(use_enable ruby) \ |
244 |
$(use_enable ssl) \ |
245 |
$(use_enable xft) \ |
246 |
$(use_enable xml) \ |
247 |
$(use_enable xrootd) \ |
248 |
${EXTRA_ECONF} \ |
249 |
|| die "configure failed" |
250 |
} |
251 |
|
252 |
src_compile() { |
253 |
emake OPT="" || die "emake failed" |
254 |
emake cintdlls || die "emake cintdlls failed" |
255 |
if use emacs; then |
256 |
elisp-compile build/misc/*.el || die "elisp-compile failed" |
257 |
fi |
258 |
} |
259 |
|
260 |
doc_install() { |
261 |
cd "${S}" |
262 |
if use doc; then |
263 |
einfo "Installing user's guides" |
264 |
insinto /usr/share/doc/${PF} |
265 |
doins \ |
266 |
"${DISTDIR}"/Users_Guide_${DOC_PV}.pdf \ |
267 |
"${DISTDIR}"/TMVAUsersGuide-v${TMVA_DOC_PV}.pdf \ |
268 |
|| die "pdf install failed" |
269 |
if use math; then |
270 |
doins "${DISTDIR}"/RooFit_Users_Manual_${ROOFIT_DOC_PV}.pdf \ |
271 |
|| die "math doc install failed" |
272 |
fi |
273 |
fi |
274 |
|
275 |
if use examples; then |
276 |
# these should really be taken care of by the root make install |
277 |
insinto /usr/share/doc/${PF}/examples/tutorials/tmva |
278 |
doins -r tmva/test || die |
279 |
else |
280 |
rm -rf "${D}"/usr/share/doc/${PF}/examples |
281 |
fi |
282 |
} |
283 |
|
284 |
daemon_install() { |
285 |
cd "${S}" |
286 |
local daemons="rootd proofd" |
287 |
dodir /var/spool/rootd |
288 |
fowners rootd:rootd /var/spool/rootd |
289 |
dodir /var/spool/rootd/{pub,tmp} |
290 |
fperms 1777 /var/spool/rootd/{pub,tmp} |
291 |
|
292 |
use xrootd && daemons="${daemons} xrootd olbd" |
293 |
for i in ${daemons}; do |
294 |
newinitd "${FILESDIR}"/${i}.initd ${i} |
295 |
newconfd "${FILESDIR}"/${i}.confd ${i} |
296 |
done |
297 |
if use xinetd; then |
298 |
insinto /etc/xinetd |
299 |
doins etc/daemons/{rootd,proofd}.xinetd || die |
300 |
fi |
301 |
} |
302 |
|
303 |
desktop_install() { |
304 |
cd "${S}" |
305 |
sed -e 's,@prefix@,/usr,' \ |
306 |
build/package/debian/root-system-bin.desktop.in > root.desktop |
307 |
domenu root.desktop |
308 |
doicon "${S}"/build/package/debian/root-system-bin.png |
309 |
|
310 |
insinto /usr/share/icons/hicolor/48x48/mimetypes |
311 |
doins build/package/debian/application-x-root.png |
312 |
|
313 |
insinto /usr/share/icons/hicolor/48x48/apps |
314 |
doicon build/package/debian/root-system-bin.xpm |
315 |
} |
316 |
|
317 |
src_install() { |
318 |
emake DESTDIR="${D}" install || die "emake install failed" |
319 |
|
320 |
echo "LDPATH=/usr/$(get_libdir)/root" > 99root |
321 |
use pythia8 && echo "PYTHIA8=/usr" >> 99root |
322 |
use python && echo "PYTHONPATH=/usr/$(get_libdir)/root" >> 99root |
323 |
use ruby && echo "RUBYLIB=/usr/$(get_libdir)/root" >> 99root |
324 |
doenvd 99root || die "doenvd failed" |
325 |
|
326 |
# The build system installs Emacs support unconditionally and in the wrong |
327 |
# directory. Remove it and call elisp-install in case of USE=emacs. |
328 |
rm -rf "${D}"/usr/share/emacs |
329 |
if use emacs; then |
330 |
elisp-install ${PN} build/misc/*.{el,elc} || die "elisp-install failed" |
331 |
fi |
332 |
|
333 |
doc_install |
334 |
daemon_install |
335 |
desktop_install |
336 |
|
337 |
# Cleanup of files either already distributed or unused on Gentoo |
338 |
rm "${D}"usr/share/doc/${PF}/{INSTALL,LICENSE,COPYING.CINT} |
339 |
rm "${D}"usr/share/root/fonts/LICENSE |
340 |
pushd "${D}"usr/$(get_libdir)/root/cint/cint/lib > /dev/null |
341 |
rm -f posix/mktypes dll_stl/setup \ |
342 |
G__* dll_stl/G__* dll_stl/rootcint_* posix/exten.o |
343 |
rm -f "${D}"usr/$(get_libdir)/root/cint/cint/include/makehpib |
344 |
rm -f "${D}"/etc/root/proof/*.sample |
345 |
rm -rf "${D}"/etc/root/daemons |
346 |
popd > /dev/null |
347 |
} |
348 |
|
349 |
pkg_postinst() { |
350 |
use ruby && elog "ROOT Ruby module is available as libRubyROOT" |
351 |
fdo-mime_desktop_database_update |
352 |
} |
353 |
|
354 |
pkg_postrm() { |
355 |
fdo-mime_desktop_database_update |
356 |
} |