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