4 |
PVER="53.0.3" |
PVER="53.0.3" |
5 |
PBUILD="r1" |
PBUILD="r1" |
6 |
|
|
|
SPLIT_PACKAGES="firefox firefox-sdk" |
|
|
|
|
7 |
PCAT="net-www" |
PCAT="net-www" |
8 |
|
|
9 |
|
DESCRIPTION="Firefox is Mozilla's award-winning next generation web browser." |
10 |
HOMEPAGE="http://www.mozilla.org/products/firefox/" |
HOMEPAGE="http://www.mozilla.org/products/firefox/" |
11 |
|
|
12 |
FIREFOX_DEPEND=">= x11-libs/libXrender-0.9 |
PROVIDE="virtual/webbrowser" |
13 |
|
|
14 |
|
DEPEND=">= x11-libs/libXrender-0.9 |
15 |
>= x11-libs/libXcomposite-0.4 |
>= x11-libs/libXcomposite-0.4 |
16 |
>= x11-libs/libXt-1 |
>= x11-libs/libXt-1 |
17 |
>= x11-libs/libXmu-1 |
>= x11-libs/libXmu-1 |
41 |
>= x11-libs/startup-notification-0.12 |
>= x11-libs/startup-notification-0.12 |
42 |
>= x11-libs/pixman-0.34" |
>= x11-libs/pixman-0.34" |
43 |
|
|
44 |
SDEPEND="${FIREFOX_DEPEND} |
SDEPEND=">= x11-proto/xineramaproto-1 |
|
>= x11-proto/xineramaproto-1 |
|
45 |
>= x11-proto/compositeproto-0.4 |
>= x11-proto/compositeproto-0.4 |
46 |
>= dev-util/pkgconfig-0.25 |
>= dev-util/pkgconfig-0.25 |
47 |
>= sys-dev/autoconf-5 |
>= sys-dev/autoconf-5 |
70 |
# exclude betas (b), plugins (p), esr (e) and funnelcake (c) versions |
# exclude betas (b), plugins (p), esr (e) and funnelcake (c) versions |
71 |
UP2DATE="updatecmd http://ftp.mozilla.org/pub/${PNAME}/releases/ | grep '/releases/[0-9]' | sed 's:.*/releases/\(.*\)/:\1:' | grep -v '[b|c|e|p]' | upsort_pipe" |
UP2DATE="updatecmd http://ftp.mozilla.org/pub/${PNAME}/releases/ | grep '/releases/[0-9]' | sed 's:.*/releases/\(.*\)/:\1:' | grep -v '[b|c|e|p]' | upsort_pipe" |
72 |
|
|
|
split_info_firefox() |
|
|
{ |
|
|
DESCRIPTION="Firefox is Mozilla's award-winning next generation web browser." |
|
|
DEPEND="${FIREFOX_DEPEND}" |
|
|
PROVIDE="virtual/webbrowser" |
|
|
} |
|
|
|
|
|
split_info_firefox-sdk() |
|
|
{ |
|
|
DESCRIPTION="Firefox SDK to build plugins and programs." |
|
|
DEPEND="== net-www/firefox-${PVER}" |
|
|
} |
|
|
|
|
73 |
export MOZ_PHOENIX=1 |
export MOZ_PHOENIX=1 |
74 |
|
|
75 |
# set by configure (plus USE_AUTOCONF=1), but useful for NSPR |
# set by configure (plus USE_AUTOCONF=1), but useful for NSPR |
246 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" mmake -f client.mk || die |
MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" mmake -f client.mk || die |
247 |
} |
} |
248 |
|
|
249 |
src_install_firefox() |
src_install() |
250 |
{ |
{ |
251 |
cd ${SRCDIR} |
cd ${SRCDIR} |
252 |
|
|
299 |
MCONFIG="/etc/env.d/90firefox" |
MCONFIG="/etc/env.d/90firefox" |
300 |
mclearconfig || die |
mclearconfig || die |
301 |
maddconfig "LDPATH=/usr/$(mlibdir)/firefox" || die |
maddconfig "LDPATH=/usr/$(mlibdir)/firefox" || die |
|
|
|
|
# remove sdk files |
|
|
mdelete -r /usr/include || die |
|
|
mdelete -r /usr/share/idl || die |
|
|
mdelete -r /usr/$(mlibdir)/firefox-devel || die |
|
|
} |
|
|
|
|
|
src_install_firefox-sdk() |
|
|
{ |
|
|
cd ${SRCDIR} |
|
|
|
|
|
SHELL="${SHELL}" mmake -j1 -f client.mk DESTDIR=${BINDIR} install || die |
|
|
mchown -R root:root /usr/$(mlibdir)/firefox || die |
|
|
|
|
|
# environment |
|
|
# mozilla-1.7* uses already the env var mozilla_five_home |
|
|
# firefox does not need this, the env var is only to compile |
|
|
# mozilla-based sources |
|
|
minstalldir /etc/env.d || die |
|
|
MCONFIG="/etc/env.d/90firefox-sdk" |
|
|
mclearconfig || die |
|
|
maddconfig "MOZILLA_FIVE_HOME=/usr/$(mlibdir)/firefox" || die |
|
|
maddconfig "LDPATH=/usr/$(mlibdir)/firefox" || die |
|
|
|
|
|
# keep only sdk files |
|
|
zapmost ${BINDIR} \ |
|
|
etc/env.d \ |
|
|
usr/include \ |
|
|
usr/share/idl \ |
|
|
usr/$(mlibdir)/firefox-devel \ |
|
|
|| die |
|
302 |
} |
} |
303 |
|
|
304 |
preinstall_firefox() |
preinstall() |
305 |
{ |
{ |
306 |
# remove old 90mozilla-firefox env-file |
# remove old 90mozilla-firefox env-file |
307 |
if [[ -f ${MROOT}/etc/env.d/90mozilla-firefox ]] |
if [[ -f ${MROOT}/etc/env.d/90mozilla-firefox ]] |
311 |
fi |
fi |
312 |
} |
} |
313 |
|
|
314 |
postinstall_firefox() |
postinstall() |
315 |
{ |
{ |
316 |
fdo-mime_update_desktop_db |
fdo-mime_update_desktop_db |
317 |
gtk2_update_icon_cache |
gtk2_update_icon_cache |
318 |
} |
} |
319 |
|
|
320 |
postremove_firefox() |
postremove() |
321 |
{ |
{ |
322 |
fdo-mime_update_desktop_db |
fdo-mime_update_desktop_db |
323 |
gtk2_update_icon_cache |
gtk2_update_icon_cache |