| View previous topic :: View next topic |
| Author |
Message |
iamben Apprentice

Joined: 10 May 2004 Posts: 278
|
Posted: Thu Apr 21, 2005 7:48 am Post subject: ebuild for mozilla-firefox with real (orange/blue) icons |
|
|
i fear this is probably a repost to some extent, but couldnt seem to find a thread. saw some info on it somewhere else, but mine goes a bit further.
what is this about? when you build mozilla-firefox from source (not mozilla-firefox-bin), the icon that shows up in your taskbar and the graphics in the about menu show a generic looking blue globe instead of the familiar red fox + blue globe. a few minor changes in the ebuild can fix that. here's a link to a patched 1.0.3 ebuild, but read on if you wanna patch one of the other versions or want to know how to do it yourself for the next firefox release. instructions for portage overlay are down the page a bit, there's an extra step that most other ebuilds don't need, so beware. anyway, the changes:
open /usr/portage/www-client/mozilla-firefox/mozilla-firefox-1.0.3.ebuild (this should work for 1.0.1, 1.0.2, and 1.0.2-r1 afaik).
then scroll down to the end of the src_unpack section and add the 6 "cp" lines given here to make it look like this:
| Code: | if has_version '>=x11-libs/cairo-0.3.0'; then
epatch ${FILESDIR}/svg-cairo-0.3.0-fix.patch
fi
cp -f other-licenses/branding/firefox/default.xpm browser/app/default.xpm
cp -f other-licenses/branding/firefox/mozicon16.xpm browser/app/mozicon16.xpm
cp -f other-licenses/branding/firefox/mozicon50.xpm browser/app/mozicon50.xpm
cp -f other-licenses/branding/firefox/content/about.png browser/base/content/about.png
cp -f other-licenses/branding/firefox/content/aboutCredits.png browser/base/content/aboutCredits.png
cp -f other-licenses/branding/firefox/content/aboutFooter.png browser/base/content/aboutFooter.png
} |
and that's really it. you *could* save the file right there in /usr/portage, but then it'll get wiped out next time you sync. the better way is to put it in your overlay. here's how. I assume you want to use /var/local/portage for your overlay. oh, and if you have a functioning overlay already just do steps 3 & 4:
1. set your overlay dir in make.conf if you havent already:
| Code: | | echo "PORTDIR_OVERLAY=\"/usr/local/portage\"" >> /etc/make.conf |
2. create the dir for your overlay (and the subdirs for firefox):
| Code: | | mkdir -p /usr/local/portage/www-client/mozilla-firefox |
3. copy your new firefox ebuild into the overlay (from wherever you saved it):
| Code: | | cp mozilla-firefox-1.0.3.ebuild /usr/local/portage/www-client/mozilla-firefox |
4. copy all the patches to the overlay to make the ebuild happy:
| Code: | | cp /usr/portage/www-client/mozilla-firefox/files /usr/local/portage/www-client/mozilla-firefox -r |
5. create the digest for the new ebuild:
| Code: | | ebuild /usr/local/portage/www-client/mozilla-firefox/mozilla-firefox-1.0.3.ebuild digest |
there ya go, now emerge mozilla-firefox and enjoy the new (real) icons. please help me correct any errors, and please point me to the original thread about this that i KNOW exists somewhere. but maybe without the fix for the about dialog =) oh, and i know there is already a bit about this on the wiki, but if anyone wants to take these more complete instructions and wikify them that would be good too.
Last edited by iamben on Thu Apr 21, 2005 5:34 pm; edited 2 times in total |
|
| Back to top |
|
 |
Suicidal l33t


Joined: 30 Jul 2003 Posts: 959 Location: /dev/null
|
Posted: Thu Apr 21, 2005 8:43 am Post subject: |
|
|
Next time post stuff for the lazy at the top of the thread  |
|
| Back to top |
|
 |
zervus Tux's lil' helper


Joined: 19 Jan 2005 Posts: 133
|
Posted: Thu Apr 21, 2005 5:19 pm Post subject: |
|
|
| How about filing a bug report and submitting your ebuild there? |
|
| Back to top |
|
 |
iamben Apprentice

Joined: 10 May 2004 Posts: 278
|
Posted: Thu Apr 21, 2005 5:29 pm Post subject: |
|
|
good point about the premade ebuild, i moved the link up quite a bit in the post. also added the digest step, forgot about that.
i got the feeling that the blue globe was there for a reason, so this was more of a hack or tweak than a fix. i suppose i can check bugzilla to see if anything's been submitted, and if not just submit it and see what they have to say. |
|
| Back to top |
|
 |
rhill Retired Dev


Joined: 22 Oct 2004 Posts: 1629 Location: sk.ca
|
Posted: Thu Apr 21, 2005 5:46 pm Post subject: |
|
|
you get the blue globe because 3rd party builds aren't allowed to use the Firefox icon without formal permission from Mozilla. distributing it without a license violates copyright law. i doubt they care if you use it on your own personally copy, but there's no way Gentoo could distribute it with the source without their permission. _________________ by design, by neglect
for a fact or just for effect |
|
| Back to top |
|
 |
iamben Apprentice

Joined: 10 May 2004 Posts: 278
|
Posted: Thu Apr 21, 2005 5:51 pm Post subject: |
|
|
| it is already being distributed with the source |
|
| Back to top |
|
 |
zendal n00b


Joined: 30 Nov 2002 Posts: 23 Location: Olympia, WA
|
Posted: Mon Apr 25, 2005 10:23 am Post subject: Mozilla Official Branding |
|
|
Just Change
| Code: | mozconfig_annotate '' --enable-oji --enable-mathml
mozconfig_annotate '' --enable-oji --enable-mathml --enable-official-branding |
and then run:
| Code: | | ebuild mozilla-firefox-1.0.3.ebuild digest |
I wanted my official branding that method of the wiki is incorrect it doesn't change the about graphics. |
|
| Back to top |
|
 |
|