From 0e7ddfe93a5f7fe6943b9511c7b0a7976ffc699b Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 22 Jan 2011 00:42:51 -0600 Subject: testing/firefox: new aport --- testing/firefox/APKBUILD | 66 ++++++++++++++++++++++++++++++++++ testing/firefox/firefox-agent.patch | 12 +++++++ testing/firefox/firefox-defaults.patch | 28 +++++++++++++++ testing/firefox/firefox-version.patch | 11 ++++++ testing/firefox/mozconfig | 35 ++++++++++++++++++ 5 files changed, 152 insertions(+) create mode 100644 testing/firefox/APKBUILD create mode 100644 testing/firefox/firefox-agent.patch create mode 100644 testing/firefox/firefox-defaults.patch create mode 100644 testing/firefox/firefox-version.patch create mode 100644 testing/firefox/mozconfig (limited to 'testing/firefox') diff --git a/testing/firefox/APKBUILD b/testing/firefox/APKBUILD new file mode 100644 index 0000000000..7e8fd52392 --- /dev/null +++ b/testing/firefox/APKBUILD @@ -0,0 +1,66 @@ +# Contributor: William Pitcock +# Maintainer: William Pitcock +pkgname=firefox +pkgver=3.6.13 +_xulver=1.9.2.13 +pkgrel=0 +pkgdesc="firefox web browser (unofficial branding)" +url="http://www.firefox.com" +arch="all" +license="GPL LGPL MPL" +depends="xulrunner" +makedepends="xulrunner-dev>=${_xulver} + + autoconf2.13 + + python + zip + + autoconf + automake + libtool" +install="" +subpackages="" +source="http://releases.mozilla.org/pub/mozilla.org/${pkgname}/releases/${pkgver}/source/${pkgname}-${pkgver}.source.tar.bz2 + mozconfig + firefox-agent.patch + firefox-defaults.patch + firefox-version.patch" + +_xulrunner_version="${_xulver%.*}" +_builddir="${srcdir}/mozilla-${_xulrunner_version}" +prepare() { + local i + + cd "$_builddir" + + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + + cp "${srcdir}/mozconfig" .mozconfig +} + +build() { + cd "$_builddir" + + # mozilla's buildsystem is on drugs, so we just kill our CFLAGS and hope + # for the best. --nenolod + unset CFLAGS + unset CXXFLAGS + + make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS" || return 1 +} + +package() { + cd "$_builddir" + make -j1 DESTDIR="$pkgdir" install || return 1 +} + +md5sums="d7c90aed8209beefa74badf02e8eeae1 firefox-3.6.13.source.tar.bz2 +7938f0054456f3767d2427dff137ab34 mozconfig +f437e94acff8f810991271ef4677d859 firefox-agent.patch +1807651225b021e043154f8bba715a19 firefox-defaults.patch +92c11c66dd69b03f214002fededd1fc8 firefox-version.patch" diff --git a/testing/firefox/firefox-agent.patch b/testing/firefox/firefox-agent.patch new file mode 100644 index 0000000000..299f327e24 --- /dev/null +++ b/testing/firefox/firefox-agent.patch @@ -0,0 +1,12 @@ +diff -Nur mozilla-1.9.2.orig/browser/app/profile/firefox.js mozilla-1.9.2/browser/app/profile/firefox.js +--- mozilla-1.9.2.orig/browser/app/profile/firefox.js 2010-04-14 01:21:35.000000000 +0300 ++++ mozilla-1.9.2/browser/app/profile/firefox.js 2010-04-21 00:16:59.673528609 +0300 +@@ -183,7 +183,7 @@ + + pref("general.useragent.locale", "@AB_CD@"); + pref("general.skins.selectedSkin", "classic/1.0"); +-pref("general.useragent.extra.firefox", "@APP_UA_NAME@/@APP_VERSION@"); ++pref("general.useragent.extra.firefox", "Firefox/@APP_VERSION@"); + + pref("general.smoothScroll", false); + #ifdef UNIX_BUT_NOT_MAC diff --git a/testing/firefox/firefox-defaults.patch b/testing/firefox/firefox-defaults.patch new file mode 100644 index 0000000000..d3cdb473a4 --- /dev/null +++ b/testing/firefox/firefox-defaults.patch @@ -0,0 +1,28 @@ +diff -Nur mozilla-1.9.2.old//browser/branding/unofficial/locales/browserconfig.properties mozilla-1.9.2/browser/branding/unofficial/locales/browserconfig.properties +--- mozilla-1.9.2.old//browser/branding/unofficial/locales/browserconfig.properties 2010-04-14 01:21:35.000000000 +0300 ++++ mozilla-1.9.2/browser/branding/unofficial/locales/browserconfig.properties 2010-04-20 23:55:32.036959438 +0300 +@@ -1,3 +1,3 @@ + # Do NOT localize or otherwise change these values +-browser.startup.homepage=http://www.mozilla.org/projects/namoroka/ ++browser.startup.homepage=http://www.google.com/firefox + +diff -Nur mozilla-1.9.2.old//browser/branding/unofficial/pref/firefox-branding.js mozilla-1.9.2/browser/branding/unofficial/pref/firefox-branding.js +--- mozilla-1.9.2.old//browser/branding/unofficial/pref/firefox-branding.js 2010-04-14 01:21:35.000000000 +0300 ++++ mozilla-1.9.2/browser/branding/unofficial/pref/firefox-branding.js 2010-04-20 23:55:01.290102941 +0300 +@@ -1,5 +1,5 @@ +-pref("startup.homepage_override_url","http://www.mozilla.org/projects/%APP%/%VERSION%/whatsnew/"); +-pref("startup.homepage_welcome_url","http://www.mozilla.org/projects/%APP%/%VERSION%/firstrun/"); ++pref("startup.homepage_override_url","http://www.mozilla.com/%APP%/%VERSION%/whatsnew/"); ++pref("startup.homepage_welcome_url","http://www.mozilla.com/%APP%/%VERSION%/firstrun/"); + // The time interval between checks for a new version (in seconds) + // nightly=8 hours, official=24 hours + pref("app.update.interval", 28800); +@@ -14,7 +14,7 @@ + pref("app.update.url.details", "http://www.mozilla.org/projects/%APP%/"); + + // Release notes URL +-pref("app.releaseNotesURL", "http://www.mozilla.org/projects/%APP%/%VERSION%/releasenotes/"); ++pref("app.releaseNotesURL", "http://www.mozilla.com/%APP%/%VERSION%/releasenotes/"); + + // Search codes belong only in builds with official branding + pref("browser.search.param.yahoo-fr", ""); diff --git a/testing/firefox/firefox-version.patch b/testing/firefox/firefox-version.patch new file mode 100644 index 0000000000..a7f3740c7b --- /dev/null +++ b/testing/firefox/firefox-version.patch @@ -0,0 +1,11 @@ +--- mozilla-1.9.1/browser/installer/Makefile.in.ver 2009-07-18 13:32:35.000000000 +0200 ++++ mozilla-1.9.1/browser/installer/Makefile.in 2009-07-18 13:33:12.000000000 +0200 +@@ -43,6 +43,8 @@ + + include $(DEPTH)/config/autoconf.mk + ++MOZ_APP_VERSION="3.6" ++ + NO_PKG_FILES = \ + $(MOZ_APP_NAME)-config \ + $(MOZ_APP_NAME)-bin.elf \ diff --git a/testing/firefox/mozconfig b/testing/firefox/mozconfig new file mode 100644 index 0000000000..e6ec2d1c27 --- /dev/null +++ b/testing/firefox/mozconfig @@ -0,0 +1,35 @@ +. $topsrcdir/browser/config/mozconfig + +ac_add_options --prefix=/usr +ac_add_options --libdir=/usr/lib +ac_add_options --with-system-nspr +ac_add_options --with-system-nss +ac_add_options --with-system-jpeg +ac_add_options --with-system-zlib +ac_add_options --with-pthreads +ac_add_options --disable-tests +ac_add_options --disable-debug +ac_add_options --enable-optimize +ac_add_options --disable-installer +ac_add_options --enable-xinerama +ac_add_options --enable-default-toolkit=cairo-gtk2 +ac_add_options --disable-xprint +ac_add_options --enable-strip +ac_add_options --enable-pango +ac_add_options --enable-svg +ac_add_options --enable-canvas +ac_add_options --enable-startup-notification +ac_add_options --enable-libxul +ac_add_options --disable-crashreporter +ac_add_options --disable-updater +ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-1.9.2 +ac_add_options --enable-safe-browsing +ac_add_options --with-branding=browser/branding/unofficial + +export BUILD_OFFICIAL=1 +export MOZILLA_OFFICIAL=1 +export USE_SHORT_LIBNAME=1 + +mk_add_options BUILD_OFFICIAL=1 +mk_add_options MOZILLA_OFFICIAL=1 +mk_add_options USE_SHORT_LIBNAME=1 -- cgit v1.2.3