Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 259062 | Differences between
and this patch

Collapse All | Expand All

(-)net-libs/xulrunner/xulrunner-1.9.1.2-r1.ebuild (-2 / +21 lines)
Lines 21-27 Link Here
21
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
21
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
22
SLOT="1.9"
22
SLOT="1.9"
23
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
23
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
24
IUSE="+alsa debug python" # qt-experimental
24
IUSE="+alsa debug pgo python" # qt-experimental
25
25
26
#	qt-experimental? (
26
#	qt-experimental? (
27
#		x11-libs/qt-gui
27
#		x11-libs/qt-gui
Lines 29-34 Link Here
29
29
30
# nspr-4.8 due to BMO #499144
30
# nspr-4.8 due to BMO #499144
31
RDEPEND="java? ( >=virtual/jre-1.4 )
31
RDEPEND="java? ( >=virtual/jre-1.4 )
32
	pgo? ( >=sys-devel/gcc-4.4.1 )
32
	>=dev-lang/python-2.3[threads]
33
	>=dev-lang/python-2.3[threads]
33
	>=sys-devel/binutils-2.16.1
34
	>=sys-devel/binutils-2.16.1
34
	>=dev-libs/nss-3.12.3
35
	>=dev-libs/nss-3.12.3
Lines 61-66 Link Here
61
	EPATCH_SUFFIX="patch" \
62
	EPATCH_SUFFIX="patch" \
62
	EPATCH_FORCE="yes" \
63
	EPATCH_FORCE="yes" \
63
	epatch "${WORKDIR}"
64
	epatch "${WORKDIR}"
65
	use pgo && epatch "${FILESDIR}/gcc44-pgo.diff"
64
66
65
	# Same as in config/autoconf.mk.in
67
	# Same as in config/autoconf.mk.in
66
	MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
68
	MOZLIBDIR="/usr/$(get_libdir)/${PN}-${MAJ_PV}"
Lines 149-154 Link Here
149
	mozconfig_annotate '' --enable-xpctools
151
	mozconfig_annotate '' --enable-xpctools
150
	mozconfig_annotate '' --with-default-mozilla-five-home="${MOZLIBDIR}"
152
	mozconfig_annotate '' --with-default-mozilla-five-home="${MOZLIBDIR}"
151
153
154
	# enable profile guided optimization
155
	if use pgo; then
156
		echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/xul-opt" >> .mozconfig
157
		echo "mk_add_options PROFILE_GEN_SCRIPT='\$(PYTHON) \$(OBJDIR)/_profile/pgo/profileserver.py'" >> .mozconfig
158
	fi
159
152
	# Disable/Enable audio support based on USE
160
	# Disable/Enable audio support based on USE
153
	mozconfig_use_enable alsa ogg
161
	mozconfig_use_enable alsa ogg
154
	mozconfig_use_enable alsa wave
162
	mozconfig_use_enable alsa wave
Lines 186-192 Link Here
186
	sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \
194
	sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \
187
		"${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!"
195
		"${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!"
188
196
189
	CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf
197
	# without econf we need these
198
	mozconfig_annotate '' --prefix=/usr
199
	mozconfig_annotate '' --libdir=/usr/$(get_libdir)
200
}
201
202
src_compile() {
203
	# profile guided optimization
204
	local pgo=""
205
	use pgo && pgo="-j1 profiledbuild"
206
207
	CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
208
	emake -f client.mk ${pgo} || die "emake failed"
190
}
209
}
191
210
192
src_install() {
211
src_install() {

Return to bug 259062