Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 01 Dec 2018 18:13:47
Message-Id: 1543688007.a364ae9cbf3d98d40a0b436a4a8baab768e2edc7.mgorny@gentoo
1 commit: a364ae9cbf3d98d40a0b436a4a8baab768e2edc7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 1 18:11:34 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 1 18:13:27 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a364ae9c
7
8 mozconfig-v6.45.eclass: Remove unused eclass
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 eclass/mozconfig-v6.45.eclass | 410 ------------------------------------------
13 1 file changed, 410 deletions(-)
14
15 diff --git a/eclass/mozconfig-v6.45.eclass b/eclass/mozconfig-v6.45.eclass
16 deleted file mode 100644
17 index 65d5878fb20..00000000000
18 --- a/eclass/mozconfig-v6.45.eclass
19 +++ /dev/null
20 @@ -1,410 +0,0 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -#
24 -# @ECLASS: mozconfig-v6.45.eclass
25 -# @MAINTAINER:
26 -# mozilla team <mozilla@g.o>
27 -# @SUPPORTED_EAPIS: 5 6 7
28 -# @BLURB: the new mozilla common configuration eclass for FF33 and newer, v6
29 -# @DESCRIPTION:
30 -# This eclass is used in mozilla ebuilds (firefox, thunderbird, seamonkey)
31 -# to provide a single common place for the common mozilla engine compoments.
32 -#
33 -# The eclass provides all common dependencies as well as common use flags.
34 -#
35 -# Some use flags which may be optional in particular mozilla packages can be
36 -# supported through setting eclass variables.
37 -#
38 -# This eclass inherits mozconfig helper functions as defined in mozcoreconf-v4,
39 -# and so ebuilds inheriting this eclass do not need to inherit that.
40 -
41 -case ${EAPI} in
42 - 0|1|2|3|4)
43 - die "EAPI=${EAPI} not supported"
44 - ;;
45 - 5)
46 - inherit multilib
47 - ;;
48 -esac
49 -
50 -inherit flag-o-matic toolchain-funcs mozcoreconf-v4
51 -
52 -# @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_WIFI
53 -# @DEFAULT_UNSET
54 -# @DESCRIPTION:
55 -# Set this variable before the inherit line, when an ebuild needs to provide
56 -# optional necko-wifi support via IUSE="wifi". Currently this would include
57 -# ebuilds for firefox, and potentially seamonkey.
58 -#
59 -# Leave the variable UNSET if necko-wifi support should not be available.
60 -# Set the variable to "enabled" if the use flag should be enabled by default.
61 -# Set the variable to any value if the use flag should exist but not be default-enabled.
62 -
63 -# @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_JIT
64 -# @DEFAULT_UNSET
65 -# @DESCRIPTION:
66 -# Set this variable before the inherit line, when an ebuild needs to provide
67 -# optional necko-wifi support via IUSE="jit". Currently this would include
68 -# ebuilds for firefox, and potentially seamonkey.
69 -#
70 -# Leave the variable UNSET if optional jit support should not be available.
71 -# Set the variable to "enabled" if the use flag should be enabled by default.
72 -# Set the variable to any value if the use flag should exist but not be default-enabled.
73 -
74 -# @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_GTK3
75 -# @DEFAULT_UNSET
76 -# @DESCRIPTION:
77 -# Set this variable before the inherit line, when an ebuild can provide
78 -# optional gtk3 support via IUSE="gtk3". Currently this would include
79 -# ebuilds for firefox, but thunderbird and seamonkey could follow in the future.
80 -#
81 -# Leave the variable UNSET if gtk3 support should not be available.
82 -# Set the variable to "enabled" if the use flag should be enabled by default.
83 -# Set the variable to any value if the use flag should exist but not be default-enabled.
84 -
85 -# @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_QT5
86 -# @DEFAULT_UNSET
87 -# @DESCRIPTION:
88 -# Set this variable before the inherit line, when an ebuild can provide
89 -# optional qt5 support via IUSE="qt5". Currently this would include
90 -# ebuilds for firefox, but thunderbird and seamonkey could follow in the future.
91 -#
92 -# Leave the variable UNSET if qt5 support should not be available.
93 -# Set the variable to "enabled" if the use flag should be enabled by default.
94 -# Set the variable to any value if the use flag should exist but not be default-enabled.
95 -
96 -# use-flags common among all mozilla ebuilds
97 -IUSE="${IUSE} dbus debug ffmpeg +gstreamer +jemalloc3 neon pulseaudio selinux startup-notification system-cairo
98 - system-harfbuzz system-icu system-jpeg system-libevent system-sqlite system-libvpx"
99 -
100 -# some notes on deps:
101 -# gtk:2 minimum is technically 2.10 but gio support (enabled by default) needs 2.14
102 -# media-libs/mesa needs to be 10.2 or above due to a bug with flash+vdpau
103 -# media-libs/libcanberra is dlopen'ed rather than linked
104 -
105 -RDEPEND=">=app-text/hunspell-1.2:=
106 - dev-libs/atk
107 - dev-libs/expat
108 - >=x11-libs/cairo-1.10[X]
109 - >=x11-libs/gtk+-2.18:2
110 - x11-libs/gdk-pixbuf
111 - >=x11-libs/pango-1.22.0
112 - >=media-libs/libpng-1.6.19:0=[apng]
113 - >=media-libs/mesa-10.2:*
114 - media-libs/fontconfig
115 - >=media-libs/freetype-2.4.10
116 - media-libs/libcanberra:*[pulseaudio?]
117 - kernel_linux? ( media-libs/alsa-lib )
118 - pulseaudio? ( media-sound/pulseaudio )
119 - virtual/freedesktop-icon-theme
120 - dbus? ( >=sys-apps/dbus-0.60
121 - >=dev-libs/dbus-glib-0.72 )
122 - startup-notification? ( >=x11-libs/startup-notification-0.8 )
123 - >=dev-libs/glib-2.26:2
124 - >=sys-libs/zlib-1.2.3
125 - >=virtual/libffi-3.0.10
126 - ffmpeg? ( virtual/ffmpeg )
127 - gstreamer? (
128 - >=media-libs/gstreamer-1.4.5:1.0
129 - >=media-libs/gst-plugins-base-1.4.5:1.0
130 - >=media-libs/gst-plugins-good-1.4.5:1.0
131 - >=media-plugins/gst-plugins-libav-1.4.5:1.0
132 - )
133 - x11-libs/libX11
134 - x11-libs/libXcomposite
135 - x11-libs/libXdamage
136 - x11-libs/libXext
137 - x11-libs/libXfixes
138 - x11-libs/libXrender
139 - x11-libs/libXt
140 - system-cairo? ( >=x11-libs/cairo-1.12[X,xcb] >=x11-libs/pixman-0.19.2 )
141 - system-icu? ( >=dev-libs/icu-51.1:= )
142 - system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
143 - system-libevent? ( >=dev-libs/libevent-2.0:0= )
144 - system-sqlite? ( >=dev-db/sqlite-3.9.1:3[secure-delete,debug=] )
145 - system-harfbuzz? ( >=media-libs/harfbuzz-1.1.3:0=[graphite,icu] >=media-gfx/graphite2-1.3.8 )
146 -"
147 -
148 -if [[ ${PV/45.0*/} == "" ]]; then
149 - RDEPEND+="
150 - system-libvpx? ( >=media-libs/libvpx-1.3.0:0=[postproc] )"
151 -else
152 - # 45.1.0 and above bumped the libvpx requirement
153 - RDEPEND+="
154 - system-libvpx? ( >=media-libs/libvpx-1.5.0:0=[postproc] )"
155 -fi
156 -
157 -if [[ -n ${MOZCONFIG_OPTIONAL_GTK3} ]]; then
158 - if [[ ${MOZCONFIG_OPTIONAL_GTK3} = "enabled" ]]; then
159 - IUSE+=" +gtk3"
160 - else
161 - IUSE+=" gtk3"
162 - fi
163 - RDEPEND+="
164 - gtk3? ( >=x11-libs/gtk+-3.4.0:3 )"
165 -fi
166 -if [[ -n ${MOZCONFIG_OPTIONAL_QT5} ]]; then
167 - inherit qmake-utils
168 - if [[ ${MOZCONFIG_OPTIONAL_QT5} = "enabled" ]]; then
169 - IUSE+=" +qt5"
170 - else
171 - IUSE+=" qt5"
172 - fi
173 - RDEPEND+="
174 - qt5? (
175 - dev-qt/qtcore:5
176 - dev-qt/qtgui:5
177 - dev-qt/qtnetwork:5
178 - dev-qt/qtprintsupport:5
179 - dev-qt/qtwidgets:5
180 - dev-qt/qtxml:5
181 - dev-qt/qtdeclarative:5
182 - )"
183 -fi
184 -if [[ -n ${MOZCONFIG_OPTIONAL_WIFI} ]]; then
185 - if [[ ${MOZCONFIG_OPTIONAL_WIFI} = "enabled" ]]; then
186 - IUSE+=" +wifi"
187 - else
188 - IUSE+=" wifi"
189 - fi
190 - RDEPEND+="
191 - wifi? (
192 - kernel_linux? ( >=sys-apps/dbus-0.60
193 - >=dev-libs/dbus-glib-0.72
194 - net-misc/networkmanager )
195 - )"
196 -fi
197 -if [[ -n ${MOZCONFIG_OPTIONAL_JIT} ]]; then
198 - if [[ ${MOZCONFIG_OPTIONAL_JIT} = "enabled" ]]; then
199 - IUSE+=" +jit"
200 - else
201 - IUSE+=" jit"
202 - fi
203 -fi
204 -
205 -DEPEND="app-arch/zip
206 - app-arch/unzip
207 - >=sys-devel/binutils-2.16.1
208 - ${RDEPEND}"
209 -
210 -RDEPEND+="
211 - selinux? ( sec-policy/selinux-mozilla )"
212 -
213 -# force system-icu if system-harfbuzz is set to avoid any potential ABI issues
214 -REQUIRED_USE="
215 - system-harfbuzz? ( system-icu )"
216 -
217 -# only one of gtk3 or qt5 should be permitted to be selected, since only one will be used.
218 -[[ -n ${MOZCONFIG_OPTIONAL_GTK3} ]] && [[ -n ${MOZCONFIG_OPTIONAL_QT5} ]] && \
219 - REQUIRED_USE+=" ?? ( gtk3 qt5 )"
220 -
221 -# @FUNCTION: mozconfig_config
222 -# @DESCRIPTION:
223 -# Set common configure options for mozilla packages.
224 -# Call this within src_configure() phase, after mozconfig_init
225 -#
226 -# Example:
227 -#
228 -# inherit mozconfig-v5.33
229 -#
230 -# src_configure() {
231 -# mozconfig_init
232 -# mozconfig_config
233 -# # ... misc ebuild-unique settings via calls to
234 -# # ... mozconfig_{annotate,use_with,use_enable}
235 -# mozconfig_final
236 -# }
237 -
238 -mozconfig_config() {
239 - # Migrated from mozcoreconf-v3
240 - mozconfig_annotate 'more disable_update_strip' \
241 - --disable-pedantic \
242 - --disable-installer \
243 - --disable-strip-libs
244 -
245 - if [[ ${PN} != seamonkey ]]; then
246 - mozconfig_annotate 'basic_profile' \
247 - --disable-profilelocking \
248 - --enable-single-profile \
249 - --disable-profilesharing
250 - fi
251 -
252 - # Migrated from mozcoreconf-2
253 - mozconfig_annotate 'system_libs' \
254 - --with-system-zlib \
255 - --enable-pango \
256 - --enable-svg \
257 - --with-system-bz2
258 -
259 - if has bindist ${IUSE}; then
260 - mozconfig_use_enable !bindist official-branding
261 - if [[ ${PN} == firefox ]] && use bindist ; then
262 - mozconfig_annotate '' --with-branding=browser/branding/aurora
263 - fi
264 - fi
265 -
266 - mozconfig_use_enable debug
267 - mozconfig_use_enable debug tests
268 -
269 - if ! use debug ; then
270 - mozconfig_annotate 'disabled by Gentoo' --disable-debug-symbols
271 - else
272 - mozconfig_annotate 'enabled by Gentoo' --enable-debug-symbols
273 - fi
274 -
275 - mozconfig_use_enable startup-notification
276 -
277 - if [[ -n ${MOZCONFIG_OPTIONAL_WIFI} ]] ; then
278 - # wifi pulls in dbus so manage both here
279 - mozconfig_use_enable wifi necko-wifi
280 - if use kernel_linux && use wifi && ! use dbus; then
281 - echo "Enabling dbus support due to wifi request"
282 - mozconfig_annotate 'dbus required by necko-wifi on linux' --enable-dbus
283 - else
284 - mozconfig_use_enable dbus
285 - fi
286 - else
287 - mozconfig_use_enable dbus
288 - mozconfig_annotate 'disabled' --disable-necko-wifi
289 - fi
290 -
291 - # These are forced-on for webm support
292 - mozconfig_annotate 'required' --enable-ogg
293 - mozconfig_annotate 'required' --enable-wave
294 -
295 - if [[ -n ${MOZCONFIG_OPTIONAL_JIT} ]]; then
296 - mozconfig_use_enable jit ion
297 - fi
298 -
299 - # These are enabled by default in all mozilla applications
300 - mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
301 - mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
302 - mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
303 - if use system-libevent; then
304 - mozconfig_annotate '' --with-system-libevent="${EPREFIX}"/usr
305 - fi
306 - mozconfig_annotate '' --prefix="${EPREFIX}"/usr
307 - mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir)
308 - mozconfig_annotate 'Gentoo default' --enable-system-hunspell
309 - mozconfig_annotate '' --disable-gnomeui
310 - mozconfig_annotate '' --enable-gio
311 - mozconfig_annotate '' --disable-crashreporter
312 - mozconfig_annotate 'Gentoo default' --with-system-png
313 - mozconfig_annotate '' --enable-system-ffi
314 - mozconfig_annotate 'Gentoo default to honor system linker' --disable-gold
315 - mozconfig_annotate 'Gentoo default' --disable-skia
316 - mozconfig_annotate '' --disable-gconf
317 - mozconfig_annotate '' --with-intl-api
318 -
319 - # default toolkit is cairo-gtk2, optional use flags can change this
320 - local toolkit="cairo-gtk2"
321 - local toolkit_comment=""
322 - if [[ -n ${MOZCONFIG_OPTIONAL_GTK3} ]]; then
323 - if use gtk3; then
324 - toolkit="cairo-gtk3"
325 - toolkit_comment="gtk3 use flag"
326 - fi
327 - fi
328 - if [[ -n ${MOZCONFIG_OPTIONAL_QT5} ]]; then
329 - if use qt5; then
330 - toolkit="cairo-qt"
331 - toolkit_comment="qt5 use flag"
332 - # need to specify these vars because the qt5 versions are not found otherwise,
333 - # and setting --with-qtdir overrides the pkg-config include dirs
334 - local i
335 - for i in qmake moc rcc; do
336 - echo "export HOST_${i^^}=\"$(qt5_get_bindir)/${i}\"" \
337 - >> "${S}"/.mozconfig || die
338 - done
339 - echo 'unset QTDIR' >> "${S}"/.mozconfig || die
340 - mozconfig_annotate '+qt5' --disable-gio
341 - fi
342 - fi
343 - mozconfig_annotate "${toolkit_comment}" --enable-default-toolkit=${toolkit}
344 -
345 - # Use jemalloc unless libc is not glibc >= 2.4
346 - # at this time the minimum glibc in the tree is 2.9 so we should be safe.
347 - if use elibc_glibc && use jemalloc3; then
348 - # We must force-enable jemalloc 3 via .mozconfig
349 - echo "export MOZ_JEMALLOC3=1" >> "${S}"/.mozconfig || die
350 - mozconfig_annotate '' --enable-jemalloc
351 - mozconfig_annotate '' --enable-replace-malloc
352 - fi
353 -
354 - mozconfig_annotate '' --target="${CTARGET:-${CHOST}}"
355 - mozconfig_annotate '' --build="${CTARGET:-${CHOST}}"
356 -
357 - use ffmpeg || mozconfig_annotate '-ffmpeg' --disable-ffmpeg
358 - if use gstreamer ; then
359 - use ffmpeg && einfo "${PN} will not use ffmpeg unless gstreamer:1.0 is not available at runtime"
360 - mozconfig_annotate '+gstreamer' --enable-gstreamer=1.0
361 - else
362 - mozconfig_annotate '' --disable-gstreamer
363 - fi
364 - mozconfig_use_enable pulseaudio
365 -
366 - mozconfig_use_enable system-cairo
367 - mozconfig_use_enable system-sqlite
368 - mozconfig_use_with system-jpeg
369 - mozconfig_use_with system-icu
370 - mozconfig_use_with system-libvpx
371 - mozconfig_use_with system-harfbuzz
372 - mozconfig_use_with system-harfbuzz system-graphite2
373 -
374 - # Modifications to better support ARM, bug 553364
375 - if use neon ; then
376 - mozconfig_annotate '' --with-fpu=neon
377 - mozconfig_annotate '' --with-thumb=yes
378 - mozconfig_annotate '' --with-thumb-interwork=no
379 - fi
380 - if [[ ${CHOST} == armv* ]] ; then
381 - mozconfig_annotate '' --with-float-abi=hard
382 - mozconfig_annotate '' --enable-skia
383 -
384 - if ! use system-libvpx ; then
385 - sed -i -e "s|softfp|hard|" \
386 - "${S}"/media/libvpx/moz.build
387 - fi
388 - fi
389 -}
390 -
391 -# @FUNCTION: mozconfig_install_prefs
392 -# @DESCRIPTION:
393 -# Set preferences into the prefs.js file specified as a parameter to
394 -# the function. This sets both some common prefs to all mozilla
395 -# packages, and any prefs that may relate to the use flags administered
396 -# by mozconfig_config().
397 -#
398 -# Call this within src_install() phase, after copying the template
399 -# prefs file (if any) from ${FILESDIR}
400 -#
401 -# Example:
402 -#
403 -# inherit mozconfig-v6.46
404 -#
405 -# src_install() {
406 -# cp "${FILESDIR}"/gentoo-default-prefs.js \
407 -# "${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
408 -# || die
409 -#
410 -# mozconfig_install_prefs \
411 -# "${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js"
412 -#
413 -# ...
414 -# }
415 -
416 -mozconfig_install_prefs() {
417 - local prefs_file="${1}"
418 -
419 - einfo "Adding prefs from mozconfig to ${prefs_file}"
420 -
421 - # set dictionary path, to use system hunspell
422 - echo "pref(\"spellchecker.dictionary_path\", \"${EPREFIX}/usr/share/myspell\");" \
423 - >>"${prefs_file}" || die
424 -
425 - # force the graphite pref if system-harfbuzz is enabled, since the pref cant disable it
426 - if use system-harfbuzz ; then
427 - echo "sticky_pref(\"gfx.font_rendering.graphite.enabled\",true);" \
428 - >>"${prefs_file}" || die
429 - fi
430 -}