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-client/google-chrome: google-chrome-23.0.1271.60_beta164911.ebuild google-chrome-24.0.1312.1_alpha164922.ebuild ChangeLog google-chrome-23.0.1271.40_beta162221.ebuild google-chrome-24.0.1305.3_alpha163672.ebuild
Date: Wed, 31 Oct 2012 20:06:58
Message-Id: 20121031200635.43C5E21600@flycatcher.gentoo.org
1 floppym 12/10/31 20:06:35
2
3 Modified: ChangeLog
4 Added: google-chrome-23.0.1271.60_beta164911.ebuild
5 google-chrome-24.0.1312.1_alpha164922.ebuild
6 Removed: google-chrome-23.0.1271.40_beta162221.ebuild
7 google-chrome-24.0.1305.3_alpha163672.ebuild
8 Log:
9 Bump.
10
11 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
12
13 Revision Changes Path
14 1.208 www-client/google-chrome/ChangeLog
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/google-chrome/ChangeLog?rev=1.208&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/google-chrome/ChangeLog?rev=1.208&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/google-chrome/ChangeLog?r1=1.207&r2=1.208
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/www-client/google-chrome/ChangeLog,v
23 retrieving revision 1.207
24 retrieving revision 1.208
25 diff -u -r1.207 -r1.208
26 --- ChangeLog 24 Oct 2012 19:16:11 -0000 1.207
27 +++ ChangeLog 31 Oct 2012 20:06:35 -0000 1.208
28 @@ -1,6 +1,16 @@
29 # ChangeLog for www-client/google-chrome
30 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/ChangeLog,v 1.207 2012/10/24 19:16:11 floppym Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/ChangeLog,v 1.208 2012/10/31 20:06:35 floppym Exp $
33 +
34 +*google-chrome-24.0.1312.1_alpha164922 (31 Oct 2012)
35 +*google-chrome-23.0.1271.60_beta164911 (31 Oct 2012)
36 +
37 + 31 Oct 2012; Mike Gilbert <floppym@g.o>
38 + +google-chrome-23.0.1271.60_beta164911.ebuild,
39 + +google-chrome-24.0.1312.1_alpha164922.ebuild,
40 + -google-chrome-23.0.1271.40_beta162221.ebuild,
41 + -google-chrome-24.0.1305.3_alpha163672.ebuild:
42 + Bump.
43
44 *google-chrome-24.0.1305.3_alpha163672 (24 Oct 2012)
45
46
47
48
49 1.1 www-client/google-chrome/google-chrome-23.0.1271.60_beta164911.ebuild
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/google-chrome/google-chrome-23.0.1271.60_beta164911.ebuild?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/google-chrome/google-chrome-23.0.1271.60_beta164911.ebuild?rev=1.1&content-type=text/plain
53
54 Index: google-chrome-23.0.1271.60_beta164911.ebuild
55 ===================================================================
56 # Copyright 1999-2012 Gentoo Foundation
57 # Distributed under the terms of the GNU General Public License v2
58 # $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/google-chrome-23.0.1271.60_beta164911.ebuild,v 1.1 2012/10/31 20:06:35 floppym Exp $
59
60 EAPI="4"
61
62 CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he
63 hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt_BR pt_PT ro ru sk sl sr
64 sv sw ta te th tr uk vi zh_CN zh_TW"
65
66 inherit chromium eutils multilib pax-utils unpacker
67
68 DESCRIPTION="The web browser from Google"
69 HOMEPAGE="http://www.google.com/chrome"
70
71 case ${PV} in
72 *_alpha*)
73 SLOT="unstable"
74 MY_PV=${PV/_alpha/-r}
75 ;;
76 *_beta*)
77 SLOT="beta"
78 MY_PV=${PV/_beta/-r}
79 ;;
80 *_p*)
81 SLOT="stable"
82 MY_PV=${PV/_p/-r}
83 ;;
84 *)
85 die "Invalid value for \${PV}: ${PV}"
86 ;;
87 esac
88
89 MY_PN="${PN}-${SLOT}"
90 MY_P="${MY_PN}_${MY_PV}"
91
92 SRC_BASE="http://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_"
93 SRC_URI="amd64? ( ${SRC_BASE}amd64.deb ) x86? ( ${SRC_BASE}i386.deb )"
94
95 LICENSE="google-chrome"
96 KEYWORDS="-* ~amd64 ~x86"
97 IUSE="+plugins"
98 RESTRICT="mirror strip"
99
100 RDEPEND="
101 app-arch/bzip2
102 app-misc/ca-certificates
103 dev-libs/atk
104 dev-libs/expat
105 dev-libs/glib:2
106 dev-libs/libgcrypt
107 dev-libs/nspr
108 dev-libs/nss
109 gnome-base/gconf:2
110 media-libs/alsa-lib
111 media-libs/fontconfig
112 media-libs/freetype
113 net-print/cups
114 sys-apps/dbus
115 || ( >=sys-devel/gcc-4.4.0[-nocxx] >=sys-devel/gcc-4.4.0[cxx] )
116 sys-fs/udev
117 x11-libs/cairo
118 x11-libs/gdk-pixbuf
119 x11-libs/gtk+:2
120 x11-libs/libX11
121 x11-libs/libXext
122 x11-libs/libXfixes
123 x11-libs/libXrandr
124 x11-libs/libXrender
125 x11-libs/libXScrnSaver
126 x11-libs/pango
127 x11-misc/xdg-utils
128 "
129
130 # Add blockers for the other slots.
131 for x in 0 beta stable unstable; do
132 if [[ ${SLOT} != ${x} ]]; then
133 RDEPEND+=" !${CATEGORY}/${PN}:${x}"
134 fi
135 done
136
137 QA_PREBUILT="*"
138 S=${WORKDIR}
139
140 pkg_nofetch() {
141 eerror "Please do not report bugs for google-chrome fetch failures."
142 eerror "The problem will be resolved with the next version bump."
143 eerror "Sync your portage tree and try again."
144 }
145
146 pkg_setup() {
147 CHROME_HOME="opt/google/chrome/"
148 chromium_suid_sandbox_check_kernel_config
149 }
150
151 src_install() {
152 pax-mark m ${CHROME_HOME}chrome || die
153 rm -rf usr/share/menu || die
154 mv usr/share/doc/${PN} usr/share/doc/${PF} || die
155
156 pushd "${CHROME_HOME}locales" > /dev/null || die
157 chromium_remove_language_paks
158 popd
159
160 mv opt usr "${D}" || die
161
162 fperms u+s "/${CHROME_HOME}chrome-sandbox" || die
163
164 if use plugins ; then
165 local plugins="--extra-plugin-dir=/usr/$(get_libdir)/nsbrowser/plugins"
166 sed -e "/^exec/ i set -- \"${plugins}\" \"\$@\"" \
167 -i "${D}${CHROME_HOME}google-chrome" || die
168 fi
169
170 domenu "${D}${CHROME_HOME}google-chrome.desktop" || die
171 local size
172 for size in 16 22 24 32 48 64 128 256 ; do
173 insinto /usr/share/icons/hicolor/${size}x${size}/apps
174 newins "${D}${CHROME_HOME}product_logo_${size}.png" google-chrome.png
175 done
176
177 # Compatibility symlink for newer udev, bug 423415.
178 dosym "/usr/$(get_libdir)/libudev.so" "${CHROME_HOME}libudev.so.0"
179 }
180
181 any_cpu_missing_flag() {
182 local value=$1
183 grep '^flags' /proc/cpuinfo | grep -qv "$value"
184 }
185
186 pkg_preinst() {
187 chromium_pkg_preinst
188 if any_cpu_missing_flag sse2; then
189 ewarn "The bundled PepperFlash plugin requires a CPU that supports the"
190 ewarn "SSE2 instruction set, and at least one of your CPUs does not"
191 ewarn "support this feature. Disabling PepperFlash."
192 sed -e "/^exec/ i set -- --disable-bundled-ppapi-flash \"\$@\"" \
193 -i "${D}${CHROME_HOME}google-chrome" || die
194 fi
195 }
196
197 pkg_postinst() {
198 chromium_pkg_postinst
199
200 einfo
201 elog "Please notice the bundled flash player (PepperFlash)."
202 elog "You can (de)activate all flash plugins via chrome://plugins"
203 einfo
204 }
205
206
207
208 1.1 www-client/google-chrome/google-chrome-24.0.1312.1_alpha164922.ebuild
209
210 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/google-chrome/google-chrome-24.0.1312.1_alpha164922.ebuild?rev=1.1&view=markup
211 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/google-chrome/google-chrome-24.0.1312.1_alpha164922.ebuild?rev=1.1&content-type=text/plain
212
213 Index: google-chrome-24.0.1312.1_alpha164922.ebuild
214 ===================================================================
215 # Copyright 1999-2012 Gentoo Foundation
216 # Distributed under the terms of the GNU General Public License v2
217 # $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/google-chrome-24.0.1312.1_alpha164922.ebuild,v 1.1 2012/10/31 20:06:35 floppym Exp $
218
219 EAPI="4"
220
221 CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he
222 hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt_BR pt_PT ro ru sk sl sr
223 sv sw ta te th tr uk vi zh_CN zh_TW"
224
225 inherit chromium eutils multilib pax-utils unpacker
226
227 DESCRIPTION="The web browser from Google"
228 HOMEPAGE="http://www.google.com/chrome"
229
230 case ${PV} in
231 *_alpha*)
232 SLOT="unstable"
233 MY_PV=${PV/_alpha/-r}
234 ;;
235 *_beta*)
236 SLOT="beta"
237 MY_PV=${PV/_beta/-r}
238 ;;
239 *_p*)
240 SLOT="stable"
241 MY_PV=${PV/_p/-r}
242 ;;
243 *)
244 die "Invalid value for \${PV}: ${PV}"
245 ;;
246 esac
247
248 MY_PN="${PN}-${SLOT}"
249 MY_P="${MY_PN}_${MY_PV}"
250
251 SRC_BASE="http://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_"
252 SRC_URI="amd64? ( ${SRC_BASE}amd64.deb ) x86? ( ${SRC_BASE}i386.deb )"
253
254 LICENSE="google-chrome"
255 KEYWORDS="-* ~amd64 ~x86"
256 IUSE="+plugins"
257 RESTRICT="mirror strip"
258
259 RDEPEND="
260 app-arch/bzip2
261 app-misc/ca-certificates
262 dev-libs/atk
263 dev-libs/expat
264 dev-libs/glib:2
265 dev-libs/libgcrypt
266 dev-libs/nspr
267 dev-libs/nss
268 gnome-base/gconf:2
269 media-libs/alsa-lib
270 media-libs/fontconfig
271 media-libs/freetype
272 net-print/cups
273 sys-apps/dbus
274 || ( >=sys-devel/gcc-4.4.0[-nocxx] >=sys-devel/gcc-4.4.0[cxx] )
275 sys-fs/udev
276 x11-libs/cairo
277 x11-libs/gdk-pixbuf
278 x11-libs/gtk+:2
279 x11-libs/libX11
280 x11-libs/libXext
281 x11-libs/libXfixes
282 x11-libs/libXrandr
283 x11-libs/libXrender
284 x11-libs/libXScrnSaver
285 x11-libs/pango
286 x11-misc/xdg-utils
287 "
288
289 # Add blockers for the other slots.
290 for x in 0 beta stable unstable; do
291 if [[ ${SLOT} != ${x} ]]; then
292 RDEPEND+=" !${CATEGORY}/${PN}:${x}"
293 fi
294 done
295
296 QA_PREBUILT="*"
297 S=${WORKDIR}
298
299 pkg_nofetch() {
300 eerror "Please do not report bugs for google-chrome fetch failures."
301 eerror "The problem will be resolved with the next version bump."
302 eerror "Sync your portage tree and try again."
303 }
304
305 pkg_setup() {
306 CHROME_HOME="opt/google/chrome/"
307 chromium_suid_sandbox_check_kernel_config
308 declare -f src_install
309 }
310
311 src_install() {
312 pax-mark m ${CHROME_HOME}chrome || die
313 rm -rf usr/share/menu || die
314 mv usr/share/doc/${PN} usr/share/doc/${PF} || die
315
316 pushd "${CHROME_HOME}locales" > /dev/null || die
317 chromium_remove_language_paks
318 popd
319
320 mv opt usr "${D}" || die
321
322 fperms u+s "/${CHROME_HOME}chrome-sandbox" || die
323
324 if use plugins ; then
325 local plugins="--extra-plugin-dir=/usr/$(get_libdir)/nsbrowser/plugins"
326 sed -e "/^exec/ i set -- \"${plugins}\" \"\$@\"" \
327 -i "${D}${CHROME_HOME}google-chrome" || die
328 fi
329
330 domenu "${D}${CHROME_HOME}google-chrome.desktop" || die
331 local size
332 for size in 16 22 24 32 48 64 128 256 ; do
333 insinto /usr/share/icons/hicolor/${size}x${size}/apps
334 newins "${D}${CHROME_HOME}product_logo_${size}.png" google-chrome.png
335 done
336
337 # Compatibility symlink for newer udev, bug 423415.
338 dosym "/usr/$(get_libdir)/libudev.so" "${CHROME_HOME}libudev.so.0"
339 }
340
341 any_cpu_missing_flag() {
342 local value=$1
343 grep '^flags' /proc/cpuinfo | grep -qv "$value"
344 }
345
346 pkg_preinst() {
347 chromium_pkg_preinst
348 if any_cpu_missing_flag sse2; then
349 ewarn "The bundled PepperFlash plugin requires a CPU that supports the"
350 ewarn "SSE2 instruction set, and at least one of your CPUs does not"
351 ewarn "support this feature. Disabling PepperFlash."
352 sed -e "/^exec/ i set -- --disable-bundled-ppapi-flash \"\$@\"" \
353 -i "${D}${CHROME_HOME}google-chrome" || die
354 fi
355 }
356
357 pkg_postinst() {
358 chromium_pkg_postinst
359
360 einfo
361 elog "Please notice the bundled flash player (PepperFlash)."
362 elog "You can (de)activate all flash plugins via chrome://plugins"
363 einfo
364 }