aboutsummaryrefslogtreecommitdiff
blob: c98d64fe68a90f7ada0a3f500297439aeb0dc9ac (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="3"

inherit mozilla-scm mozilla-config pax-utils

DESCRIPTION="Firefox Web Browser"
HOMEPAGE="http://www.mozilla.com/en-US/firefox"

KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"

src_prepare() {
	# tmp fix
	sed -i \
		-e '/XPIDL_LINK =/s|$(LIBXUL_DIST)/sdk/bin|$(DEPTH)/xpcom/typelib/xpt/tools|' \
		config/config.mk \
		js/src/config/config.mk \
		|| die "tmp fix failed (maybe the time to remove it)"

	# 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:' \
		config/autoconf.mk.in \
		|| die "${MAJ_XUL_PV} sed failed!"

	eautoreconf
}

src_configure() {
	mozconfig_configure
}

src_install() {
	mozilla-scm_src_install
	mozilla_application_install

	pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/firefox

	# Plugins dir
	dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins \
		|| die "failed to symlink"
}