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