diff options
author | Raúl Porcel <armin76@gentoo.org> | 2008-06-21 19:34:53 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2008-06-21 19:34:53 +0000 |
commit | e573ec70235a4df9fc3cd28093db659d34b16b43 (patch) | |
tree | f0578cb37c7fb943ae0d0862d2f010082eaad02a /www-client | |
parent | Stable on ppc64; bug #222167 (diff) | |
download | gentoo-2-e573ec70235a4df9fc3cd28093db659d34b16b43.tar.gz gentoo-2-e573ec70235a4df9fc3cd28093db659d34b16b43.tar.bz2 gentoo-2-e573ec70235a4df9fc3cd28093db659d34b16b43.zip |
Add iceweasel branding, to make rbu happy
(Portage version: 2.1.4.4)
Diffstat (limited to 'www-client')
-rw-r--r-- | www-client/mozilla-firefox/ChangeLog | 6 | ||||
-rw-r--r-- | www-client/mozilla-firefox/mozilla-firefox-3.0-r1.ebuild | 33 |
2 files changed, 29 insertions, 10 deletions
diff --git a/www-client/mozilla-firefox/ChangeLog b/www-client/mozilla-firefox/ChangeLog index 7093f5147bc0..2ecb30cee4b7 100644 --- a/www-client/mozilla-firefox/ChangeLog +++ b/www-client/mozilla-firefox/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for www-client/mozilla-firefox # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.416 2008/06/20 14:41:05 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.417 2008/06/21 19:34:53 armin76 Exp $ + + 21 Jun 2008; Raúl Porcel <armin76@gentoo.org> + mozilla-firefox-3.0-r1.ebuild: + Add iceweasel branding, to make rbu happy 20 Jun 2008; Raúl Porcel <armin76@gentoo.org> mozilla-firefox-3.0-r1.ebuild: diff --git a/www-client/mozilla-firefox/mozilla-firefox-3.0-r1.ebuild b/www-client/mozilla-firefox/mozilla-firefox-3.0-r1.ebuild index c49e63f804b8..a37bd99446f8 100644 --- a/www-client/mozilla-firefox/mozilla-firefox-3.0-r1.ebuild +++ b/www-client/mozilla-firefox/mozilla-firefox-3.0-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.0-r1.ebuild,v 1.2 2008/06/20 14:41:05 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.0-r1.ebuild,v 1.3 2008/06/21 19:34:53 armin76 Exp $ EAPI="1" WANT_AUTOCONF="2.1" @@ -18,11 +18,12 @@ HOMEPAGE="http://www.mozilla.com/firefox" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" SLOT="0" LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" -IUSE="java mozdevelop bindist restrict-javascript +xulrunner" +IUSE="java mozdevelop bindist restrict-javascript iceweasel +xulrunner" SRC_URI="mirror://gentoo/${P}.tar.bz2 http://dev.gentoo.org/~armin76/${P}.tar.bz2 mirror://gentoo/${PATCH}.tar.bz2 + iceweasel? ( mirror://gentoo/iceweasel-icons-2.0.0.11.tar.bz2 ) !xulrunner? ( mirror://gentoo/xulrunner-1.9${MY_PV}.tar.bz2 )" # These are in @@ -104,7 +105,7 @@ pkg_setup(){ die "Pango needs X" fi - if ! use bindist; then + if ! use bindist && ! use iceweasel; 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" @@ -117,6 +118,12 @@ src_unpack() { ! use xulrunner && unpack xulrunner-1.9${MY_PV}.tar.bz2 unpack ${P}.tar.bz2 ${PATCH}.tar.bz2 + if use iceweasel; then + unpack iceweasel-icons-2.0.0.11.tar.bz2 + + cp -r iceweaselicons/browser mozilla/ + fi + linguas for X in ${linguas}; do [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi" @@ -134,6 +141,11 @@ src_unpack() { EPATCH_FORCE="yes" \ epatch "${WORKDIR}"/patch + if use iceweasel; then + sed -i -e "s|Minefield|Iceweasel|" browser/locales/en-US/chrome/branding/brand.* \ + browser/branding/nightly/configure.sh + fi + eautoreconf # We need to re-patch this because autoreconf overwrites it @@ -177,7 +189,7 @@ src_compile() { mozconfig_annotate '' --with-libxul-sdk=/usr/$(get_libdir)/xulrunner-1.9 fi - if ! use bindist; then + if ! use bindist && ! use iceweasel; then mozconfig_annotate '' --enable-official-branding fi @@ -252,8 +264,12 @@ src_install() { fi # Install icon and .desktop for menu entry - if ! use bindist; then - newicon "${S}"/other-licenses/branding/firefox/content/icon48.png firefox-icon.png + if use iceweasel; then + newicon "${S}"/browser/base/branding/icon48.png iceweasel-icon.png + newmenu "${FILESDIR}"/icon/iceweasel.desktop \ + mozilla-firefox-2.0.desktop + elif ! use bindist; 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 else @@ -289,9 +305,8 @@ pkg_postinst() { declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" ewarn "All the packages built against ${PN} won't compile," - ewarn "since they should be built against net-libs/xulrunner," - ewarn "therefore you should check if your package builds against" - ewarn "xulrunner and if it doesn't, file a bug, thanks." + ewarn "if after installing firefox 3.0 you get some blockers," + ewarn "please add 'xulrunner' to your USE-flags." # Update mimedb for the new .desktop file fdo-mime_desktop_database_update |