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