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

Collapse All | Expand All

(-)/usr/portage/www-client/vivaldi/vivaldi-2.10.1745.23_p1.ebuild (+43 lines)
Lines 28-33 Link Here
28
LICENSE="Vivaldi"
28
LICENSE="Vivaldi"
29
SLOT="0"
29
SLOT="0"
30
KEYWORDS="-* amd64 ~arm ~arm64 x86"
30
KEYWORDS="-* amd64 ~arm ~arm64 x86"
31
IUSE="+proprietary-codecs widevine"
31
RESTRICT="bindist mirror"
32
RESTRICT="bindist mirror"
32
33
33
DEPEND="
34
DEPEND="
Lines 60-65 Link Here
60
	x11-libs/libXrender
61
	x11-libs/libXrender
61
	x11-libs/libXtst
62
	x11-libs/libXtst
62
	x11-libs/pango[X]
63
	x11-libs/pango[X]
64
	proprietary-codecs? ( media-video/ffmpeg[chromium,x264] )
65
	widevine? (
66
		|| (
67
			www-plugins/chrome-binary-plugins
68
			www-client/google-chrome
69
			www-client/google-chrome-beta
70
			www-client/google-chrome-unstable
71
		)
72
	)
63
"
73
"
64
QA_PREBUILT="*"
74
QA_PREBUILT="*"
65
S=${WORKDIR}
75
S=${WORKDIR}
Lines 90-95 Link Here
90
		etc/cron.daily/ \
100
		etc/cron.daily/ \
91
		etc/ \
101
		etc/ \
92
		|| die
102
		|| die
103
	# Remove update scripts that can messup the system
104
	rm \
105
		${VIVALDI_HOME}/update-ffmpeg \
106
		${VIVALDI_HOME}/update-widevine \
107
		|| die
93
108
94
	local c d
109
	local c d
95
	for d in 16 22 24 32 48 64 128 256; do
110
	for d in 16 22 24 32 48 64 128 256; do
Lines 111-116 Link Here
111
	dosym /${VIVALDI_HOME}/${PN} /usr/bin/${PN}
126
	dosym /${VIVALDI_HOME}/${PN} /usr/bin/${PN}
112
127
113
	fperms 4711 /${VIVALDI_HOME}/${PN}-sandbox
128
	fperms 4711 /${VIVALDI_HOME}/${PN}-sandbox
129
130
	# Fix DRM support provided by Google Chrome WidevineCdm depending on the installed Chrome
131
	if use widevine; then
132
		if has_version www-client/google-chrome; then
133
			einfo ":: Using www-client/google-chrome for DRM support (WidevineCdm)"
134
		else
135
			rm -f "${D}"/${VIVALDI_HOME}/WidevineCdm || die
136
137
			if has_version www-plugins/chrome-binary-plugins; then
138
				einfo ":: Using www-plugins/chrome-binary-plugins for DRM support (WidevineCdm)"
139
				dosym /usr/$(get_libdir)/chromium-browser/WidevineCdm /${VIVALDI_HOME}/WidevineCdm
140
			elif has_version www-client/google-chrome-unstable; then
141
				einfo ":: Using www-client/google-chrome-unstable for DRM support (WidevineCdm)"
142
				dosym /opt/google/chrome-unstable/WidevineCdm /${VIVALDI_HOME}/WidevineCdm
143
			elif has_version www-client/google-chrome-beta; then
144
				einfo ":: Using www-client/google-chrome-beta for DRM support (WidevineCdm)"
145
				dosym /opt/google/chrome-beta/WidevineCdm /${VIVALDI_HOME}/WidevineCdm
146
			fi
147
		fi
148
	else
149
		rm -f "${D}"/${VIVALDI_HOME}/WidevineCdm || die
150
	fi
151
152
	# Enable propriety codecs through the media-video/ffmpeg[chromium]
153
	if use proprietary-codecs; then
154
		einfo ":: Enabling proprietary codecs support using media-video/ffmpeg[chromium]"
155
		dosym /usr/$(get_libdir)/chromium/libffmpeg.so /${VIVALDI_HOME}/libffmpeg.so.$(ver_cut 1-2)
156
	fi
114
}
157
}
115
158
116
pkg_postrm() {
159
pkg_postrm() {

Return to bug 653448