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

Collapse All | Expand All

(-)firefox-bin-52.0.1.ebuild (-9 / +22 lines)
Lines 31-37 Link Here
31
KEYWORDS="-* ~amd64 ~x86"
31
KEYWORDS="-* ~amd64 ~x86"
32
SLOT="0"
32
SLOT="0"
33
LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
33
LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
34
IUSE="selinux startup-notification"
34
IUSE="apulse crashreporter ffmpeg pulseaudio selinux startup-notification"
35
35
36
DEPEND="app-arch/unzip"
36
DEPEND="app-arch/unzip"
37
RDEPEND="dev-libs/atk
37
RDEPEND="dev-libs/atk
Lines 54-61 Link Here
54
	x11-libs/libXt
54
	x11-libs/libXt
55
	>=x11-libs/pango-1.22.0
55
	>=x11-libs/pango-1.22.0
56
	virtual/freedesktop-icon-theme
56
	virtual/freedesktop-icon-theme
57
	apulse? ( >=media-sound/apulse-0.1.9 )
58
	crashreporter? (
59
		gnome-base/gconf
60
		gnome-base/orbit
61
		net-misc/curl
62
	)
63
	ffmpeg? ( virtual/ffmpeg )
64
	pulseaudio? ( media-sound/pulseaudio )
57
	selinux? ( sec-policy/selinux-mozilla )
65
	selinux? ( sec-policy/selinux-mozilla )
58
"
66
"
67
REQUIRED_USE="
68
	apulse? ( !pulseaudio )
69
"
59
70
60
QA_PREBUILT="
71
QA_PREBUILT="
61
	opt/${MOZ_PN}/*.so
72
	opt/${MOZ_PN}/*.so
Lines 134-141 Link Here
134
	unset LD_PRELOAD
145
	unset LD_PRELOAD
135
	LD_LIBRARY_PATH="/opt/firefox/"
146
	LD_LIBRARY_PATH="/opt/firefox/"
136
	GTK_PATH=/usr/lib/gtk-2.0/
147
	GTK_PATH=/usr/lib/gtk-2.0/
137
	exec /opt/${MOZ_PN}/${MOZ_PN} "\$@"
138
	EOF
148
	EOF
149
	if use apulse; then
150
		echo "exec /usr/bin/apulse /opt/${MOZ_PN}/${MOZ_PN} \"\$@\"" >>"${ED}"usr/bin/${PN}
151
	else
152
		echo "exec /opt/${MOZ_PN}/${MOZ_PN} \"\$@\"" >>"${ED}"usr/bin/${PN}
153
	fi
139
	fperms 0755 /usr/bin/${PN}
154
	fperms 0755 /usr/bin/${PN}
140
155
141
	# revdep-rebuild entry
156
	# revdep-rebuild entry
Lines 155-168 Link Here
155
}
170
}
156
171
157
pkg_postinst() {
172
pkg_postinst() {
158
	if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \
173
	if ! use ffmpeg; then
159
		|| ! has_version 'net-misc/curl'; then
174
		einfo "For HTML5 video you need to enable ffmpeg"
160
		einfo
175
	fi
161
		einfo "For using the crashreporter, you need gnome-base/gconf,"
176
	if ! use apulse && ! use pulseaudio; then
162
		einfo "gnome-base/orbit and net-misc/curl emerged."
177
		einfo "For HTML sound you need to enable apulse or pulseaudio"
163
		einfo
164
	fi
178
	fi
165
	einfo "For HTML5 video you need media-video/ffmpeg installed."
166
179
167
	# Drop requirement of curl not built with nss as it's not necessary anymore
180
	# Drop requirement of curl not built with nss as it's not necessary anymore
168
	#if has_version 'net-misc/curl[nss]'; then
181
	#if has_version 'net-misc/curl[nss]'; then

Return to bug 615000