Gentoo Archives: gentoo-commits

From: Guilherme Amadio <amadio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/root/
Date: Mon, 29 Jul 2019 06:34:21
Message-Id: 1564381992.1d6682e0dce73bec8bf772903f5546d49f977bbb.amadio@gentoo
1 commit: 1d6682e0dce73bec8bf772903f5546d49f977bbb
2 Author: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 26 14:06:27 2019 +0000
4 Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 29 06:33:12 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d6682e0
7
8 sci-physics/root: drop old
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>
12
13 sci-physics/root/root-6.16.00.ebuild | 318 -----------------------------------
14 1 file changed, 318 deletions(-)
15
16 diff --git a/sci-physics/root/root-6.16.00.ebuild b/sci-physics/root/root-6.16.00.ebuild
17 deleted file mode 100644
18 index 86ee4bde95b..00000000000
19 --- a/sci-physics/root/root-6.16.00.ebuild
20 +++ /dev/null
21 @@ -1,318 +0,0 @@
22 -# Copyright 1999-2019 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=6
26 -
27 -CMAKE_BUILD_TYPE=Release
28 -# ninja does not work due to fortran
29 -CMAKE_MAKEFILE_GENERATOR=emake
30 -FORTRAN_NEEDED="fortran"
31 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
32 -
33 -inherit cmake-utils cuda eapi7-ver elisp-common eutils fortran-2 \
34 - llvm prefix python-single-r1 toolchain-funcs
35 -
36 -DESCRIPTION="C++ data analysis framework and interpreter from CERN"
37 -HOMEPAGE="https://root.cern"
38 -SRC_URI="https://root.cern/download/${PN}_v${PV}.source.tar.gz"
39 -
40 -IUSE="+X aqua +asimage +c++11 c++14 c++17 cuda +davix emacs +examples
41 - fits fftw fortran +gdml graphviz +gsl http jemalloc kerberos ldap
42 - libcxx memstat +minuit mysql odbc +opengl oracle postgres prefix
43 - pythia6 pythia8 +python qt5 R +roofit root7 shadow sqlite +ssl
44 - table +tbb test +threads +tiff +tmva +unuran vc xinetd +xml xrootd
45 - zeroconf"
46 -
47 -SLOT="$(ver_cut 1-2)/$(ver_cut 3)"
48 -LICENSE="LGPL-2.1 freedist MSttfEULA LGPL-3 libpng UoI-NCSA"
49 -KEYWORDS="~amd64 ~x86"
50 -
51 -REQUIRED_USE="
52 - ^^ ( c++11 c++14 c++17 )
53 - cuda? ( tmva !c++17 )
54 - !X? ( !asimage !opengl !qt5 !tiff )
55 - davix? ( ssl xml )
56 - python? ( ${PYTHON_REQUIRED_USE} )
57 - qt5? ( root7 )
58 - root7? ( || ( c++14 c++17 ) )
59 - tmva? ( gsl )
60 -"
61 -
62 -CDEPEND="
63 - app-arch/lz4
64 - app-arch/xz-utils
65 - fortran? ( dev-lang/cfortran )
66 - dev-libs/libpcre:3
67 - dev-libs/xxhash
68 - media-fonts/dejavu
69 - media-libs/freetype:2
70 - media-libs/libpng:0=
71 - sys-devel/llvm:5=
72 - sys-libs/ncurses:=
73 - sys-libs/zlib
74 - X? (
75 - x11-libs/libX11:0
76 - x11-libs/libXext:0
77 - x11-libs/libXft:0
78 - x11-libs/libXpm:0
79 - opengl? (
80 - media-libs/ftgl:0=
81 - media-libs/glew:0=
82 - virtual/opengl
83 - virtual/glu
84 - x11-libs/gl2ps:0=
85 - )
86 - qt5? (
87 - dev-qt/qtcore:5
88 - dev-qt/qtgui:5
89 - dev-qt/qtwebengine:5[widgets]
90 - )
91 - )
92 - asimage? ( media-libs/libafterimage[gif,jpeg,png,tiff?] )
93 - zeroconf? ( net-dns/avahi[mdnsresponder-compat] )
94 - cuda? ( >=dev-util/nvidia-cuda-toolkit-9.0 )
95 - davix? ( net-libs/davix )
96 - emacs? ( virtual/emacs )
97 - fftw? ( sci-libs/fftw:3.0= )
98 - fits? ( sci-libs/cfitsio:0= )
99 - graphviz? ( media-gfx/graphviz )
100 - gsl? ( sci-libs/gsl:= )
101 - http? ( dev-libs/fcgi:0= )
102 - jemalloc? ( dev-libs/jemalloc )
103 - kerberos? ( virtual/krb5 )
104 - ldap? ( net-nds/openldap:0= )
105 - libcxx? ( sys-libs/libcxx )
106 - unuran? ( sci-mathematics/unuran:0= )
107 - minuit? ( !sci-libs/minuit )
108 - mysql? ( dev-db/mysql-connector-c )
109 - odbc? ( || ( dev-db/libiodbc dev-db/unixODBC ) )
110 - oracle? ( dev-db/oracle-instantclient-basic )
111 - postgres? ( dev-db/postgresql:= )
112 - pythia6? ( sci-physics/pythia:6 )
113 - pythia8? ( sci-physics/pythia:8 )
114 - python? ( ${PYTHON_DEPS} )
115 - R? ( dev-lang/R )
116 - shadow? ( virtual/shadow )
117 - sqlite? ( dev-db/sqlite:3 )
118 - ssl? ( dev-libs/openssl:0= )
119 - tbb? ( >=dev-cpp/tbb-2018 )
120 - tmva? ( dev-python/numpy[${PYTHON_USEDEP}] )
121 - vc? ( dev-libs/vc:= )
122 - xml? ( dev-libs/libxml2:2= )
123 - xrootd? ( net-libs/xrootd:0= )
124 -"
125 -
126 -DEPEND="${CDEPEND}
127 - virtual/pkgconfig"
128 -
129 -RDEPEND="${CDEPEND}
130 - xinetd? ( sys-apps/xinetd )"
131 -
132 -PATCHES=(
133 - "${FILESDIR}"/${PN}-6.12.06_cling-runtime-sysroot.patch
134 -)
135 -
136 -pkg_setup() {
137 - LLVM_MAX_SLOT=5 llvm_pkg_setup
138 -
139 - use fortran && fortran-2_pkg_setup
140 - use python && python-single-r1_pkg_setup
141 -
142 - elog "There are extra options on packages not available in Gentoo."
143 - elog "You can use the environment variable EXTRA_ECONF to enable"
144 - elog "these packages. For example, for Vdt you would set:"
145 - elog "EXTRA_ECONF=\"-Dbuiltin_vdt=ON -Dvdt=ON\""
146 -}
147 -
148 -src_prepare() {
149 - cmake-utils_src_prepare
150 -
151 - sed -i "/CLING_BUILD_PLUGINS/d" interpreter/CMakeLists.txt || die
152 -
153 - # CSS should use local images
154 - sed -i -e 's,http://.*/,,' etc/html/ROOT.css || die "html sed failed"
155 -
156 - hprefixify core/clingutils/CMakeLists.txt
157 -}
158 -
159 -# Note: ROOT uses bundled clang because it is patched and API-incompatible
160 -# with vanilla clang. The patches enable the C++ interpreter to work.
161 -# Since ROOT installs many files into /etc (>100MB in total) that don't
162 -# really belong there, we install it into another directory to avoid
163 -# making /etc too big.
164 -
165 -src_configure() {
166 - local mycmakeargs=(
167 - -DCMAKE_C_FLAGS="${CFLAGS}"
168 - -DCMAKE_CXX_FLAGS="${CXXFLAGS}"
169 - -DLLVM_CONFIG="$(type -P "${CHOST}-llvm-config")"
170 - -DCMAKE_INSTALL_PREFIX="${EPREFIX%/}/usr/lib/${PN}/$(ver_cut 1-2)"
171 - -DCMAKE_INSTALL_MANDIR="${EPREFIX%/}/usr/lib/${PN}/$(ver_cut 1-2)/share/man"
172 - -DCMAKE_INSTALL_LIBDIR="lib"
173 - -DDEFAULT_SYSROOT="${EPREFIX}"
174 - -DCLING_BUILD_PLUGINS=OFF
175 - -Dexplicitlink=ON
176 - -Dexceptions=ON
177 - -Dfail-on-missing=ON
178 - -Dgnuinstall=OFF
179 - -Dshared=ON
180 - -Dsoversion=ON
181 - -Dbuiltin_llvm=OFF
182 - -Dbuiltin_clang=ON
183 - -Dbuiltin_afterimage=OFF
184 - -Dbuiltin_cfitsio=OFF
185 - -Dbuiltin_davix=OFF
186 - -Dbuiltin_fftw3=OFF
187 - -Dbuiltin_freetype=OFF
188 - -Dbuiltin_ftgl=OFF
189 - -Dbuiltin_gl2ps=OFF
190 - -Dbuiltin_glew=OFF
191 - -Dbuiltin_gsl=OFF
192 - -Dbuiltin_lz4=OFF
193 - -Dbuiltin_lzma=OFF
194 - -Dbuiltin_openssl=OFF
195 - -Dbuiltin_pcre=OFF
196 - -Dbuiltin_tbb=OFF
197 - -Dbuiltin_unuran=OFF
198 - -Dbuiltin_vc=OFF
199 - -Dbuiltin_vdt=OFF
200 - -Dbuiltin_veccore=OFF
201 - -Dbuiltin_xrootd=OFF
202 - -Dbuiltin_xxhash=OFF
203 - -Dbuiltin_zlib=OFF
204 - -Dx11=$(usex X)
205 - -Dxft=$(usex X)
206 - -Dafdsmgrd=OFF
207 - -Dafs=OFF # not implemented
208 - -Dalien=OFF
209 - -Dasimage=$(usex asimage)
210 - -Dastiff=$(usex tiff)
211 - -Dbonjour=$(usex zeroconf)
212 - -Dlibcxx=$(usex libcxx)
213 - -Dccache=OFF # use ccache via portage
214 - -Dcastor=OFF
215 - -Dchirp=OFF
216 - -Dclad=OFF
217 - -Dcling=ON # cling=OFF is broken
218 - -Dcocoa=$(usex aqua)
219 - -Dcuda=$(usex cuda)
220 - -Dcxx11=$(usex c++11)
221 - -Dcxx14=$(usex c++14)
222 - -Dcxx17=$(usex c++17)
223 - -Dcxxmodules=OFF # requires clang, unstable
224 - -Ddavix=$(usex davix)
225 - -Ddcache=OFF
226 - -Dfftw3=$(usex fftw)
227 - -Dfitsio=$(usex fits)
228 - -Dfortran=$(usex fortran)
229 - -Dftgl=$(usex opengl)
230 - -Dgdml=$(usex gdml)
231 - -Dgenvector=ON # genvector=OFF ignored
232 - -Dgeocad=OFF
233 - -Dgfal=OFF
234 - -Dgl2ps=$(usex opengl)
235 - -Dglite=OFF # not implemented
236 - -Dglobus=OFF
237 - -Dgminimal=OFF
238 - -Dgsl_shared=$(usex gsl)
239 - -Dgviz=$(usex graphviz)
240 - -Dhdfs=OFF
241 - -Dhttp=$(usex http)
242 - -Dimt=$(usex tbb)
243 - -Djemalloc=$(usex jemalloc)
244 - -Dkrb5=$(usex kerberos)
245 - -Dldap=$(usex ldap)
246 - -Dmathmore=$(usex gsl)
247 - -Dmemstat=$(usex memstat)
248 - -Dminimal=OFF
249 - -Dminuit2=$(usex minuit)
250 - -Dminuit=$(usex minuit)
251 - -Dmonalisa=OFF
252 - -Dmysql=$(usex mysql)
253 - -Dodbc=$(usex odbc)
254 - -Dopengl=$(usex opengl)
255 - -Doracle=$(usex oracle)
256 - -Dpch=ON # pch=OFF is broken
257 - -Dpgsql=$(usex postgres)
258 - -Dpythia6=$(usex pythia6)
259 - -Dpythia8=$(usex pythia8)
260 - -Dpython=$(usex python)
261 - -Dqt5web=$(usex qt5)
262 - -Dqtgsi=OFF
263 - -Dqt=OFF
264 - -Drfio=OFF
265 - -Droofit=$(usex roofit)
266 - -Droot7=$(usex root7)
267 - -Drootbench=OFF
268 - -Droottest=OFF
269 - -Drpath=OFF
270 - -Druby=OFF # deprecated and broken
271 - -Druntime_cxxmodules=OFF # does not work yet
272 - -Dr=$(usex R)
273 - -Dsapdb=OFF # not implemented
274 - -Dshadowpw=$(usex shadow)
275 - -Dsqlite=$(usex sqlite)
276 - -Dsrp=OFF # not implemented
277 - -Dssl=$(usex ssl)
278 - -Dtable=$(usex table)
279 - -Dtcmalloc=OFF
280 - -Dtesting=$(usex test)
281 - -Dthread=$(usex threads)
282 - -Dtmva=$(usex tmva)
283 - -Dtmva-cpu=$(usex tmva)
284 - -Dtmva-gpu=$(usex cuda)
285 - -Dunuran=$(usex unuran)
286 - -Dvc=$(usex vc)
287 - -Dvdt=OFF
288 - -Dveccore=OFF
289 - -Dxml=$(usex xml)
290 - -Dxrootd=$(usex xrootd)
291 - ${EXTRA_ECONF}
292 - )
293 -
294 - cmake-utils_src_configure
295 -}
296 -
297 -src_compile() {
298 - # needed for hsimple.root
299 - addwrite /dev/random
300 - cmake-utils_src_compile
301 -}
302 -
303 -src_install() {
304 - cmake-utils_src_install
305 -
306 - ROOTSYS=${EPREFIX%/}/usr/lib/${PN}/$(ver_cut 1-2)
307 - ROOTENV=$((9999 - $(ver_cut 2)))${PN}-$(ver_cut 1-2)
308 -
309 - cat > ${ROOTENV} <<- EOF || die
310 - MANPATH="${ROOTSYS}/share/man"
311 - PATH="${ROOTSYS}/bin"
312 - ROOTPATH="${ROOTSYS}/bin"
313 - LDPATH="${ROOTSYS}/lib"
314 - EOF
315 -
316 - if use python; then
317 - echo "PYTHONPATH=\"${ROOTSYS}/lib\"" >> ${ROOTENV} || die
318 - fi
319 -
320 - doenvd ${ROOTENV}
321 -
322 - if use emacs; then
323 - elisp-install ${PN}-$(ver_cut 1-2) "${BUILD_DIR}"/root-help.el
324 - fi
325 -
326 - pushd "${D}/${ROOTSYS}" > /dev/null
327 -
328 - rm -r test emacs bin/*.{csh,sh,fish} || die
329 -
330 - if ! use examples; then
331 - rm -r tutorials || die
332 - fi
333 -
334 - # create versioned symlinks for binaries
335 - cd bin;
336 - for exe in *; do
337 - dosym "${exe}" "/usr/lib/${PN}/$(ver_cut 1-2)/bin/${exe}-$(ver_cut 1-2)"
338 - done
339 -}