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-33.0.1712.4_alpha1.ebuild ChangeLog google-chrome-33.0.1711.3_alpha1.ebuild
Date: Thu, 21 Nov 2013 22:07:07
Message-Id: 20131121220701.1004C2004B@flycatcher.gentoo.org
1 floppym 13/11/21 22:07:00
2
3 Modified: ChangeLog
4 Added: google-chrome-33.0.1712.4_alpha1.ebuild
5 Removed: google-chrome-33.0.1711.3_alpha1.ebuild
6 Log:
7 Automated update.
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
10
11 Revision Changes Path
12 1.345 www-client/google-chrome/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/google-chrome/ChangeLog?rev=1.345&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/google-chrome/ChangeLog?rev=1.345&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/google-chrome/ChangeLog?r1=1.344&r2=1.345
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-client/google-chrome/ChangeLog,v
21 retrieving revision 1.344
22 retrieving revision 1.345
23 diff -u -r1.344 -r1.345
24 --- ChangeLog 19 Nov 2013 17:24:27 -0000 1.344
25 +++ ChangeLog 21 Nov 2013 22:07:00 -0000 1.345
26 @@ -1,6 +1,13 @@
27 # ChangeLog for www-client/google-chrome
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/ChangeLog,v 1.344 2013/11/19 17:24:27 floppym Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/ChangeLog,v 1.345 2013/11/21 22:07:00 floppym Exp $
31 +
32 +*google-chrome-33.0.1712.4_alpha1 (21 Nov 2013)
33 +
34 + 21 Nov 2013; Mike Gilbert <floppym@g.o>
35 + +google-chrome-33.0.1712.4_alpha1.ebuild,
36 + -google-chrome-33.0.1711.3_alpha1.ebuild:
37 + Automated update.
38
39 *google-chrome-33.0.1711.3_alpha1 (19 Nov 2013)
40 *google-chrome-32.0.1700.19_beta1 (19 Nov 2013)
41
42
43
44 1.1 www-client/google-chrome/google-chrome-33.0.1712.4_alpha1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/google-chrome/google-chrome-33.0.1712.4_alpha1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/google-chrome/google-chrome-33.0.1712.4_alpha1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: google-chrome-33.0.1712.4_alpha1.ebuild
50 ===================================================================
51 # Copyright 1999-2013 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/www-client/google-chrome/google-chrome-33.0.1712.4_alpha1.ebuild,v 1.1 2013/11/21 22:07:00 floppym Exp $
54
55 EAPI="4"
56
57 CHROMIUM_LANGS="am ar bg bn ca cs da de el en_GB es es_LA et fa fi fil fr gu he
58 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
59 sv sw ta te th tr uk vi zh_CN zh_TW"
60
61 inherit readme.gentoo chromium eutils multilib pax-utils unpacker
62
63 DESCRIPTION="The web browser from Google"
64 HOMEPAGE="http://www.google.com/chrome"
65
66 case ${PV} in
67 *_alpha*)
68 SLOT="unstable"
69 MY_PV=${PV/_alpha/-}
70 ;;
71 *_beta*)
72 SLOT="beta"
73 MY_PV=${PV/_beta/-}
74 ;;
75 *_p*)
76 SLOT="stable"
77 MY_PV=${PV/_p/-}
78 ;;
79 *)
80 die "Invalid value for \${PV}: ${PV}"
81 ;;
82 esac
83
84 MY_PN="${PN}-${SLOT}"
85 MY_P="${MY_PN}_${MY_PV}"
86
87 SRC_URI="
88 amd64? (
89 http://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_amd64.deb
90 )
91 x86? (
92 http://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_i386.deb
93 )
94 "
95
96 LICENSE="google-chrome"
97 KEYWORDS="-* ~amd64 ~x86"
98 IUSE="+plugins"
99 RESTRICT="bindist mirror strip"
100
101 RDEPEND="
102 app-arch/bzip2
103 app-misc/ca-certificates
104 dev-libs/atk
105 dev-libs/expat
106 dev-libs/glib:2
107 dev-libs/libgcrypt
108 dev-libs/nspr
109 dev-libs/nss
110 gnome-base/gconf:2
111 media-libs/alsa-lib
112 media-libs/fontconfig
113 media-libs/freetype
114 net-print/cups
115 sys-apps/dbus
116 >=sys-devel/gcc-4.4.0[cxx]
117 x11-libs/cairo
118 x11-libs/gdk-pixbuf
119 x11-libs/gtk+:2
120 >=x11-libs/libX11-1.5.0
121 x11-libs/libXcomposite
122 x11-libs/libXdamage
123 x11-libs/libXext
124 x11-libs/libXfixes
125 x11-libs/libXi
126 x11-libs/libXrandr
127 x11-libs/libXrender
128 x11-libs/libXScrnSaver
129 x11-libs/libXtst
130 x11-libs/pango
131 x11-misc/xdg-utils
132 "
133
134 # Add blockers for the other slots.
135 for x in 0 beta stable; do
136 if [[ ${SLOT} != ${x} ]]; then
137 RDEPEND+=" !${CATEGORY}/${PN}:${x}"
138 fi
139 done
140
141 QA_PREBUILT="*"
142 S=${WORKDIR}
143
144 DISABLE_AUTOFORMATTING="yes"
145 DOC_CONTENTS="
146 Some web pages may require additional fonts to display properly.
147 Try installing some of the following packages if some characters
148 are not displayed properly:
149 - media-fonts/arphicfonts
150 - media-fonts/bitstream-cyberbit
151 - media-fonts/droid
152 - media-fonts/ipamonafont
153 - media-fonts/ja-ipafonts
154 - media-fonts/takao-fonts
155 - media-fonts/wqy-microhei
156 - media-fonts/wqy-zenhei
157
158 Depending on your desktop environment, you may need
159 to install additional packages to get icons on the Downloads page.
160
161 For KDE, the required package is kde-base/oxygen-icons.
162
163 For other desktop environments, try one of the following:
164 - x11-themes/gnome-icon-theme
165 - x11-themes/tango-icon-theme
166
167 Please notice the bundled flash player (PepperFlash).
168 You can (de)activate all flash plugins via chrome://plugins
169 "
170
171 pkg_nofetch() {
172 eerror "Please wait 24 hours before reporting a bug for google-chrome fetch failures."
173 }
174
175 pkg_setup() {
176 chromium_suid_sandbox_check_kernel_config
177 }
178
179 src_install() {
180 CHROME_HOME="opt/google/chrome"
181
182 rm -r usr/share/menu || die
183 rmdir usr/share/doc/${PN} || die
184 mv usr/share/doc/${MY_PN} usr/share/doc/${PF} || die
185
186 pushd "${CHROME_HOME}/locales" > /dev/null || die
187 chromium_remove_language_paks
188 popd > /dev/null || die
189
190 if use plugins ; then
191 local plugins="--extra-plugin-dir=/usr/$(get_libdir)/nsbrowser/plugins"
192 sed -e "/^exec/ i set -- \"${plugins}\" \"\$@\"" \
193 -i "${CHROME_HOME}/${PN}" || die
194 fi
195
196 domenu "${CHROME_HOME}/${PN}.desktop" || die
197 local size
198 for size in 16 22 24 32 48 64 128 256 ; do
199 newicon -s ${size} "${CHROME_HOME}/product_logo_${size}.png" ${PN}.png
200 done
201
202 insinto /
203 doins -r opt usr
204
205 fperms 755 "/${CHROME_HOME}"/{{,google-}chrome,nacl_helper{,_bootstrap},xdg-{mime,settings}}
206 fperms 4755 "/${CHROME_HOME}/chrome-sandbox"
207 pax-mark m "${ED}${CHROME_HOME}/chrome"
208 dosym /usr/$(get_libdir)/libudev.so "${CHROME_HOME}/libudev.so.0"
209
210 readme.gentoo_create_doc
211 }
212
213 any_cpu_missing_flag() {
214 local value=$1
215 grep '^flags' /proc/cpuinfo | grep -qv "$value"
216 }
217
218 pkg_preinst() {
219 chromium_pkg_preinst
220 if any_cpu_missing_flag sse2; then
221 ewarn "The bundled PepperFlash plugin requires a CPU that supports the"
222 ewarn "SSE2 instruction set, and at least one of your CPUs does not"
223 ewarn "support this feature. Disabling PepperFlash."
224 sed -e "/^exec/ i set -- --disable-bundled-ppapi-flash \"\$@\"" \
225 -i "${ED}${CHROME_HOME}/google-chrome" || die
226 fi
227 }
228
229 pkg_postinst() {
230 fdo-mime_desktop_database_update
231 gnome2_icon_cache_update
232 readme.gentoo_print_elog
233 }