summaryrefslogtreecommitdiff
path: root/www-client/firefox/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-06-25 21:04:56 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-06-25 21:04:56 +0100
commitc2b0d275a42869258071fa3571652bb4c10f254e (patch)
tree4a69ee792cade0ef26d0f7272705e19f3bdb38b8 /www-client/firefox/files
parentdc902eb88e6dfa3cc46a065a8a5fc8c708c94915 (diff)
gentoo's PGO useflag doesn't work on firefox, but with some patching it will...add firefox with pgo.patch
Diffstat (limited to 'www-client/firefox/files')
-rw-r--r--www-client/firefox/files/firefox-32.0-hppa-js-configure.patch21
-rw-r--r--www-client/firefox/files/gentoo-default-prefs.js-117
-rw-r--r--www-client/firefox/files/icon/firefox.desktop9
-rw-r--r--www-client/firefox/files/pgo.patch13
4 files changed, 60 insertions, 0 deletions
diff --git a/www-client/firefox/files/firefox-32.0-hppa-js-configure.patch b/www-client/firefox/files/firefox-32.0-hppa-js-configure.patch
new file mode 100644
index 00000000..c37edda2
--- /dev/null
+++ b/www-client/firefox/files/firefox-32.0-hppa-js-configure.patch
@@ -0,0 +1,21 @@
+--- a/mozilla-release/js/src/configure.in
++++ b/mozilla-release/js/src/configure.in
+@@ -958,7 +958,7 @@
+ CPU_ARCH=s390x
+ ;;
+
+-hppa* | parisc)
++hppa* | parisc*)
+ CPU_ARCH=hppa
+ ;;
+
+@@ -2009,6 +2009,9 @@
+ AC_DEFINE(JS_CPU_MIPS)
+ AC_DEFINE(JS_NUNBOX32)
+ ;;
++hppa*)
++ AC_DEFINE(JS_NUNBOX32)
++ ;;
+ esac
+
+ MOZ_ARG_DISABLE_BOOL(ion,
diff --git a/www-client/firefox/files/gentoo-default-prefs.js-1 b/www-client/firefox/files/gentoo-default-prefs.js-1
new file mode 100644
index 00000000..22a51ff7
--- /dev/null
+++ b/www-client/firefox/files/gentoo-default-prefs.js-1
@@ -0,0 +1,17 @@
+pref("app.update.enabled", false);
+pref("app.update.autoInstallEnabled", false);
+pref("browser.display.use_system_colors", true);
+pref("browser.link.open_external", 3);
+pref("general.smoothScroll", true);
+pref("general.autoScroll", false);
+pref("browser.tabs.tabMinWidth", 15);
+pref("browser.backspace_action", 0);
+pref("browser.urlbar.hideGoButton", true);
+pref("accessibility.typeaheadfind", true);
+pref("browser.shell.checkDefaultBrowser", false);
+pref("browser.EULA.override", true);
+pref("general.useragent.vendor", "Gentoo");
+pref("intl.locale.matchOS", true);
+pref("general.useragent.locale", "chrome://global/locale/intl.properties");
+pref("extensions.autoDisableScopes", 0);
+pref("layout.css.dpi", 0);
diff --git a/www-client/firefox/files/icon/firefox.desktop b/www-client/firefox/files/icon/firefox.desktop
new file mode 100644
index 00000000..d772c2fe
--- /dev/null
+++ b/www-client/firefox/files/icon/firefox.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=@NAME@
+Comment=Web Browser
+Exec=firefox %u
+Icon=@ICON@
+Terminal=false
+Type=Application
+MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
+Categories=Network;WebBrowser;
diff --git a/www-client/firefox/files/pgo.patch b/www-client/firefox/files/pgo.patch
new file mode 100644
index 00000000..106bf598
--- /dev/null
+++ b/www-client/firefox/files/pgo.patch
@@ -0,0 +1,13 @@
+diff -Nur a/Makefile.in b/Makefile.in
+--- a/Makefile.in 2015-01-06 07:07:53.000000000 +0200
++++ b/Makefile.in 2015-02-22 02:54:01.523914597 +0200
+@@ -301,6 +301,9 @@
+ @relcount=`find $(DIST)/bin -name '*.so' | xargs objdump -R | grep R_386_PC32 | wc -l` && if test $$relcount -gt 0; then echo 'FAILED: R_386_PC32 relocations detected in a shared library. Did you use a system header without adding it to config/system-headers?'; exit 1; else echo 'PASSED'; fi
+ endif
+
++pgo-profile-run:
++ $(PYTHON) $(topsrcdir)/build/pgo/profileserver.py $(EXTRA_TEST_ARGS)
++
+ ifdef JS_STANDALONE
+ # Delegate js-specific rules to js
+ check-%: