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