1 |
phajdan.jr 10/08/26 03:54:09 |
2 |
|
3 |
Modified: ChangeLog chromium-9999.ebuild |
4 |
Added: chromium-7.0.503.1.ebuild |
5 |
Removed: chromium-6.0.490.1.ebuild |
6 |
Log: |
7 |
Version bump for dev channel release. Enable use_system_icu. Remove old. |
8 |
(Portage version: 2.1.8.3/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.167 www-client/chromium/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.167&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.167&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.166&r2=1.167 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
20 |
retrieving revision 1.166 |
21 |
retrieving revision 1.167 |
22 |
diff -u -r1.166 -r1.167 |
23 |
--- ChangeLog 21 Aug 2010 05:23:12 -0000 1.166 |
24 |
+++ ChangeLog 26 Aug 2010 03:54:09 -0000 1.167 |
25 |
@@ -1,6 +1,13 @@ |
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.166 2010/08/21 05:23:12 phajdan.jr Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.167 2010/08/26 03:54:09 phajdan.jr Exp $ |
30 |
+ |
31 |
+*chromium-7.0.503.1 (26 Aug 2010) |
32 |
+ |
33 |
+ 26 Aug 2010; Pawel Hajdan jr <phajdan.jr@g.o> |
34 |
+ -chromium-6.0.490.1.ebuild, +chromium-7.0.503.1.ebuild, |
35 |
+ chromium-9999.ebuild: |
36 |
+ Version bump for dev channel release. Enable use_system_icu. Remove old. |
37 |
|
38 |
*chromium-6.0.472.41 (21 Aug 2010) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.79 www-client/chromium/chromium-9999.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?rev=1.79&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?rev=1.79&content-type=text/plain |
47 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9999.ebuild?r1=1.78&r2=1.79 |
48 |
|
49 |
Index: chromium-9999.ebuild |
50 |
=================================================================== |
51 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v |
52 |
retrieving revision 1.78 |
53 |
retrieving revision 1.79 |
54 |
diff -u -r1.78 -r1.79 |
55 |
--- chromium-9999.ebuild 18 Aug 2010 03:33:27 -0000 1.78 |
56 |
+++ chromium-9999.ebuild 26 Aug 2010 03:54:09 -0000 1.79 |
57 |
@@ -1,6 +1,6 @@ |
58 |
# Copyright 1999-2010 Gentoo Foundation |
59 |
# Distributed under the terms of the GNU General Public License v2 |
60 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.78 2010/08/18 03:33:27 phajdan.jr Exp $ |
61 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.79 2010/08/26 03:54:09 phajdan.jr Exp $ |
62 |
|
63 |
EAPI="2" |
64 |
|
65 |
@@ -18,6 +18,7 @@ |
66 |
IUSE="cups gnome sse2" |
67 |
|
68 |
RDEPEND="app-arch/bzip2 |
69 |
+ >=dev-libs/icu-4.4.1 |
70 |
>=dev-libs/libevent-1.4.13 |
71 |
>=dev-libs/nss-3.12.3 |
72 |
>=gnome-base/gconf-2.24.0 |
73 |
@@ -110,6 +111,7 @@ |
74 |
remove_bundled_lib "third_party/bzip2" |
75 |
remove_bundled_lib "third_party/codesighs" |
76 |
remove_bundled_lib "third_party/cros" |
77 |
+ remove_bundled_lib "third_party/icu" |
78 |
remove_bundled_lib "third_party/jemalloc" |
79 |
remove_bundled_lib "third_party/lcov" |
80 |
remove_bundled_lib "third_party/libevent" |
81 |
@@ -141,10 +143,11 @@ |
82 |
# TODO: use_system_ffmpeg (http://crbug.com/50678). |
83 |
# TODO: use_system_libxml (http://crbug.com/29333). |
84 |
# TODO: use_system_sqlite (http://crbug.com/22208). |
85 |
- # TODO: use_system_icu, use_system_hunspell (upstream changes needed). |
86 |
+ # TODO: use_system_hunspell (upstream changes needed). |
87 |
# TODO: use_system_ssl when we have a recent enough system NSS. |
88 |
myconf="${myconf} |
89 |
-Duse_system_bzip2=1 |
90 |
+ -Duse_system_icu=1 |
91 |
-Duse_system_libevent=1 |
92 |
-Duse_system_libjpeg=1 |
93 |
-Duse_system_libpng=1 |
94 |
|
95 |
|
96 |
|
97 |
1.1 www-client/chromium/chromium-7.0.503.1.ebuild |
98 |
|
99 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-7.0.503.1.ebuild?rev=1.1&view=markup |
100 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-7.0.503.1.ebuild?rev=1.1&content-type=text/plain |
101 |
|
102 |
Index: chromium-7.0.503.1.ebuild |
103 |
=================================================================== |
104 |
# Copyright 1999-2010 Gentoo Foundation |
105 |
# Distributed under the terms of the GNU General Public License v2 |
106 |
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-7.0.503.1.ebuild,v 1.1 2010/08/26 03:54:09 phajdan.jr Exp $ |
107 |
|
108 |
EAPI="2" |
109 |
|
110 |
inherit eutils flag-o-matic multilib pax-utils toolchain-funcs |
111 |
|
112 |
DESCRIPTION="Open-source version of Google Chrome web browser" |
113 |
HOMEPAGE="http://chromium.org/" |
114 |
SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2" |
115 |
|
116 |
LICENSE="BSD" |
117 |
SLOT="0" |
118 |
KEYWORDS="~amd64 ~arm ~x86" |
119 |
IUSE="cups gnome sse2" |
120 |
|
121 |
RDEPEND="app-arch/bzip2 |
122 |
>=dev-libs/icu-4.4.1 |
123 |
>=dev-libs/libevent-1.4.13 |
124 |
>=dev-libs/nss-3.12.3 |
125 |
>=gnome-base/gconf-2.24.0 |
126 |
gnome? ( >=gnome-base/gnome-keyring-2.28.2 ) |
127 |
>=media-libs/alsa-lib-1.0.19 |
128 |
media-libs/jpeg:0 |
129 |
media-libs/libpng |
130 |
cups? ( >=net-print/cups-1.4.4 ) |
131 |
sys-libs/zlib |
132 |
>=x11-libs/gtk+-2.14.7 |
133 |
x11-libs/libXScrnSaver" |
134 |
DEPEND="${RDEPEND} |
135 |
dev-lang/perl |
136 |
>=dev-util/gperf-3.0.3 |
137 |
>=dev-util/pkgconfig-0.23 |
138 |
>=gnome-base/gnome-keyring-2.28.2 |
139 |
sys-devel/flex" |
140 |
RDEPEND+=" |
141 |
|| ( |
142 |
x11-themes/gnome-icon-theme |
143 |
x11-themes/oxygen-molecule |
144 |
x11-themes/tango-icon-theme |
145 |
x11-themes/xfce4-icon-theme |
146 |
) |
147 |
x11-apps/xmessage |
148 |
x11-misc/xdg-utils |
149 |
virtual/ttf-fonts" |
150 |
|
151 |
get_chromium_home() { |
152 |
echo "/usr/$(get_libdir)/chromium-browser" |
153 |
} |
154 |
|
155 |
remove_bundled_lib() { |
156 |
einfo "Removing bundled library $1 ..." |
157 |
local out |
158 |
out="$(find $1 -mindepth 1 \! -iname '*.gyp' -print -delete)" \ |
159 |
|| die "failed to remove bundled library $1" |
160 |
if [[ -z $out ]]; then |
161 |
die "no files matched when removing bundled library $1" |
162 |
fi |
163 |
} |
164 |
|
165 |
src_prepare() { |
166 |
# Add Gentoo plugin paths. |
167 |
epatch "${FILESDIR}"/${PN}-plugins-path-r0.patch |
168 |
|
169 |
remove_bundled_lib "third_party/bzip2" |
170 |
remove_bundled_lib "third_party/codesighs" |
171 |
remove_bundled_lib "third_party/cros" |
172 |
remove_bundled_lib "third_party/icu" |
173 |
remove_bundled_lib "third_party/jemalloc" |
174 |
remove_bundled_lib "third_party/lcov" |
175 |
remove_bundled_lib "third_party/libevent" |
176 |
remove_bundled_lib "third_party/libjpeg" |
177 |
remove_bundled_lib "third_party/libpng" |
178 |
remove_bundled_lib "third_party/lzma_sdk" |
179 |
remove_bundled_lib "third_party/molokocacao" |
180 |
remove_bundled_lib "third_party/ocmock" |
181 |
remove_bundled_lib "third_party/pyftpdlib" |
182 |
remove_bundled_lib "third_party/simplejson" |
183 |
remove_bundled_lib "third_party/tlslite" |
184 |
# TODO: also remove third_party/libxml and third_party/libxslt when |
185 |
# http://crbug.com/29333 is fixed. |
186 |
# TODO: also remove third_party/zlib. For now the compilation fails if we |
187 |
# remove it (minizip-related). |
188 |
} |
189 |
|
190 |
src_configure() { |
191 |
local myconf="" |
192 |
|
193 |
# Make it possible to build chromium on non-sse2 systems. |
194 |
if use sse2; then |
195 |
myconf="${myconf} -Ddisable_sse2=0" |
196 |
else |
197 |
myconf="${myconf} -Ddisable_sse2=1" |
198 |
fi |
199 |
|
200 |
# Use system-provided libraries. |
201 |
# TODO: use_system_ffmpeg (http://crbug.com/50678). |
202 |
# TODO: use_system_libxml (http://crbug.com/29333). |
203 |
# TODO: use_system_sqlite (http://crbug.com/22208). |
204 |
# TODO: use_system_hunspell (upstream changes needed). |
205 |
# TODO: use_system_ssl when we have a recent enough system NSS. |
206 |
myconf="${myconf} |
207 |
-Duse_system_bzip2=1 |
208 |
-Duse_system_icu=1 |
209 |
-Duse_system_libevent=1 |
210 |
-Duse_system_libjpeg=1 |
211 |
-Duse_system_libpng=1 |
212 |
-Duse_system_zlib=1" |
213 |
|
214 |
# The dependency on cups is optional, see bug #324105. |
215 |
if use cups; then |
216 |
myconf="${myconf} -Duse_cups=1" |
217 |
else |
218 |
myconf="${myconf} -Duse_cups=0" |
219 |
fi |
220 |
|
221 |
if use gnome; then |
222 |
myconf="${myconf} -Dlinux_link_gnome_keyring=1" |
223 |
else |
224 |
# TODO: we should also disable code trying to dlopen |
225 |
# gnome-keyring in that case. |
226 |
myconf="${myconf} -Dlinux_link_gnome_keyring=0" |
227 |
fi |
228 |
|
229 |
# Enable sandbox. |
230 |
myconf="${myconf} |
231 |
-Dlinux_sandbox_path=$(get_chromium_home)/chrome_sandbox |
232 |
-Dlinux_sandbox_chrome_path=$(get_chromium_home)/chrome" |
233 |
|
234 |
# Disable the V8 snapshot. It breaks the build on hardened (bug #301880), |
235 |
# and the performance gain isn't worth it. |
236 |
myconf="${myconf} -Dv8_use_snapshot=0" |
237 |
|
238 |
# Disable tcmalloc memory allocator. It causes problems, |
239 |
# for example bug #320419. |
240 |
myconf="${myconf} -Dlinux_use_tcmalloc=0" |
241 |
|
242 |
# Use target arch detection logic from bug #296917. |
243 |
local myarch="$ABI" |
244 |
[[ $myarch = "" ]] && myarch="$ARCH" |
245 |
|
246 |
if [[ $myarch = amd64 ]] ; then |
247 |
myconf="${myconf} -Dtarget_arch=x64" |
248 |
elif [[ $myarch = x86 ]] ; then |
249 |
myconf="${myconf} -Dtarget_arch=ia32" |
250 |
elif [[ $myarch = arm ]] ; then |
251 |
# TODO: check this again after |
252 |
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed. |
253 |
append-flags -fno-tree-sink |
254 |
|
255 |
myconf="${myconf} -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0" |
256 |
else |
257 |
die "Failed to determine target arch, got '$myarch'." |
258 |
fi |
259 |
|
260 |
if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then |
261 |
myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44" |
262 |
fi |
263 |
|
264 |
# Work around a likely GCC bug, see bug #331945. |
265 |
if [[ "$(gcc-major-version)$(gcc-minor-version)" == "45" ]]; then |
266 |
append-flags -fno-ipa-cp |
267 |
fi |
268 |
|
269 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
270 |
# Depending on GCC version the warnings are different and we don't want |
271 |
# the build to fail because of that. |
272 |
myconf="${myconf} -Dwerror=" |
273 |
|
274 |
build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed" |
275 |
} |
276 |
|
277 |
src_compile() { |
278 |
emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \ |
279 |
CC="$(tc-getCC)" \ |
280 |
CXX="$(tc-getCXX)" \ |
281 |
AR="$(tc-getAR)" \ |
282 |
RANLIB="$(tc-getRANLIB)" \ |
283 |
|| die "compilation failed" |
284 |
} |
285 |
|
286 |
src_install() { |
287 |
dodir "$(get_chromium_home)" |
288 |
|
289 |
exeinto "$(get_chromium_home)" |
290 |
pax-mark m out/Release/chrome |
291 |
doexe out/Release/chrome |
292 |
doexe out/Release/chrome_sandbox |
293 |
fperms 4755 "$(get_chromium_home)/chrome_sandbox" |
294 |
doexe out/Release/xdg-settings |
295 |
doexe "${FILESDIR}"/chromium-launcher.sh |
296 |
|
297 |
insinto "$(get_chromium_home)" |
298 |
doins out/Release/chrome.pak || die "installing chrome.pak failed" |
299 |
doins out/Release/resources.pak || die "installing resources.pak failed" |
300 |
|
301 |
doins -r out/Release/locales |
302 |
doins -r out/Release/resources |
303 |
|
304 |
# chrome.1 is for chromium --help |
305 |
newman out/Release/chrome.1 chrome.1 |
306 |
newman out/Release/chrome.1 chromium.1 |
307 |
|
308 |
doexe out/Release/ffmpegsumo_nolink || die |
309 |
doexe out/Release/libffmpegsumo.so || die |
310 |
|
311 |
# Install icon and desktop entry. |
312 |
newicon out/Release/product_logo_48.png ${PN}-browser.png |
313 |
dosym "$(get_chromium_home)/chromium-launcher.sh" /usr/bin/chromium |
314 |
make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" \ |
315 |
"MimeType=text/html;text/xml;application/xhtml+xml;" |
316 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \ |
317 |
|| die "desktop file sed failed" |
318 |
|
319 |
# Install GNOME default application entry (bug #303100). |
320 |
if use gnome; then |
321 |
dodir /usr/share/gnome-control-center/default-apps |
322 |
insinto /usr/share/gnome-control-center/default-apps |
323 |
doins "${FILESDIR}"/chromium.xml |
324 |
fi |
325 |
} |