blob: bac7ea32015c5b9389868c8897c7cd5718660298 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit mozilla-scm
DESCRIPTION="Firefox Web Browser"
HOMEPAGE="http://www.mozilla.com/en-US/firefox"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
src_prepare() {
# Gentoo specific stuff
epatch "${FILESDIR}"/gentoo-specific.patch
eprefixify \
extensions/java/xpcom/interfaces/org/mozilla/xpcom/Mozilla.java \
xpcom/build/nsXPCOMPrivate.h \
xulrunner/installer/Makefile.in \
xulrunner/app/nsRegisterGREUnix.cpp
# Gentoo install dirs
sed -i \
-e 's:$(datadir)/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION):$(includedir)/idl:' \
-e 's:$(MOZ_APP_NAME)-$(MOZ_APP_VERSION):firefox:' \
-e 's:$(MOZ_APP_NAME)-devel-$(MOZ_APP_VERSION):firefox:' \
"${S}"/config/autoconf.mk.in \
|| die "${MAJ_XUL_PV} sed failed!"
eautoreconf
cd js/src
eautoreconf
}
src_configure() {
mozconfig_configure
}
src_install() {
mozilla-scm_src_install
pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/firefox
# Plugins dir
dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins \
|| die "failed to symlink"
}
|