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