You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.1 KiB
62 lines
1.1 KiB
4 years ago
|
# Copyright 2012-2021 Gentoo Authors
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
12 years ago
|
|
||
|
inherit multilib unpacker
|
||
|
|
||
10 years ago
|
DESCRIPTION="Binary plugins from Google Chrome for use in Chromium"
|
||
9 years ago
|
HOMEPAGE="https://www.google.com/chrome"
|
||
12 years ago
|
|
||
|
case ${PV} in
|
||
9 years ago
|
*_alpha*)
|
||
12 years ago
|
SLOT="unstable"
|
||
10 years ago
|
CHROMEDIR="opt/google/chrome-${SLOT}"
|
||
9 years ago
|
MY_PV=${PV%_alpha}-1
|
||
12 years ago
|
;;
|
||
|
*_beta*)
|
||
|
SLOT="beta"
|
||
10 years ago
|
CHROMEDIR="opt/google/chrome-${SLOT}"
|
||
9 years ago
|
MY_PV=${PV%_beta}-1
|
||
12 years ago
|
;;
|
||
9 years ago
|
*)
|
||
12 years ago
|
SLOT="stable"
|
||
10 years ago
|
CHROMEDIR="opt/google/chrome"
|
||
9 years ago
|
MY_PV=${PV}-1
|
||
12 years ago
|
;;
|
||
|
esac
|
||
|
|
||
4 years ago
|
KEYWORDS="-* ~amd64"
|
||
|
|
||
12 years ago
|
MY_PN="google-chrome-${SLOT}"
|
||
|
MY_P="${MY_PN}_${MY_PV}"
|
||
|
|
||
8 years ago
|
SRC_URI="https://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_amd64.deb"
|
||
12 years ago
|
|
||
|
LICENSE="google-chrome"
|
||
12 years ago
|
RESTRICT="bindist mirror strip"
|
||
12 years ago
|
|
||
6 years ago
|
RDEPEND="
|
||
5 years ago
|
dev-libs/glib:2
|
||
|
dev-libs/nspr
|
||
|
dev-libs/nss
|
||
6 years ago
|
"
|
||
8 years ago
|
|
||
12 years ago
|
for x in 0 beta stable unstable; do
|
||
|
if [[ ${SLOT} != ${x} ]]; then
|
||
|
RDEPEND+=" !${CATEGORY}/${PN}:${x}"
|
||
|
fi
|
||
|
done
|
||
|
|
||
10 years ago
|
S="${WORKDIR}/${CHROMEDIR}"
|
||
12 years ago
|
QA_PREBUILT="*"
|
||
12 years ago
|
|
||
11 years ago
|
pkg_nofetch() {
|
||
|
eerror "Please wait 24 hours and sync your portage tree before reporting fetch failures."
|
||
|
}
|
||
|
|
||
12 years ago
|
src_install() {
|
||
5 years ago
|
insinto "/usr/$(get_libdir)/chromium-browser"
|
||
|
doins -r WidevineCdm
|
||
12 years ago
|
}
|