Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-plugins/chrome-binary-plugins: chrome-binary-plugins-43.0.2357.45_beta1.ebuild ChangeLog chrome-binary-plugins-43.0.2357.37_beta1.ebuild
Date: Thu, 30 Apr 2015 01:41:33
Message-Id: 20150430014124.9FE999B6@oystercatcher.gentoo.org
1 floppym 15/04/30 01:41:23
2
3 Modified: ChangeLog
4 Added: chrome-binary-plugins-43.0.2357.45_beta1.ebuild
5 Removed: chrome-binary-plugins-43.0.2357.37_beta1.ebuild
6 Log:
7 Automated update.
8
9 (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
10
11 Revision Changes Path
12 1.247 www-plugins/chrome-binary-plugins/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog?rev=1.247&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog?rev=1.247&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog?r1=1.246&r2=1.247
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog,v
21 retrieving revision 1.246
22 retrieving revision 1.247
23 diff -u -r1.246 -r1.247
24 --- ChangeLog 29 Apr 2015 00:48:22 -0000 1.246
25 +++ ChangeLog 30 Apr 2015 01:41:23 -0000 1.247
26 @@ -1,6 +1,13 @@
27 # ChangeLog for www-plugins/chrome-binary-plugins
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog,v 1.246 2015/04/29 00:48:22 floppym Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog,v 1.247 2015/04/30 01:41:23 floppym Exp $
31 +
32 +*chrome-binary-plugins-43.0.2357.45_beta1 (30 Apr 2015)
33 +
34 + 30 Apr 2015; Mike Gilbert <floppym@g.o>
35 + +chrome-binary-plugins-43.0.2357.45_beta1.ebuild,
36 + -chrome-binary-plugins-43.0.2357.37_beta1.ebuild:
37 + Automated update.
38
39 *chrome-binary-plugins-42.0.2311.135_p1 (29 Apr 2015)
40 *chrome-binary-plugins-44.0.2383.0_alpha1 (29 Apr 2015)
41
42
43
44 1.1 www-plugins/chrome-binary-plugins/chrome-binary-plugins-43.0.2357.45_beta1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/chrome-binary-plugins/chrome-binary-plugins-43.0.2357.45_beta1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/chrome-binary-plugins/chrome-binary-plugins-43.0.2357.45_beta1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: chrome-binary-plugins-43.0.2357.45_beta1.ebuild
50 ===================================================================
51 # Copyright 1999-2015 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/www-plugins/chrome-binary-plugins/chrome-binary-plugins-43.0.2357.45_beta1.ebuild,v 1.1 2015/04/30 01:41:23 floppym Exp $
54
55 EAPI=5
56
57 inherit multilib unpacker
58
59 DESCRIPTION="Binary plugins from Google Chrome for use in Chromium"
60 HOMEPAGE="http://www.google.com/chrome"
61
62 case ${PV} in
63 *_alpha*|9999*)
64 SLOT="unstable"
65 CHROMEDIR="opt/google/chrome-${SLOT}"
66 MY_PV=${PV/_alpha/-}
67 ;;
68 *_beta*)
69 SLOT="beta"
70 CHROMEDIR="opt/google/chrome-${SLOT}"
71 MY_PV=${PV/_beta/-}
72 ;;
73 *_p*)
74 SLOT="stable"
75 CHROMEDIR="opt/google/chrome"
76 MY_PV=${PV/_p/-}
77 ;;
78 *)
79 die "Invalid value for \${PV}: ${PV}"
80 ;;
81 esac
82
83 MY_PN="google-chrome-${SLOT}"
84 MY_P="${MY_PN}_${MY_PV}"
85
86 if [[ ${PV} != 9999* ]]; then
87 SRC_URI="
88 amd64? (
89 https://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_amd64.deb
90 )
91 x86? (
92 https://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_i386.deb
93 )
94 "
95 KEYWORDS="~amd64 ~x86"
96 fi
97
98 LICENSE="google-chrome"
99 IUSE="+flash +widevine"
100 RESTRICT="bindist mirror strip"
101
102 for x in 0 beta stable unstable; do
103 if [[ ${SLOT} != ${x} ]]; then
104 RDEPEND+=" !${CATEGORY}/${PN}:${x}"
105 fi
106 done
107
108 S="${WORKDIR}/${CHROMEDIR}"
109 QA_PREBUILT="*"
110
111 pkg_nofetch() {
112 eerror "Please wait 24 hours and sync your portage tree before reporting fetch failures."
113 }
114
115 if [[ ${PV} == 9999* ]]; then
116 src_unpack() {
117 local base="https://dl.google.com/linux/direct"
118 local debarch=${ARCH/x86/i386}
119 wget -O google-chrome.deb "${base}/google-chrome-${SLOT}_current_${debarch}.deb" || die
120 unpack_deb ./google-chrome.deb
121 }
122 fi
123
124 src_install() {
125 local version flapper
126
127 insinto /usr/$(get_libdir)/chromium-browser/
128
129 if use widevine; then
130 doins libwidevinecdm.so
131 strings ./chrome | grep -C 1 " (version:" | tail -1 > widevine.version
132 doins widevine.version
133 einfo "Please note that if you intend to use this with www-clients/chromium,"
134 einfo "you'll need to enable the widevine USE flag there as well, in order to"
135 einfo "utilize the widevine USE flag that's been used here."
136 fi
137
138 if use flash; then
139 doins -r PepperFlash
140
141 # Since this is a live ebuild, we're forced to, unfortuantely,
142 # dynamically construct the command line args for Chromium.
143 version=$(sed -n 's/.*"version": "\(.*\)",.*/\1/p' PepperFlash/manifest.json)
144 flapper="${ROOT}usr/$(get_libdir)/chromium-browser/PepperFlash/libpepflashplayer.so"
145 echo -n "CHROMIUM_FLAGS=\"\${CHROMIUM_FLAGS} " > pepper-flash
146 echo -n "--ppapi-flash-path=$flapper " >> pepper-flash
147 echo "--ppapi-flash-version=$version\"" >> pepper-flash
148
149 insinto /etc/chromium/
150 doins pepper-flash
151 fi
152 }