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-39.0.2171.2_alpha1.ebuild ChangeLog chrome-binary-plugins-39.0.2166.2_alpha1.ebuild
Date: Mon, 29 Sep 2014 19:49:36
Message-Id: 20140929194933.2D29B5B1@oystercatcher.gentoo.org
1 floppym 14/09/29 19:49:33
2
3 Modified: ChangeLog
4 Added: chrome-binary-plugins-39.0.2171.2_alpha1.ebuild
5 Removed: chrome-binary-plugins-39.0.2166.2_alpha1.ebuild
6 Log:
7 Automated update.
8
9 (Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
10
11 Revision Changes Path
12 1.184 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.184&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog?rev=1.184&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog?r1=1.183&r2=1.184
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog,v
21 retrieving revision 1.183
22 retrieving revision 1.184
23 diff -u -r1.183 -r1.184
24 --- ChangeLog 24 Sep 2014 22:28:23 -0000 1.183
25 +++ ChangeLog 29 Sep 2014 19:49:33 -0000 1.184
26 @@ -1,6 +1,13 @@
27 # ChangeLog for www-plugins/chrome-binary-plugins
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog,v 1.183 2014/09/24 22:28:23 floppym Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-plugins/chrome-binary-plugins/ChangeLog,v 1.184 2014/09/29 19:49:33 floppym Exp $
31 +
32 +*chrome-binary-plugins-39.0.2171.2_alpha1 (29 Sep 2014)
33 +
34 + 29 Sep 2014; Mike Gilbert <floppym@g.o>
35 + +chrome-binary-plugins-39.0.2171.2_alpha1.ebuild,
36 + -chrome-binary-plugins-39.0.2166.2_alpha1.ebuild:
37 + Automated update.
38
39 *chrome-binary-plugins-38.0.2125.77_beta1 (24 Sep 2014)
40
41
42
43
44 1.1 www-plugins/chrome-binary-plugins/chrome-binary-plugins-39.0.2171.2_alpha1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/chrome-binary-plugins/chrome-binary-plugins-39.0.2171.2_alpha1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/chrome-binary-plugins/chrome-binary-plugins-39.0.2171.2_alpha1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: chrome-binary-plugins-39.0.2171.2_alpha1.ebuild
50 ===================================================================
51 # Copyright 1999-2014 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-39.0.2171.2_alpha1.ebuild,v 1.1 2014/09/29 19:49:33 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"
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 flash; then
130 doins -r PepperFlash
131
132 # Since this is a live ebuild, we're forced to, unfortuantely,
133 # dynamically construct the command line args for Chromium.
134 version=$(sed -n 's/.*"version": "\(.*\)",.*/\1/p' PepperFlash/manifest.json)
135 flapper="${ROOT}usr/$(get_libdir)/chromium-browser/PepperFlash/libpepflashplayer.so"
136 echo -n "CHROMIUM_FLAGS=\"\${CHROMIUM_FLAGS} " > pepper-flash
137 echo -n "--ppapi-flash-path=$flapper " >> pepper-flash
138 echo "--ppapi-flash-version=$version\"" >> pepper-flash
139
140 insinto /etc/chromium/
141 doins pepper-flash
142 fi
143 }