|
Lines 1-9
Link Here
|
| 1 |
# Copyright 1999-2005 Gentoo Foundation |
1 |
# Copyright 1999-2005 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-1.0.5.ebuild,v 1.5 2005/07/14 09:40:09 killerfox Exp $ |
3 |
# $Header: $ |
| 4 |
|
4 |
|
| 5 |
inherit makeedit flag-o-matic nsplugins eutils mozconfig mozilla-launcher multilib |
5 |
inherit makeedit flag-o-matic nsplugins eutils mozconfig mozilla-launcher multilib fdo-mime |
| 6 |
|
6 |
|
|
|
7 |
FEDORA_VERSION="1.0.4-5" |
| 8 |
FEDORA_FILES="${WORKDIR}/fedora-files" |
| 7 |
S=${WORKDIR}/mozilla |
9 |
S=${WORKDIR}/mozilla |
| 8 |
|
10 |
|
| 9 |
DESCRIPTION="The Mozilla Firefox Web Browser" |
11 |
DESCRIPTION="The Mozilla Firefox Web Browser" |
|
Lines 15-25
Link Here
|
| 15 |
mirror://gentoo/mozilla-jslibmath-alpha.patch |
17 |
mirror://gentoo/mozilla-jslibmath-alpha.patch |
| 16 |
http://dev.gentoo.org/~agriffis/dist/mozilla-firefox-1.0.3-ia64.patch.bz2 |
18 |
http://dev.gentoo.org/~agriffis/dist/mozilla-firefox-1.0.3-ia64.patch.bz2 |
| 17 |
http://dev.gentoo.org/~agriffis/dist/mozilla-jslibmath-alpha.patch |
19 |
http://dev.gentoo.org/~agriffis/dist/mozilla-jslibmath-alpha.patch |
| 18 |
http://dev.gentoo.org/~agriffis/dist/mozilla-firefox-1.0-4ft2.patch.bz2" |
20 |
http://dev.gentoo.org/~agriffis/dist/mozilla-firefox-1.0-4ft2.patch.bz2 |
|
|
21 |
mirror://gentoo/firefox-fedora-files-${FEDORA_VERSION}.tar.bz2 |
| 22 |
http://tdegreni.free.fr/gentoo/firefox/firefox-fedora-files-${FEDORA_VERSION}.tar.bz2" |
| 19 |
|
23 |
|
| 20 |
LICENSE="MPL-1.1 NPL-1.1" |
24 |
LICENSE="MPL-1.1 NPL-1.1" |
| 21 |
SLOT="0" |
25 |
SLOT="0" |
| 22 |
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ppc sparc ~x86" |
26 |
KEYWORDS="~x86" |
| 23 |
IUSE="gnome java mozdevelop mozsvg" |
27 |
IUSE="gnome java mozdevelop mozsvg" |
| 24 |
|
28 |
|
| 25 |
# xrender.pc appeared for the first time in xorg-x11-6.7.0-r2 |
29 |
# xrender.pc appeared for the first time in xorg-x11-6.7.0-r2 |
|
Lines 41-47
Link Here
|
| 41 |
export MOZ_PHOENIX=1 |
44 |
export MOZ_PHOENIX=1 |
| 42 |
|
45 |
|
| 43 |
src_unpack() { |
46 |
src_unpack() { |
| 44 |
unpack firefox-${MY_PV}-source.tar.bz2 || die "unpack failed" |
47 |
unpack \ |
|
|
48 |
firefox-${MY_PV}-source.tar.bz2 \ |
| 49 |
firefox-fedora-files-${FEDORA_VERSION}.tar.bz2 \ |
| 50 |
|| die "unpack failed" |
| 45 |
cd ${S} || die "cd failed" |
51 |
cd ${S} || die "cd failed" |
| 46 |
|
52 |
|
| 47 |
# alpha stubs patch from lfs project. |
53 |
# alpha stubs patch from lfs project. |
|
Lines 79-84
Link Here
|
| 79 |
|
85 |
|
| 80 |
# GCC4 compile fix, bug #87800 |
86 |
# GCC4 compile fix, bug #87800 |
| 81 |
epatch ${FILESDIR}/mozilla-firefox-1.0.4-gcc4.patch |
87 |
epatch ${FILESDIR}/mozilla-firefox-1.0.4-gcc4.patch |
|
|
88 |
|
| 89 |
### Patches from the Fedora package |
| 90 |
### http://cvs.fedora.redhat.com/viewcvs/rpms/firefox/ |
| 91 |
### Many thanks to Christopher Aillon <caillon@redhat.com> |
| 92 |
# Disable the default application checks |
| 93 |
epatch ${FEDORA_FILES}/firefox-PR1-default-applications.patch |
| 94 |
# Add upstream fix to reduce round trips to xserver during remote control |
| 95 |
epatch ${FEDORA_FILES}/firefox-1.0-remote-intern-atoms.patch |
| 96 |
# Add upstream fix to call g_set_application_name |
| 97 |
epatch ${FEDORA_FILES}/firefox-1.0-g-application-name.patch |
| 82 |
} |
98 |
} |
| 83 |
|
99 |
|
| 84 |
src_compile() { |
100 |
src_compile() { |
|
Lines 100-105
Link Here
|
| 100 |
mozconfig_use_extension mozdevelop venkman |
116 |
mozconfig_use_extension mozdevelop venkman |
| 101 |
mozconfig_use_enable gnome gnomevfs |
117 |
mozconfig_use_enable gnome gnomevfs |
| 102 |
mozconfig_use_extension gnome gnomevfs |
118 |
mozconfig_use_extension gnome gnomevfs |
|
|
119 |
mozconfig_use_enable pango pango |
| 103 |
mozconfig_use_enable mozsvg svg |
120 |
mozconfig_use_enable mozsvg svg |
| 104 |
mozconfig_use_enable mozsvg svg-renderer-cairo |
121 |
mozconfig_use_enable mozsvg svg-renderer-cairo |
| 105 |
mozconfig_annotate '' --with-default-mozilla-five-home=/usr/$(get_libdir)/MozillaFirefox |
122 |
mozconfig_annotate '' --with-default-mozilla-five-home=/usr/$(get_libdir)/MozillaFirefox |
|
Lines 211-216
Link Here
|
| 211 |
# this. |
228 |
# this. |
| 212 |
einfo "Extracting firefox-${PV} initialization files" |
229 |
einfo "Extracting firefox-${PV} initialization files" |
| 213 |
tar xjpf ${FILESDIR}/firefox-0.9-init.tar.bz2 -C ${D}/usr/$(get_libdir)/MozillaFirefox |
230 |
tar xjpf ${FILESDIR}/firefox-0.9-init.tar.bz2 -C ${D}/usr/$(get_libdir)/MozillaFirefox |
|
|
231 |
|
| 232 |
# Manpage from the Fedora package: |
| 233 |
doman ${FEDORA_FILES}/firefox.1 |
| 214 |
} |
234 |
} |
| 215 |
|
235 |
|
| 216 |
pkg_preinst() { |
236 |
pkg_preinst() { |
|
Lines 254-261
Link Here
|
| 254 |
# mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and |
274 |
# mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and |
| 255 |
# thunderbird-bin ebuilds. |
275 |
# thunderbird-bin ebuilds. |
| 256 |
update_mozilla_launcher_symlinks |
276 |
update_mozilla_launcher_symlinks |
|
|
277 |
|
| 278 |
# Update mimedb for the new .desktop file |
| 279 |
fdo-mime_desktop_database_update |
| 257 |
} |
280 |
} |
| 258 |
|
281 |
|
| 259 |
pkg_postrm() { |
282 |
pkg_postrm() { |
| 260 |
update_mozilla_launcher_symlinks |
283 |
update_mozilla_launcher_symlinks |
|
|
284 |
|
| 285 |
# Update mimedb if .desktop file removed (real uninstall) |
| 286 |
[ -f ${ROOT}/usr/share/applications/mozilla-firefox.desktop ] \ |
| 287 |
|| fdo-mime_desktop_database_update |
| 261 |
} |
288 |
} |