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