--- /usr/portage/www-client/mozilla-firefox/mozilla-firefox-3.0.10.ebuild 2009-05-02 01:36:57.000000000 +0200 +++ /usr/local/portage/www-client/mozilla-firefox/mozilla-firefox-3.0.10.ebuild 2009-05-27 14:10:31.000000000 +0200 @@ -18,13 +18,14 @@ KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86" SLOT="0" LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" -IUSE="java mozdevelop bindist restrict-javascript iceweasel +xulrunner" +IUSE="java mozdevelop bindist restrict-javascript iceweasel +xulrunner swiftweasel" SRC_URI="mirror://gentoo/${P}.tar.bz2 http://dev.gentoo.org/~armin76/dist/${P}.tar.bz2 mirror://gentoo/${PATCH}.tar.bz2 http://dev.gentoo.org/~armin76/dist/${PATCH}.tar.bz2 iceweasel? ( mirror://gentoo/iceweasel-icons-3.0.tar.bz2 ) + swiftweasel? ( http://switch.dl.sourceforge.net/sourceforge/swiftweasel/swiftweasel-3.0.10_source.tar.gz ) !xulrunner? ( mirror://gentoo/xulrunner-1.9${MY_PV}.tar.bz2 )" REL_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases" @@ -92,7 +93,7 @@ } pkg_setup(){ - if ! use bindist && ! use iceweasel; then + if ! use bindist && ! use iceweasel && ! use swiftweasel; then elog "You are enabling official branding. You may not redistribute this build" elog "to any users on your network or the internet. Doing so puts yourself into" elog "a legal problem with Mozilla Foundation" @@ -111,6 +112,12 @@ cp -r iceweaselicons/browser mozilla/ fi + if use swiftweasel; then + unpack swiftweasel-3.0.10_source.tar.gz + cp -r Source/Swiftwease\ Graphics/* mozilla/ + EPATCH_SOURCE="${PWD}" epatch Source/sw3010.patch # FIXME + fi + linguas for X in ${linguas}; do [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi" @@ -181,9 +188,9 @@ mozconfig_annotate '' --with-libxul-sdk=/usr/$(get_libdir)/xulrunner-1.9 fi - if ! use bindist && ! use iceweasel; then + if ! use bindist && ! use iceweasel && ! use swiftweasel; then mozconfig_annotate '' --enable-official-branding - elif use bindist && ! use iceweasel; then + elif use bindist && ! use iceweasel && ! use swiftweasel; then mozconfig_annotate 'bindist' --with-branding=browser/branding/unofficial fi @@ -246,7 +253,7 @@ newicon "${S}"/browser/base/branding/icon48.png iceweasel-icon.png newmenu "${FILESDIR}"/icon/iceweasel.desktop \ mozilla-firefox-3.0.desktop - elif ! use bindist; then + elif ! use bindist && ! use swiftweasel; then newicon "${S}"/other-licenses/branding/firefox/content/icon48.png firefox-icon.png newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5.desktop \ mozilla-firefox-3.0.desktop