Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-plugins/chrome-binary-plugins/
Date: Mon, 01 Feb 2016 00:04:03
Message-Id: 1454285034.8242471835b0e8f12fc0c1cb223fb30c82fa37b2.floppym@gentoo
1 commit: 8242471835b0e8f12fc0c1cb223fb30c82fa37b2
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 1 00:03:26 2016 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 1 00:03:54 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82424718
7
8 www-plugins/chrome-binary-plugins: Drop the live ebuild
9
10 Package-Manager: portage-2.2.27_p57
11
12 .../chrome-binary-plugins-9999.ebuild | 99 ----------------------
13 1 file changed, 99 deletions(-)
14
15 diff --git a/www-plugins/chrome-binary-plugins/chrome-binary-plugins-9999.ebuild b/www-plugins/chrome-binary-plugins/chrome-binary-plugins-9999.ebuild
16 deleted file mode 100644
17 index 0d9e442..0000000
18 --- a/www-plugins/chrome-binary-plugins/chrome-binary-plugins-9999.ebuild
19 +++ /dev/null
20 @@ -1,99 +0,0 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Id$
24 -
25 -EAPI=5
26 -
27 -inherit multilib unpacker
28 -
29 -DESCRIPTION="Binary plugins from Google Chrome for use in Chromium"
30 -HOMEPAGE="https://www.google.com/chrome"
31 -
32 -case ${PV} in
33 - *_alpha*|9999*)
34 - SLOT="unstable"
35 - CHROMEDIR="opt/google/chrome-${SLOT}"
36 - MY_PV=${PV/_alpha/-}
37 - ;;
38 - *_beta*)
39 - SLOT="beta"
40 - CHROMEDIR="opt/google/chrome-${SLOT}"
41 - MY_PV=${PV/_beta/-}
42 - ;;
43 - *_p*)
44 - SLOT="stable"
45 - CHROMEDIR="opt/google/chrome"
46 - MY_PV=${PV/_p/-}
47 - ;;
48 - *)
49 - die "Invalid value for \${PV}: ${PV}"
50 - ;;
51 -esac
52 -
53 -MY_PN="google-chrome-${SLOT}"
54 -MY_P="${MY_PN}_${MY_PV}"
55 -
56 -if [[ ${PV} != 9999* ]]; then
57 -SRC_URI="
58 - amd64? (
59 - https://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_amd64.deb
60 - )
61 - x86? (
62 - https://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_i386.deb
63 - )
64 -"
65 -KEYWORDS="~amd64 ~x86"
66 -fi
67 -
68 -LICENSE="google-chrome"
69 -IUSE="+flash +widevine"
70 -RESTRICT="bindist mirror strip"
71 -
72 -for x in 0 beta stable unstable; do
73 - if [[ ${SLOT} != ${x} ]]; then
74 - RDEPEND+=" !${CATEGORY}/${PN}:${x}"
75 - fi
76 -done
77 -
78 -S="${WORKDIR}/${CHROMEDIR}"
79 -QA_PREBUILT="*"
80 -
81 -pkg_nofetch() {
82 - eerror "Please wait 24 hours and sync your portage tree before reporting fetch failures."
83 -}
84 -
85 -if [[ ${PV} == 9999* ]]; then
86 -src_unpack() {
87 - local base="https://dl.google.com/linux/direct"
88 - local debarch=${ARCH/x86/i386}
89 - wget -O google-chrome.deb "${base}/google-chrome-${SLOT}_current_${debarch}.deb" || die
90 - unpack_deb ./google-chrome.deb
91 -}
92 -fi
93 -
94 -src_install() {
95 - local version flapper
96 -
97 - insinto /usr/$(get_libdir)/chromium-browser/
98 -
99 - if use widevine; then
100 - doins libwidevinecdm.so
101 - strings ./chrome | grep -C 1 " (version:" | tail -1 > widevine.version
102 - doins widevine.version
103 - fi
104 -
105 - if use flash; then
106 - doins -r PepperFlash
107 -
108 - # Since this is a live ebuild, we're forced to, unfortuantely,
109 - # dynamically construct the command line args for Chromium.
110 - version=$(sed -n 's/.*"version": "\(.*\)",.*/\1/p' PepperFlash/manifest.json)
111 - flapper="${ROOT}usr/$(get_libdir)/chromium-browser/PepperFlash/libpepflashplayer.so"
112 - echo -n "CHROMIUM_FLAGS=\"\${CHROMIUM_FLAGS} " > pepper-flash
113 - echo -n "--ppapi-flash-path=$flapper " >> pepper-flash
114 - echo "--ppapi-flash-version=$version\"" >> pepper-flash
115 -
116 - insinto /etc/chromium/
117 - doins pepper-flash
118 - fi
119 -}