1 |
commit: 24ad0d05406207ff62a848672ab1c997c7855026 |
2 |
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 9 00:31:51 2017 +0000 |
4 |
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 9 00:31:51 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=24ad0d05 |
7 |
|
8 |
committed the removal of firefox-45.7.0 |
9 |
|
10 |
www-client/firefox/firefox-45.7.0.ebuild | 370 ------------------------------- |
11 |
1 file changed, 370 deletions(-) |
12 |
|
13 |
diff --git a/www-client/firefox/firefox-45.7.0.ebuild b/www-client/firefox/firefox-45.7.0.ebuild |
14 |
deleted file mode 100644 |
15 |
index 17cb6bb..0000000 |
16 |
--- a/www-client/firefox/firefox-45.7.0.ebuild |
17 |
+++ /dev/null |
18 |
@@ -1,370 +0,0 @@ |
19 |
-# Copyright 1999-2017 Gentoo Foundation |
20 |
-# Distributed under the terms of the GNU General Public License v2 |
21 |
-# $Id$ |
22 |
- |
23 |
-EAPI=6 |
24 |
-VIRTUALX_REQUIRED="pgo" |
25 |
-WANT_AUTOCONF="2.1" |
26 |
-MOZ_ESR=1 |
27 |
- |
28 |
-# This list can be updated with scripts/get_langs.sh from the mozilla overlay |
29 |
-MOZ_LANGS=( ach af an ar as ast az be bg bn-BD bn-IN br bs ca cs cy da de |
30 |
-el en en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr |
31 |
-fy-NL ga-IE gd gl gu-IN he hi-IN hr hsb hu hy-AM id is it ja kk km kn ko |
32 |
-lt lv mai mk ml mr ms nb-NO nl nn-NO or pa-IN pl pt-BR pt-PT rm ro ru si |
33 |
-sk sl son sq sr sv-SE ta te th tr uk uz vi xh zh-CN zh-TW ) |
34 |
- |
35 |
-# Convert the ebuild version to the upstream mozilla version, used by mozlinguas |
36 |
-MOZ_PV="${PV/_alpha/a}" # Handle alpha for SRC_URI |
37 |
-MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI |
38 |
-MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI |
39 |
- |
40 |
-if [[ ${MOZ_ESR} == 1 ]]; then |
41 |
- # ESR releases have slightly different version numbers |
42 |
- MOZ_PV="${MOZ_PV}esr" |
43 |
-fi |
44 |
- |
45 |
-# Patch version |
46 |
-PATCH="${PN}-45.0-patches-11" |
47 |
-MOZ_HTTP_URI="https://archive.mozilla.org/pub/${PN}/releases" |
48 |
- |
49 |
-# Kill gtk3 support since gtk+-3.20 breaks it hard prior to 48.0 |
50 |
-#MOZCONFIG_OPTIONAL_GTK3=1 |
51 |
-MOZCONFIG_OPTIONAL_WIFI=1 |
52 |
-MOZCONFIG_OPTIONAL_JIT="enabled" |
53 |
- |
54 |
-inherit check-reqs flag-o-matic toolchain-funcs eutils gnome2-utils mozconfig-v6.45 pax-utils fdo-mime autotools virtualx mozlinguas-v2 |
55 |
- |
56 |
-DESCRIPTION="Firefox Web Browser" |
57 |
-HOMEPAGE="http://www.mozilla.com/firefox" |
58 |
- |
59 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
60 |
- |
61 |
-SLOT="0" |
62 |
-LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
63 |
-IUSE="bindist hardened hwaccel pgo selinux +gmp-autoupdate test" |
64 |
-RESTRICT="!bindist? ( bindist )" |
65 |
- |
66 |
-# More URIs appended below... |
67 |
-SRC_URI="${SRC_URI} |
68 |
- https://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.xz |
69 |
- https://dev.gentoo.org/~axs/mozilla/patchsets/${PATCH}.tar.xz |
70 |
- https://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz" |
71 |
- |
72 |
-ASM_DEPEND=">=dev-lang/yasm-1.1" |
73 |
- |
74 |
-# Mesa 7.10 needed for WebGL + bugfixes |
75 |
-RDEPEND=" |
76 |
- >=dev-libs/nss-3.21.1 |
77 |
- >=dev-libs/nspr-4.12 |
78 |
- selinux? ( sec-policy/selinux-mozilla )" |
79 |
- |
80 |
-DEPEND="${RDEPEND} |
81 |
- pgo? ( |
82 |
- >=sys-devel/gcc-4.5 ) |
83 |
- amd64? ( ${ASM_DEPEND} |
84 |
- virtual/opengl ) |
85 |
- x86? ( ${ASM_DEPEND} |
86 |
- virtual/opengl )" |
87 |
- |
88 |
-# No source releases for alpha|beta |
89 |
-if [[ ${PV} =~ alpha ]]; then |
90 |
- CHANGESET="8a3042764de7" |
91 |
- SRC_URI="${SRC_URI} |
92 |
- https://dev.gentoo.org/~nirbheek/mozilla/firefox/firefox-${MOZ_PV}_${CHANGESET}.source.tar.xz" |
93 |
- S="${WORKDIR}/mozilla-aurora-${CHANGESET}" |
94 |
-else |
95 |
- S="${WORKDIR}/firefox-${MOZ_PV}" |
96 |
- SRC_URI="${SRC_URI} |
97 |
- ${MOZ_HTTP_URI}/${MOZ_PV}/source/firefox-${MOZ_PV}.source.tar.xz" |
98 |
-fi |
99 |
- |
100 |
-QA_PRESTRIPPED="usr/lib*/${PN}/firefox" |
101 |
- |
102 |
-BUILD_OBJ_DIR="${S}/ff" |
103 |
- |
104 |
-pkg_setup() { |
105 |
- moz_pkgsetup |
106 |
- |
107 |
- # Avoid PGO profiling problems due to enviroment leakage |
108 |
- # These should *always* be cleaned up anyway |
109 |
- unset DBUS_SESSION_BUS_ADDRESS \ |
110 |
- DISPLAY \ |
111 |
- ORBIT_SOCKETDIR \ |
112 |
- SESSION_MANAGER \ |
113 |
- XDG_SESSION_COOKIE \ |
114 |
- XAUTHORITY |
115 |
- |
116 |
- if ! use bindist; then |
117 |
- einfo |
118 |
- elog "You are enabling official branding. You may not redistribute this build" |
119 |
- elog "to any users on your network or the internet. Doing so puts yourself into" |
120 |
- elog "a legal problem with Mozilla Foundation" |
121 |
- elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" |
122 |
- fi |
123 |
- |
124 |
- if use pgo; then |
125 |
- einfo |
126 |
- ewarn "You will do a double build for profile guided optimization." |
127 |
- ewarn "This will result in your build taking at least twice as long as before." |
128 |
- fi |
129 |
-} |
130 |
- |
131 |
-pkg_pretend() { |
132 |
- # Ensure we have enough disk space to compile |
133 |
- if use pgo || use debug || use test ; then |
134 |
- CHECKREQS_DISK_BUILD="8G" |
135 |
- else |
136 |
- CHECKREQS_DISK_BUILD="4G" |
137 |
- fi |
138 |
- check-reqs_pkg_setup |
139 |
-} |
140 |
- |
141 |
-src_unpack() { |
142 |
- unpack ${A} |
143 |
- |
144 |
- # Unpack language packs |
145 |
- mozlinguas_src_unpack |
146 |
-} |
147 |
- |
148 |
-src_prepare() { |
149 |
- # Apply our patches |
150 |
- eapply "${WORKDIR}/firefox" |
151 |
- |
152 |
- # Allow user to apply any additional patches without modifing ebuild |
153 |
- eapply_user |
154 |
- |
155 |
- # Enable gnomebreakpad |
156 |
- if use debug ; then |
157 |
- sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
158 |
- "${S}"/build/unix/run-mozilla.sh || die "sed failed!" |
159 |
- fi |
160 |
- |
161 |
- # Ensure that our plugins dir is enabled as default |
162 |
- sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \ |
163 |
- "${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!" |
164 |
- sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \ |
165 |
- "${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!" |
166 |
- |
167 |
- # Fix sandbox violations during make clean, bug 372817 |
168 |
- sed -e "s:\(/no-such-file\):${T}\1:g" \ |
169 |
- -i "${S}"/config/rules.mk \ |
170 |
- -i "${S}"/nsprpub/configure{.in,} \ |
171 |
- || die |
172 |
- |
173 |
- # Don't exit with error when some libs are missing which we have in |
174 |
- # system. |
175 |
- sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \ |
176 |
- -i "${S}"/browser/installer/Makefile.in || die |
177 |
- |
178 |
- # Don't error out when there's no files to be removed: |
179 |
- sed 's@\(xargs rm\)$@\1 -f@' \ |
180 |
- -i "${S}"/toolkit/mozapps/installer/packager.mk || die |
181 |
- |
182 |
- # Keep codebase the same even if not using official branding |
183 |
- sed '/^MOZ_DEV_EDITION=1/d' \ |
184 |
- -i "${S}"/browser/branding/aurora/configure.sh || die |
185 |
- |
186 |
- eautoreconf |
187 |
- |
188 |
- # Must run autoconf in js/src |
189 |
- cd "${S}"/js/src || die |
190 |
- eautoconf |
191 |
- |
192 |
- # Need to update jemalloc's configure |
193 |
- cd "${S}"/memory/jemalloc/src || die |
194 |
- WANT_AUTOCONF= eautoconf |
195 |
-} |
196 |
- |
197 |
-src_configure() { |
198 |
- MEXTENSIONS="default" |
199 |
- # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) |
200 |
- # Note: These are for Gentoo Linux use ONLY. For your own distribution, please |
201 |
- # get your own set of keys. |
202 |
- _google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
203 |
- |
204 |
- #################################### |
205 |
- # |
206 |
- # mozconfig, CFLAGS and CXXFLAGS setup |
207 |
- # |
208 |
- #################################### |
209 |
- |
210 |
- mozconfig_init |
211 |
- mozconfig_config |
212 |
- |
213 |
- # It doesn't compile on alpha without this LDFLAGS |
214 |
- use alpha && append-ldflags "-Wl,--no-relax" |
215 |
- |
216 |
- # Add full relro support for hardened |
217 |
- use hardened && append-ldflags "-Wl,-z,relro,-z,now" |
218 |
- |
219 |
- # Setup api key for location services |
220 |
- echo -n "${_google_api_key}" > "${S}"/google-api-key |
221 |
- mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key" |
222 |
- |
223 |
- mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
224 |
- mozconfig_annotate '' --disable-mailnews |
225 |
- |
226 |
- # Allow for a proper pgo build |
227 |
- if use pgo; then |
228 |
- echo "mk_add_options PROFILE_GEN_SCRIPT='\$(PYTHON) \$(OBJDIR)/_profile/pgo/profileserver.py'" >> "${S}"/.mozconfig |
229 |
- fi |
230 |
- |
231 |
- echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" >> "${S}"/.mozconfig |
232 |
- |
233 |
- # Finalize and report settings |
234 |
- mozconfig_final |
235 |
- |
236 |
- if [[ $(gcc-major-version) -lt 4 ]]; then |
237 |
- append-cxxflags -fno-stack-protector |
238 |
- fi |
239 |
- |
240 |
- # workaround for funky/broken upstream configure... |
241 |
- SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \ |
242 |
- emake -f client.mk configure |
243 |
-} |
244 |
- |
245 |
-src_compile() { |
246 |
- if use pgo; then |
247 |
- addpredict /root |
248 |
- addpredict /etc/gconf |
249 |
- # Reset and cleanup environment variables used by GNOME/XDG |
250 |
- gnome2_environment_reset |
251 |
- |
252 |
- # Firefox tries to use dri stuff when it's run, see bug 380283 |
253 |
- shopt -s nullglob |
254 |
- cards=$(echo -n /dev/dri/card* | sed 's/ /:/g') |
255 |
- if test -z "${cards}"; then |
256 |
- cards=$(echo -n /dev/ati/card* /dev/nvidiactl* | sed 's/ /:/g') |
257 |
- if test -n "${cards}"; then |
258 |
- # Binary drivers seem to cause access violations anyway, so |
259 |
- # let's use indirect rendering so that the device files aren't |
260 |
- # touched at all. See bug 394715. |
261 |
- export LIBGL_ALWAYS_INDIRECT=1 |
262 |
- fi |
263 |
- fi |
264 |
- shopt -u nullglob |
265 |
- addpredict "${cards}" |
266 |
- |
267 |
- MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \ |
268 |
- virtx emake -f client.mk profiledbuild || die "virtx emake failed" |
269 |
- else |
270 |
- MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \ |
271 |
- emake -f client.mk realbuild |
272 |
- fi |
273 |
- |
274 |
-} |
275 |
- |
276 |
-src_install() { |
277 |
- cd "${BUILD_OBJ_DIR}" || die |
278 |
- |
279 |
- # Pax mark xpcshell for hardened support, only used for startupcache creation. |
280 |
- pax-mark m "${BUILD_OBJ_DIR}"/dist/bin/xpcshell |
281 |
- |
282 |
- # Add our default prefs for firefox |
283 |
- cp "${FILESDIR}"/gentoo-default-prefs.js-1 \ |
284 |
- "${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \ |
285 |
- || die |
286 |
- |
287 |
- mozconfig_install_prefs \ |
288 |
- "${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" |
289 |
- |
290 |
- # Augment this with hwaccel prefs |
291 |
- if use hwaccel ; then |
292 |
- cat "${FILESDIR}"/gentoo-hwaccel-prefs.js-1 >> \ |
293 |
- "${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \ |
294 |
- || die |
295 |
- fi |
296 |
- |
297 |
- echo "pref(\"extensions.autoDisableScopes\", 3);" >> \ |
298 |
- "${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \ |
299 |
- || die |
300 |
- |
301 |
- local plugin |
302 |
- use gmp-autoupdate || for plugin in \ |
303 |
- gmp-gmpopenh264 ; do |
304 |
- echo "pref(\"media.${plugin}.autoupdate\", false);" >> \ |
305 |
- "${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \ |
306 |
- || die |
307 |
- done |
308 |
- |
309 |
- MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \ |
310 |
- emake DESTDIR="${D}" install |
311 |
- |
312 |
- # Install language packs |
313 |
- mozlinguas_src_install |
314 |
- |
315 |
- local size sizes icon_path icon name |
316 |
- if use bindist; then |
317 |
- sizes="16 32 48" |
318 |
- icon_path="${S}/browser/branding/aurora" |
319 |
- # Firefox's new rapid release cycle means no more codenames |
320 |
- # Let's just stick with this one... |
321 |
- icon="aurora" |
322 |
- name="Aurora" |
323 |
- |
324 |
- # Override preferences to set the MOZ_DEV_EDITION defaults, since we |
325 |
- # don't define MOZ_DEV_EDITION to avoid profile debaucles. |
326 |
- # (source: browser/app/profile/firefox.js) |
327 |
- cat >>"${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" <<PROFILE_EOF |
328 |
-pref("app.feedback.baseURL", "https://input.mozilla.org/%LOCALE%/feedback/firefoxdev/%VERSION%/"); |
329 |
-sticky_pref("lightweightThemes.selectedThemeID", "firefox-devedition@×××××××.org"); |
330 |
-sticky_pref("browser.devedition.theme.enabled", true); |
331 |
-sticky_pref("devtools.theme", "dark"); |
332 |
-PROFILE_EOF |
333 |
- |
334 |
- else |
335 |
- sizes="16 22 24 32 256" |
336 |
- icon_path="${S}/browser/branding/official" |
337 |
- icon="${PN}" |
338 |
- name="Mozilla Firefox" |
339 |
- fi |
340 |
- |
341 |
- # Install icons and .desktop for menu entry |
342 |
- for size in ${sizes}; do |
343 |
- insinto "/usr/share/icons/hicolor/${size}x${size}/apps" |
344 |
- newins "${icon_path}/default${size}.png" "${icon}.png" |
345 |
- done |
346 |
- # The 128x128 icon has a different name |
347 |
- insinto "/usr/share/icons/hicolor/128x128/apps" |
348 |
- newins "${icon_path}/mozicon128.png" "${icon}.png" |
349 |
- # Install a 48x48 icon into /usr/share/pixmaps for legacy DEs |
350 |
- newicon "${icon_path}/content/icon48.png" "${icon}.png" |
351 |
- newmenu "${FILESDIR}/icon/${PN}.desktop" "${PN}.desktop" |
352 |
- sed -i -e "s:@NAME@:${name}:" -e "s:@ICON@:${icon}:" \ |
353 |
- "${ED}/usr/share/applications/${PN}.desktop" || die |
354 |
- |
355 |
- # Add StartupNotify=true bug 237317 |
356 |
- if use startup-notification ; then |
357 |
- echo "StartupNotify=true"\ |
358 |
- >> "${ED}/usr/share/applications/${PN}.desktop" \ |
359 |
- || die |
360 |
- fi |
361 |
- |
362 |
- # Required in order to use plugins and even run firefox on hardened, with jit useflag. |
363 |
- if use jit; then |
364 |
- pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container} |
365 |
- else |
366 |
- pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/plugin-container |
367 |
- fi |
368 |
- |
369 |
- # very ugly hack to make firefox not sigbus on sparc |
370 |
- # FIXME: is this still needed?? |
371 |
- use sparc && { sed -e 's/Firefox/FirefoxGentoo/g' \ |
372 |
- -i "${ED}/${MOZILLA_FIVE_HOME}/application.ini" \ |
373 |
- || die "sparc sed failed"; } |
374 |
-} |
375 |
- |
376 |
-pkg_preinst() { |
377 |
- gnome2_icon_savelist |
378 |
-} |
379 |
- |
380 |
-pkg_postinst() { |
381 |
- # Update mimedb for the new .desktop file |
382 |
- fdo-mime_desktop_database_update |
383 |
- gnome2_icon_cache_update |
384 |
-} |
385 |
- |
386 |
-pkg_postrm() { |
387 |
- gnome2_icon_cache_update |
388 |
-} |