1 |
phajdan.jr 10/07/03 09:34:47 |
2 |
|
3 |
Modified: ChangeLog chromium-9999.ebuild |
4 |
Added: chromium-6.0.453.1.ebuild |
5 |
Removed: chromium-6.0.437.1.ebuild |
6 |
Log: |
7 |
Version bump for dev channel release. Contains a workaround for bug #326609 by Aaron Haviland <orion@××××××.net>. Removed old ebuild. |
8 |
(Portage version: 2.1.8.3/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.130 www-client/chromium/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.130&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.130&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.129&r2=1.130 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
20 |
retrieving revision 1.129 |
21 |
retrieving revision 1.130 |
22 |
diff -u -r1.129 -r1.130 |
23 |
--- ChangeLog 3 Jul 2010 07:47:57 -0000 1.129 |
24 |
+++ ChangeLog 3 Jul 2010 09:34:47 -0000 1.130 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for www-client/chromium |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.129 2010/07/03 07:47:57 phajdan.jr Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.130 2010/07/03 09:34:47 phajdan.jr Exp $ |
30 |
+ |
31 |
+*chromium-6.0.453.1 (03 Jul 2010) |
32 |
+ |
33 |
+ 03 Jul 2010; Pawel Hajdan jr <phajdan.jr@g.o> |
34 |
+ -chromium-6.0.437.1.ebuild, +chromium-6.0.453.1.ebuild, |
35 |
+ chromium-9999.ebuild: |
36 |
+ Version bump for dev channel release. Contains a workaround for bug |
37 |
+ #326609 by Aaron Haviland <orion@××××××.net>. Removed old ebuild. |
38 |
|
39 |
*chromium-5.0.375.99 (03 Jul 2010) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.64 www-client/chromium/chromium-9999.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?rev=1.64&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?rev=1.64&content-type=text/plain |
48 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?r1=1.63&r2=1.64 |
49 |
|
50 |
Index: chromium-9999.ebuild |
51 |
=================================================================== |
52 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v |
53 |
retrieving revision 1.63 |
54 |
retrieving revision 1.64 |
55 |
diff -u -r1.63 -r1.64 |
56 |
--- chromium-9999.ebuild 23 Jun 2010 15:19:52 -0000 1.63 |
57 |
+++ chromium-9999.ebuild 3 Jul 2010 09:34:47 -0000 1.64 |
58 |
@@ -1,6 +1,6 @@ |
59 |
# Copyright 1999-2010 Gentoo Foundation |
60 |
# Distributed under the terms of the GNU General Public License v2 |
61 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.63 2010/06/23 15:19:52 voyageur Exp $ |
62 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.64 2010/07/03 09:34:47 phajdan.jr Exp $ |
63 |
|
64 |
EAPI="2" |
65 |
|
66 |
@@ -19,8 +19,6 @@ |
67 |
|
68 |
RDEPEND="app-arch/bzip2 |
69 |
>=dev-libs/libevent-1.4.13 |
70 |
- dev-libs/libxml2 |
71 |
- dev-libs/libxslt |
72 |
>=dev-libs/nss-3.12.3 |
73 |
>=gnome-base/gconf-2.24.0 |
74 |
>=media-libs/alsa-lib-1.0.19 |
75 |
@@ -91,6 +89,10 @@ |
76 |
elog "Installing/updating to version ${MAJOR}.${MINOR}.${BUILD}.${PATCH}_p${CREV} " |
77 |
} |
78 |
|
79 |
+get_chromium_home() { |
80 |
+ echo "/usr/$(get_libdir)/chromium-browser" |
81 |
+} |
82 |
+ |
83 |
remove_bundled_lib() { |
84 |
einfo "Removing bundled library $1 ..." |
85 |
local out |
86 |
@@ -106,27 +108,24 @@ |
87 |
remove_bundled_lib "third_party/libevent" |
88 |
remove_bundled_lib "third_party/libjpeg" |
89 |
remove_bundled_lib "third_party/libpng" |
90 |
- remove_bundled_lib "third_party/libxml" |
91 |
- remove_bundled_lib "third_party/libxslt" |
92 |
+ # TODO: also remove third_party/libxml and third_party/libxslt when |
93 |
+ # http://crbug.com/29333 is fixed. |
94 |
# TODO: also remove third_party/zlib. For now the compilation fails if we |
95 |
# remove it (minizip-related). |
96 |
} |
97 |
|
98 |
src_configure() { |
99 |
- export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser |
100 |
- |
101 |
- # Workaround for bug #318969. |
102 |
- # TODO: remove when http://crbug.com/43778 is fixed. |
103 |
- append-flags -D__STDC_CONSTANT_MACROS |
104 |
- |
105 |
local myconf="" |
106 |
|
107 |
# Make it possible to build chromium on non-sse2 systems. |
108 |
- if ! use sse2; then |
109 |
+ if use sse2; then |
110 |
+ myconf="${myconf} -Ddisable_sse2=0" |
111 |
+ else |
112 |
myconf="${myconf} -Ddisable_sse2=1" |
113 |
fi |
114 |
|
115 |
# Use system-provided libraries. |
116 |
+ # TODO: use_system_libxml (http://crbug.com/29333). |
117 |
# TODO: use_system_sqlite (http://crbug.com/22208). |
118 |
# TODO: use_system_icu, use_system_hunspell (upstream changes needed). |
119 |
# TODO: use_system_ssl when we have a recent enough system NSS. |
120 |
@@ -136,7 +135,6 @@ |
121 |
-Duse_system_libevent=1 |
122 |
-Duse_system_libjpeg=1 |
123 |
-Duse_system_libpng=1 |
124 |
- -Duse_system_libxml=1 |
125 |
-Duse_system_zlib=1" |
126 |
|
127 |
# The system-provided ffmpeg supports more codecs. Enable them in chromium. |
128 |
@@ -151,8 +149,8 @@ |
129 |
|
130 |
# Enable sandbox. |
131 |
myconf="${myconf} |
132 |
- -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox |
133 |
- -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
134 |
+ -Dlinux_sandbox_path=$(get_chromium_home)/chrome_sandbox |
135 |
+ -Dlinux_sandbox_chrome_path=$(get_chromium_home)/chrome" |
136 |
|
137 |
# Disable the V8 snapshot. It breaks the build on hardened (bug #301880), |
138 |
# and the performance gain isn't worth it. |
139 |
@@ -204,21 +202,19 @@ |
140 |
} |
141 |
|
142 |
src_install() { |
143 |
- export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser |
144 |
- |
145 |
- dodir ${CHROMIUM_HOME} |
146 |
+ dodir "$(get_chromium_home)" |
147 |
|
148 |
- exeinto ${CHROMIUM_HOME} |
149 |
+ exeinto "$(get_chromium_home)" |
150 |
pax-mark m out/Release/chrome |
151 |
doexe out/Release/chrome |
152 |
doexe out/Release/chrome_sandbox |
153 |
- fperms 4755 ${CHROMIUM_HOME}/chrome_sandbox |
154 |
+ fperms 4755 "$(get_chromium_home)/chrome_sandbox" |
155 |
doexe out/Release/xdg-settings |
156 |
doexe "${FILESDIR}"/chromium-launcher.sh |
157 |
|
158 |
- insinto ${CHROMIUM_HOME} |
159 |
- doins out/Release/chrome.pak |
160 |
- doins out/Release/resources.pak |
161 |
+ insinto "$(get_chromium_home)" |
162 |
+ doins out/Release/chrome.pak || die "installing chrome.pak failed" |
163 |
+ doins out/Release/resources.pak || die "installing resources.pak failed" |
164 |
|
165 |
doins -r out/Release/locales |
166 |
doins -r out/Release/resources |
167 |
@@ -229,16 +225,16 @@ |
168 |
|
169 |
# Chromium looks for these in its folder |
170 |
# See media_posix.cc and base_paths_linux.cc |
171 |
- dosym /usr/$(get_libdir)/libavcodec.so.52 ${CHROMIUM_HOME} |
172 |
- dosym /usr/$(get_libdir)/libavformat.so.52 ${CHROMIUM_HOME} |
173 |
- dosym /usr/$(get_libdir)/libavutil.so.50 ${CHROMIUM_HOME} |
174 |
+ dosym /usr/$(get_libdir)/libavcodec.so.52 "$(get_chromium_home)" |
175 |
+ dosym /usr/$(get_libdir)/libavformat.so.52 "$(get_chromium_home)" |
176 |
+ dosym /usr/$(get_libdir)/libavutil.so.50 "$(get_chromium_home)" |
177 |
|
178 |
# Use system plugins by default. |
179 |
- dosym /usr/$(get_libdir)/nsbrowser/plugins ${CHROMIUM_HOME}/plugins |
180 |
+ dosym /usr/$(get_libdir)/nsbrowser/plugins "$(get_chromium_home)/plugins" |
181 |
|
182 |
# Install icon and desktop entry. |
183 |
newicon out/Release/product_logo_48.png ${PN}-browser.png |
184 |
- dosym ${CHROMIUM_HOME}/chromium-launcher.sh /usr/bin/chromium |
185 |
+ dosym "$(get_chromium_home)/chromium-launcher.sh" /usr/bin/chromium |
186 |
make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" |
187 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \ |
188 |
|| die "desktop file sed failed" |
189 |
|
190 |
|
191 |
|
192 |
1.1 www-client/chromium/chromium-6.0.453.1.ebuild |
193 |
|
194 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-6.0.453.1.ebuild?rev=1.1&view=markup |
195 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-6.0.453.1.ebuild?rev=1.1&content-type=text/plain |
196 |
|
197 |
Index: chromium-6.0.453.1.ebuild |
198 |
=================================================================== |
199 |
# Copyright 1999-2010 Gentoo Foundation |
200 |
# Distributed under the terms of the GNU General Public License v2 |
201 |
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-6.0.453.1.ebuild,v 1.1 2010/07/03 09:34:47 phajdan.jr Exp $ |
202 |
|
203 |
EAPI="2" |
204 |
|
205 |
inherit eutils flag-o-matic multilib pax-utils toolchain-funcs |
206 |
|
207 |
DESCRIPTION="Open-source version of Google Chrome web browser" |
208 |
HOMEPAGE="http://chromium.org/" |
209 |
SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2" |
210 |
|
211 |
LICENSE="BSD" |
212 |
SLOT="0" |
213 |
KEYWORDS="~amd64 ~arm ~x86" |
214 |
IUSE="cups sse2" |
215 |
|
216 |
RDEPEND="app-arch/bzip2 |
217 |
>=dev-libs/libevent-1.4.13 |
218 |
>=dev-libs/nss-3.12.3 |
219 |
>=gnome-base/gconf-2.24.0 |
220 |
>=media-libs/alsa-lib-1.0.19 |
221 |
media-libs/jpeg:0 |
222 |
media-libs/libpng |
223 |
media-video/ffmpeg[threads] |
224 |
cups? ( >=net-print/cups-1.3.5 ) |
225 |
sys-libs/zlib |
226 |
>=x11-libs/gtk+-2.14.7 |
227 |
x11-libs/libXScrnSaver" |
228 |
DEPEND="${RDEPEND} |
229 |
dev-lang/perl |
230 |
>=dev-util/gperf-3.0.3 |
231 |
>=dev-util/pkgconfig-0.23 |
232 |
>=gnome-base/gnome-keyring-2.28.2 |
233 |
sys-devel/flex" |
234 |
RDEPEND+=" |
235 |
|| ( |
236 |
x11-themes/gnome-icon-theme |
237 |
x11-themes/oxygen-molecule |
238 |
x11-themes/tango-icon-theme |
239 |
x11-themes/xfce4-icon-theme |
240 |
) |
241 |
x11-apps/xmessage |
242 |
x11-misc/xdg-utils |
243 |
virtual/ttf-fonts" |
244 |
|
245 |
get_chromium_home() { |
246 |
echo "/usr/$(get_libdir)/chromium-browser" |
247 |
} |
248 |
|
249 |
remove_bundled_lib() { |
250 |
einfo "Removing bundled library $1 ..." |
251 |
local out |
252 |
out="$(find $1 -mindepth 1 \! -iname '*.gyp' -print -delete)" \ |
253 |
|| die "failed to remove bundled library $1" |
254 |
if [[ -z $out ]]; then |
255 |
die "no files matched when removing bundled library $1" |
256 |
fi |
257 |
} |
258 |
|
259 |
src_prepare() { |
260 |
# Disable VP8 until we have a recent enough system-provided ffmpeg. |
261 |
epatch "${FILESDIR}"/${PN}-disable-vp8-r1.patch |
262 |
|
263 |
remove_bundled_lib "third_party/bzip2" |
264 |
remove_bundled_lib "third_party/libevent" |
265 |
remove_bundled_lib "third_party/libjpeg" |
266 |
remove_bundled_lib "third_party/libpng" |
267 |
# TODO: also remove third_party/libxml and third_party/libxslt when |
268 |
# http://crbug.com/29333 is fixed. |
269 |
# TODO: also remove third_party/zlib. For now the compilation fails if we |
270 |
# remove it (minizip-related). |
271 |
} |
272 |
|
273 |
src_configure() { |
274 |
local myconf="" |
275 |
|
276 |
# Make it possible to build chromium on non-sse2 systems. |
277 |
if use sse2; then |
278 |
myconf="${myconf} -Ddisable_sse2=0" |
279 |
else |
280 |
myconf="${myconf} -Ddisable_sse2=1" |
281 |
fi |
282 |
|
283 |
# Use system-provided libraries. |
284 |
# TODO: use_system_libxml (http://crbug.com/29333). |
285 |
# TODO: use_system_sqlite (http://crbug.com/22208). |
286 |
# TODO: use_system_icu, use_system_hunspell (upstream changes needed). |
287 |
# TODO: use_system_ssl when we have a recent enough system NSS. |
288 |
myconf="${myconf} |
289 |
-Duse_system_bzip2=1 |
290 |
-Duse_system_ffmpeg=1 |
291 |
-Duse_system_libevent=1 |
292 |
-Duse_system_libjpeg=1 |
293 |
-Duse_system_libpng=1 |
294 |
-Duse_system_zlib=1" |
295 |
|
296 |
# The system-provided ffmpeg supports more codecs. Enable them in chromium. |
297 |
myconf="${myconf} -Dproprietary_codecs=1" |
298 |
|
299 |
# The dependency on cups is optional, see bug #324105. |
300 |
if use cups; then |
301 |
myconf="${myconf} -Duse_cups=1" |
302 |
else |
303 |
myconf="${myconf} -Duse_cups=0" |
304 |
fi |
305 |
|
306 |
# Enable sandbox. |
307 |
myconf="${myconf} |
308 |
-Dlinux_sandbox_path=$(get_chromium_home)/chrome_sandbox |
309 |
-Dlinux_sandbox_chrome_path=$(get_chromium_home)/chrome" |
310 |
|
311 |
# Disable the V8 snapshot. It breaks the build on hardened (bug #301880), |
312 |
# and the performance gain isn't worth it. |
313 |
myconf="${myconf} -Dv8_use_snapshot=0" |
314 |
|
315 |
# Disable tcmalloc memory allocator. It causes problems, |
316 |
# for example bug #320419. |
317 |
myconf="${myconf} -Dlinux_use_tcmalloc=0" |
318 |
|
319 |
# Disable gpu rendering, it is incompatible with nvidia-drivers, |
320 |
# bug #319331. |
321 |
myconf="${myconf} -Denable_gpu=0" |
322 |
|
323 |
# Use target arch detection logic from bug #296917. |
324 |
local myarch="$ABI" |
325 |
[[ $myarch = "" ]] && myarch="$ARCH" |
326 |
|
327 |
if [[ $myarch = amd64 ]] ; then |
328 |
myconf="${myconf} -Dtarget_arch=x64" |
329 |
elif [[ $myarch = x86 ]] ; then |
330 |
myconf="${myconf} -Dtarget_arch=ia32" |
331 |
elif [[ $myarch = arm ]] ; then |
332 |
append-flags -fno-tree-sink |
333 |
myconf="${myconf} -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0" |
334 |
else |
335 |
die "Failed to determine target arch, got '$myarch'." |
336 |
fi |
337 |
|
338 |
if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then |
339 |
myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44" |
340 |
fi |
341 |
|
342 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
343 |
# Depending on GCC version the warnings are different and we don't want |
344 |
# the build to fail because of that. |
345 |
myconf="${myconf} -Dwerror=" |
346 |
|
347 |
build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed" |
348 |
} |
349 |
|
350 |
src_compile() { |
351 |
emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \ |
352 |
rootdir="${S}" \ |
353 |
CC=$(tc-getCC) \ |
354 |
CXX=$(tc-getCXX) \ |
355 |
AR=$(tc-getAR) \ |
356 |
RANLIB=$(tc-getRANLIB) \ |
357 |
|| die "compilation failed" |
358 |
} |
359 |
|
360 |
src_install() { |
361 |
dodir "$(get_chromium_home)" |
362 |
|
363 |
exeinto "$(get_chromium_home)" |
364 |
pax-mark m out/Release/chrome |
365 |
doexe out/Release/chrome |
366 |
doexe out/Release/chrome_sandbox |
367 |
fperms 4755 "$(get_chromium_home)/chrome_sandbox" |
368 |
doexe out/Release/xdg-settings |
369 |
doexe "${FILESDIR}"/chromium-launcher.sh |
370 |
|
371 |
insinto "$(get_chromium_home)" |
372 |
doins out/Release/chrome.pak || die "installing chrome.pak failed" |
373 |
doins out/Release/resources.pak || die "installing resources.pak failed" |
374 |
|
375 |
doins -r out/Release/locales |
376 |
doins -r out/Release/resources |
377 |
|
378 |
# chrome.1 is for chromium --help |
379 |
newman out/Release/chrome.1 chrome.1 |
380 |
newman out/Release/chrome.1 chromium.1 |
381 |
|
382 |
# Chromium looks for these in its folder |
383 |
# See media_posix.cc and base_paths_linux.cc |
384 |
dosym /usr/$(get_libdir)/libavcodec.so.52 "$(get_chromium_home)" |
385 |
dosym /usr/$(get_libdir)/libavformat.so.52 "$(get_chromium_home)" |
386 |
dosym /usr/$(get_libdir)/libavutil.so.50 "$(get_chromium_home)" |
387 |
|
388 |
# Use system plugins by default. |
389 |
dosym /usr/$(get_libdir)/nsbrowser/plugins "$(get_chromium_home)/plugins" |
390 |
|
391 |
# Install icon and desktop entry. |
392 |
newicon out/Release/product_logo_48.png ${PN}-browser.png |
393 |
dosym "$(get_chromium_home)/chromium-launcher.sh" /usr/bin/chromium |
394 |
make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" |
395 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \ |
396 |
|| die "desktop file sed failed" |
397 |
|
398 |
# Install GNOME default application entry (bug #303100). |
399 |
dodir /usr/share/gnome-control-center/default-apps |
400 |
insinto /usr/share/gnome-control-center/default-apps |
401 |
doins "${FILESDIR}"/chromium.xml |
402 |
} |