1 |
phajdan.jr 11/04/06 10:19:58 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: chromium-12.0.725.0.ebuild |
5 |
Removed: chromium-12.0.712.0.ebuild |
6 |
Log: |
7 |
Version bump for dev channel release. Remove old. |
8 |
|
9 |
(Portage version: 2.1.9.42/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.328 www-client/chromium/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.328&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.328&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.327&r2=1.328 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
21 |
retrieving revision 1.327 |
22 |
retrieving revision 1.328 |
23 |
diff -u -r1.327 -r1.328 |
24 |
--- ChangeLog 5 Apr 2011 13:06:08 -0000 1.327 |
25 |
+++ ChangeLog 6 Apr 2011 10:19:58 -0000 1.328 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for www-client/chromium |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.327 2011/04/05 13:06:08 phajdan.jr Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.328 2011/04/06 10:19:58 phajdan.jr Exp $ |
31 |
+ |
32 |
+*chromium-12.0.725.0 (06 Apr 2011) |
33 |
+ |
34 |
+ 06 Apr 2011; Pawel Hajdan jr <phajdan.jr@g.o> |
35 |
+ -chromium-12.0.712.0.ebuild, +chromium-12.0.725.0.ebuild: |
36 |
+ Version bump for dev channel release. Remove old. |
37 |
|
38 |
*chromium-11.0.696.34 (05 Apr 2011) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 www-client/chromium/chromium-12.0.725.0.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-12.0.725.0.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-12.0.725.0.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: chromium-12.0.725.0.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-12.0.725.0.ebuild,v 1.1 2011/04/06 10:19:58 phajdan.jr Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
PYTHON_DEPEND="2:2.6" |
56 |
|
57 |
inherit eutils fdo-mime flag-o-matic gnome2-utils multilib pax-utils \ |
58 |
portability python toolchain-funcs versionator virtualx |
59 |
|
60 |
DESCRIPTION="Open-source version of Google Chrome web browser" |
61 |
HOMEPAGE="http://chromium.org/" |
62 |
SRC_URI="http://build.chromium.org/official/${P}.tar.bz2" |
63 |
|
64 |
LICENSE="BSD" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~arm ~x86" |
67 |
IUSE="cups gnome gnome-keyring kerberos" |
68 |
|
69 |
RDEPEND="app-arch/bzip2 |
70 |
dev-libs/dbus-glib |
71 |
>=dev-libs/icu-4.4.1 |
72 |
>=dev-libs/libevent-1.4.13 |
73 |
dev-libs/libxml2[icu] |
74 |
dev-libs/libxslt |
75 |
>=dev-libs/nss-3.12.3 |
76 |
gnome? ( >=gnome-base/gconf-2.24.0 ) |
77 |
gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 ) |
78 |
>=media-libs/alsa-lib-1.0.19 |
79 |
media-libs/flac |
80 |
virtual/jpeg |
81 |
media-libs/libpng |
82 |
>=media-libs/libvpx-0.9.5 |
83 |
media-libs/speex |
84 |
>=media-video/ffmpeg-0.6_p25767[threads] |
85 |
cups? ( >=net-print/cups-1.3.11 ) |
86 |
sys-libs/pam |
87 |
sys-libs/zlib |
88 |
x11-libs/gtk+:2 |
89 |
x11-libs/libXScrnSaver |
90 |
x11-libs/libXtst" |
91 |
DEPEND="${RDEPEND} |
92 |
dev-lang/perl |
93 |
>=dev-util/gperf-3.0.3 |
94 |
>=dev-util/pkgconfig-0.23 |
95 |
sys-devel/flex |
96 |
>=sys-devel/make-3.81-r2 |
97 |
test? ( dev-python/simplejson dev-python/tlslite virtual/krb5 )" |
98 |
RDEPEND+=" |
99 |
kerberos? ( virtual/krb5 ) |
100 |
x11-misc/xdg-utils |
101 |
virtual/ttf-fonts" |
102 |
|
103 |
gyp_use() { |
104 |
if [[ $# -lt 2 ]]; then |
105 |
echo "!!! usage: gyp_use <USEFLAG> <GYPFLAG>" >&2 |
106 |
return 1 |
107 |
fi |
108 |
if use "$1"; then echo "-D$2=1"; else echo "-D$2=0"; fi |
109 |
} |
110 |
|
111 |
egyp() { |
112 |
set -- build/gyp_chromium --depth=. "${@}" |
113 |
echo "${@}" >&2 |
114 |
"${@}" |
115 |
} |
116 |
|
117 |
pkg_setup() { |
118 |
CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser" |
119 |
|
120 |
# Make sure the build system will use the right tools, bug #340795. |
121 |
tc-export AR CC CXX RANLIB |
122 |
|
123 |
# Make sure the build system will use the right python, bug #344367. |
124 |
python_set_active_version 2 |
125 |
python_pkg_setup |
126 |
|
127 |
# Prevent user problems like bug #299777. |
128 |
if ! grep -q /dev/shm <<< $(get_mounts); then |
129 |
ewarn "You don't have tmpfs mounted at /dev/shm." |
130 |
ewarn "${PN} may fail to start in that configuration." |
131 |
ewarn "Please uncomment the /dev/shm entry in /etc/fstab," |
132 |
ewarn "and run 'mount /dev/shm'." |
133 |
fi |
134 |
if [ `stat -c %a /dev/shm` -ne 1777 ]; then |
135 |
ewarn "/dev/shm does not have correct permissions." |
136 |
ewarn "${PN} may fail to start in that configuration." |
137 |
ewarn "Please run 'chmod 1777 /dev/shm'." |
138 |
fi |
139 |
|
140 |
# Prevent user problems like bug #348235. |
141 |
eshopts_push -s extglob |
142 |
if is-flagq '-g?(gdb)?([1-9])'; then |
143 |
ewarn "You have enabled debug info (probably have -g or -ggdb in your \$C{,XX}FLAGS)." |
144 |
ewarn "You may experience really long compilation times and/or increased memory usage." |
145 |
ewarn "If compilation fails, please try removing -g{,gdb} before reporting a bug." |
146 |
fi |
147 |
eshopts_pop |
148 |
} |
149 |
|
150 |
src_prepare() { |
151 |
# Make sure we don't use bundled libvpx headers. |
152 |
epatch "${FILESDIR}/${PN}-system-vpx-r4.patch" |
153 |
|
154 |
# Make Chromium recognize Gentoo's Heimdal, to be upstreamed. |
155 |
epatch "${FILESDIR}/${PN}-gssapi-heimdal-r0.patch" |
156 |
|
157 |
# Remove most bundled libraries. Some are still needed. |
158 |
find third_party -type f \! -iname '*.gyp*' \ |
159 |
\! -path 'third_party/WebKit/*' \ |
160 |
\! -path 'third_party/angle/*' \ |
161 |
\! -path 'third_party/cacheinvalidation/*' \ |
162 |
\! -path 'third_party/cld/*' \ |
163 |
\! -path 'third_party/expat/*' \ |
164 |
\! -path 'third_party/ffmpeg/*' \ |
165 |
\! -path 'third_party/flac/flac.h' \ |
166 |
\! -path 'third_party/gpsd/*' \ |
167 |
\! -path 'third_party/harfbuzz/*' \ |
168 |
\! -path 'third_party/hunspell/*' \ |
169 |
\! -path 'third_party/iccjpeg/*' \ |
170 |
\! -path 'third_party/launchpad_translations/*' \ |
171 |
\! -path 'third_party/leveldb/*' \ |
172 |
\! -path 'third_party/libjingle/*' \ |
173 |
\! -path 'third_party/libsrtp/*' \ |
174 |
\! -path 'third_party/libvpx/libvpx.h' \ |
175 |
\! -path 'third_party/libwebp/*' \ |
176 |
\! -path 'third_party/mesa/*' \ |
177 |
\! -path 'third_party/modp_b64/*' \ |
178 |
\! -path 'third_party/npapi/*' \ |
179 |
\! -path 'third_party/openmax/*' \ |
180 |
\! -path 'third_party/ots/*' \ |
181 |
\! -path 'third_party/protobuf/*' \ |
182 |
\! -path 'third_party/pyftpdlib/*' \ |
183 |
\! -path 'third_party/skia/*' \ |
184 |
\! -path 'third_party/speex/speex.h' \ |
185 |
\! -path 'third_party/sqlite/*' \ |
186 |
\! -path 'third_party/tcmalloc/*' \ |
187 |
\! -path 'third_party/undoview/*' \ |
188 |
\! -path 'third_party/zlib/contrib/minizip/*' \ |
189 |
-delete || die |
190 |
|
191 |
# Make sure the build system will use the right python, bug #344367. |
192 |
# Only convert directories that need it, to save time. |
193 |
python_convert_shebangs -q -r 2 build tools |
194 |
} |
195 |
|
196 |
src_configure() { |
197 |
local myconf="" |
198 |
|
199 |
# Never tell the build system to "enable" SSE2, it has a few unexpected |
200 |
# additions, bug #336871. |
201 |
myconf+=" -Ddisable_sse2=1" |
202 |
|
203 |
# Use system-provided libraries. |
204 |
# TODO: use_system_hunspell (upstream changes needed). |
205 |
# TODO: use_system_ssl (http://crbug.com/58087). |
206 |
# TODO: use_system_sqlite (http://crbug.com/22208). |
207 |
myconf+=" |
208 |
-Duse_system_bzip2=1 |
209 |
-Duse_system_flac=1 |
210 |
-Duse_system_ffmpeg=1 |
211 |
-Duse_system_icu=1 |
212 |
-Duse_system_libevent=1 |
213 |
-Duse_system_libjpeg=1 |
214 |
-Duse_system_libpng=1 |
215 |
-Duse_system_libxml=1 |
216 |
-Duse_system_speex=1 |
217 |
-Duse_system_vpx=1 |
218 |
-Duse_system_xdg_utils=1 |
219 |
-Duse_system_zlib=1" |
220 |
|
221 |
# Optional dependencies. |
222 |
myconf+=" |
223 |
$(gyp_use cups use_cups) |
224 |
$(gyp_use gnome use_gconf) |
225 |
$(gyp_use gnome-keyring use_gnome_keyring) |
226 |
$(gyp_use gnome-keyring linux_link_gnome_keyring)" |
227 |
|
228 |
# Enable sandbox. |
229 |
myconf+=" |
230 |
-Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox |
231 |
-Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
232 |
|
233 |
if host-is-pax; then |
234 |
# Prevent the build from failing (bug #301880). The performance |
235 |
# difference is very small. |
236 |
myconf+=" -Dv8_use_snapshot=0" |
237 |
fi |
238 |
|
239 |
# Our system ffmpeg should support more codecs than the bundled one |
240 |
# for Chromium. |
241 |
myconf+=" -Dproprietary_codecs=1" |
242 |
|
243 |
# Use target arch detection logic from bug #354601. |
244 |
case ${CHOST} in |
245 |
i?86-*) myarch=x86 ;; |
246 |
x86_64-*) |
247 |
if [[ $ABI = "" ]] ; then |
248 |
myarch=amd64 |
249 |
else |
250 |
myarch="$ABI" |
251 |
fi ;; |
252 |
arm*-*) myarch=arm ;; |
253 |
*) die "Unrecognized CHOST: ${CHOST}" |
254 |
esac |
255 |
|
256 |
if [[ $myarch = amd64 ]] ; then |
257 |
myconf+=" -Dtarget_arch=x64" |
258 |
elif [[ $myarch = x86 ]] ; then |
259 |
myconf+=" -Dtarget_arch=ia32" |
260 |
elif [[ $myarch = arm ]] ; then |
261 |
# TODO: check this again after |
262 |
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed. |
263 |
append-flags -fno-tree-sink |
264 |
|
265 |
myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0" |
266 |
else |
267 |
die "Failed to determine target arch, got '$myarch'." |
268 |
fi |
269 |
|
270 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
271 |
# Depending on GCC version the warnings are different and we don't want |
272 |
# the build to fail because of that. |
273 |
myconf+=" -Dwerror=" |
274 |
|
275 |
# Avoid a build error with -Os, bug #352457. |
276 |
replace-flags "-Os" "-O2" |
277 |
|
278 |
egyp ${myconf} || die |
279 |
} |
280 |
|
281 |
src_compile() { |
282 |
emake chrome chrome_sandbox BUILDTYPE=Release V=1 || die |
283 |
pax-mark m out/Release/chrome |
284 |
if use test; then |
285 |
emake {base,net}_unittests BUILDTYPE=Release V=1 || die |
286 |
pax-mark m out/Release/{base,net}_unittests |
287 |
fi |
288 |
} |
289 |
|
290 |
src_test() { |
291 |
# For more info see bug #350349. |
292 |
local mylocale='en_US.utf8' |
293 |
if ! locale -a | grep -q "$mylocale"; then |
294 |
eerror "${PN} requires ${mylocale} locale for tests" |
295 |
eerror "Please read the following guides for more information:" |
296 |
eerror " http://www.gentoo.org/doc/en/guide-localization.xml" |
297 |
eerror " http://www.gentoo.org/doc/en/utf-8.xml" |
298 |
die "locale ${mylocale} is not supported" |
299 |
fi |
300 |
|
301 |
# For more info see bug #350347. |
302 |
LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/base_unittests virtualmake \ |
303 |
'--gtest_filter=-ICUStringConversionsTest.*' |
304 |
|
305 |
# DiskCache: we need net/data/cache_tests in the tarball (export_tarball.py) |
306 |
# NetUtilTest: bug #361885. |
307 |
# HTTPS/SSL: bug #361939. |
308 |
# UDP: unstable, active development. We should revisit this later. |
309 |
LC_ALL="${mylocale}" VIRTUALX_COMMAND=out/Release/net_unittests virtualmake \ |
310 |
'--gtest_filter=-*DiskCache*:NetUtilTest.IDNToUnicode*:NetUtilTest.FormatUrl*:*HTTPS*:*SSL*:*UDP*' |
311 |
} |
312 |
|
313 |
src_install() { |
314 |
exeinto "${CHROMIUM_HOME}" |
315 |
doexe out/Release/chrome |
316 |
doexe out/Release/chrome_sandbox || die |
317 |
fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" |
318 |
newexe "${FILESDIR}"/chromium-launcher-r1.sh chromium-launcher.sh || die |
319 |
|
320 |
# It is important that we name the target "chromium-browser", |
321 |
# xdg-utils expect it; bug #355517. |
322 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium-browser || die |
323 |
# keep the old symlink around for consistency |
324 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium || die |
325 |
|
326 |
insinto "${CHROMIUM_HOME}" |
327 |
doins out/Release/chrome.pak || die |
328 |
doins out/Release/resources.pak || die |
329 |
|
330 |
doins -r out/Release/locales || die |
331 |
doins -r out/Release/resources || die |
332 |
|
333 |
newman out/Release/chrome.1 chromium.1 || die |
334 |
newman out/Release/chrome.1 chromium-browser.1 || die |
335 |
|
336 |
# Chromium looks for these in its folder |
337 |
# See media_posix.cc and base_paths_linux.cc |
338 |
dosym /usr/$(get_libdir)/libavcodec.so.52 "${CHROMIUM_HOME}" || die |
339 |
dosym /usr/$(get_libdir)/libavformat.so.52 "${CHROMIUM_HOME}" || die |
340 |
dosym /usr/$(get_libdir)/libavutil.so.50 "${CHROMIUM_HOME}" || die |
341 |
|
342 |
# Install icons and desktop entry. |
343 |
for SIZE in 16 22 24 32 48 64 128 256 ; do |
344 |
insinto /usr/share/icons/hicolor/${SIZE}x${SIZE}/apps |
345 |
newins chrome/app/theme/chromium/product_logo_${SIZE}.png \ |
346 |
chromium-browser.png || die |
347 |
done |
348 |
local mime_types="text/html;text/xml;application/xhtml+xml;" |
349 |
mime_types+="x-scheme-handler/http;x-scheme-handler/https;" # bug #360797 |
350 |
make_desktop_entry chromium-browser "Chromium" chromium-browser \ |
351 |
"Network;WebBrowser" "MimeType=${mime_types}" |
352 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop || die |
353 |
|
354 |
# Install GNOME default application entry (bug #303100). |
355 |
if use gnome; then |
356 |
dodir /usr/share/gnome-control-center/default-apps || die |
357 |
insinto /usr/share/gnome-control-center/default-apps |
358 |
doins "${FILESDIR}"/chromium-browser.xml || die |
359 |
fi |
360 |
} |
361 |
|
362 |
pkg_preinst() { |
363 |
gnome2_icon_savelist |
364 |
} |
365 |
|
366 |
pkg_postinst() { |
367 |
fdo-mime_desktop_database_update |
368 |
gnome2_icon_cache_update |
369 |
|
370 |
# For more info see bugs #292201 and bug #352263. |
371 |
elog "Depending on your desktop environment, you may need" |
372 |
elog "to install additional packages to get icons on the Downloads page." |
373 |
elog |
374 |
elog "For KDE, the required package is kde-base/oxygen-icons." |
375 |
elog |
376 |
elog "For other desktop environments, try one of the following:" |
377 |
elog " - x11-themes/gnome-icon-theme" |
378 |
elog " - x11-themes/xfce4-icon-theme" |
379 |
} |
380 |
|
381 |
pkg_postrm() { |
382 |
gnome2_icon_cache_update |
383 |
} |