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