1 |
phajdan.jr 11/03/01 07:18:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: chromium-9.0.597.107.ebuild |
5 |
Log: |
6 |
Version bump for stable channel release. |
7 |
|
8 |
(Portage version: 2.1.9.25/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.291 www-client/chromium/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.291&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.291&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.290&r2=1.291 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
20 |
retrieving revision 1.290 |
21 |
retrieving revision 1.291 |
22 |
diff -u -r1.290 -r1.291 |
23 |
--- ChangeLog 25 Feb 2011 10:37:57 -0000 1.290 |
24 |
+++ ChangeLog 1 Mar 2011 07:18:22 -0000 1.291 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for www-client/chromium |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.290 2011/02/25 10:37:57 wired Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.291 2011/03/01 07:18:22 phajdan.jr Exp $ |
30 |
+ |
31 |
+*chromium-9.0.597.107 (01 Mar 2011) |
32 |
+ |
33 |
+ 01 Mar 2011; Pawel Hajdan jr <phajdan.jr@g.o> |
34 |
+ +chromium-9.0.597.107.ebuild: |
35 |
+ Version bump for stable channel release. |
36 |
|
37 |
*chromium-11.0.672.2-r2 (25 Feb 2011) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 www-client/chromium/chromium-9.0.597.107.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9.0.597.107.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-9.0.597.107.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: chromium-9.0.597.107.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9.0.597.107.ebuild,v 1.1 2011/03/01 07:18:22 phajdan.jr Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
PYTHON_DEPEND="2:2.6" |
55 |
|
56 |
inherit eutils flag-o-matic multilib pax-utils portability python \ |
57 |
toolchain-funcs versionator |
58 |
|
59 |
DESCRIPTION="Open-source version of Google Chrome web browser" |
60 |
HOMEPAGE="http://chromium.org/" |
61 |
SRC_URI="http://build.chromium.org/official/${P}.tar.bz2" |
62 |
|
63 |
LICENSE="BSD" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~arm ~x86" |
66 |
IUSE="cups +gecko-mediaplayer gnome gnome-keyring system-v8" |
67 |
|
68 |
RDEPEND="app-arch/bzip2 |
69 |
system-v8? ( >=dev-lang/v8-2.5.9.15 ) |
70 |
dev-libs/dbus-glib |
71 |
>=dev-libs/icu-4.4.1 |
72 |
>=dev-libs/libevent-1.4.13 |
73 |
dev-libs/libxml2[icu] |
74 |
dev-libs/libxslt |
75 |
>=dev-libs/nss-3.12.3 |
76 |
gnome? ( >=gnome-base/gconf-2.24.0 ) |
77 |
gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 ) |
78 |
>=media-libs/alsa-lib-1.0.19 |
79 |
virtual/jpeg |
80 |
media-libs/libpng |
81 |
media-libs/libvpx |
82 |
>=media-video/ffmpeg-0.6_p25767[threads] |
83 |
cups? ( >=net-print/cups-1.3.11 ) |
84 |
sys-libs/zlib |
85 |
>=x11-libs/gtk+-2.14.7 |
86 |
x11-libs/libXScrnSaver |
87 |
x11-libs/libXtst" |
88 |
DEPEND="${RDEPEND} |
89 |
dev-lang/perl |
90 |
>=dev-util/chromium-tools-0.1.4 |
91 |
>=dev-util/gperf-3.0.3 |
92 |
>=dev-util/pkgconfig-0.23 |
93 |
sys-devel/flex |
94 |
>=sys-devel/make-3.81-r2" |
95 |
RDEPEND+=" |
96 |
|| ( |
97 |
x11-themes/gnome-icon-theme |
98 |
x11-themes/oxygen-molecule |
99 |
x11-themes/tango-icon-theme |
100 |
x11-themes/xfce4-icon-theme |
101 |
) |
102 |
x11-misc/xdg-utils |
103 |
virtual/ttf-fonts |
104 |
gecko-mediaplayer? ( !www-plugins/gecko-mediaplayer[gnome] )" |
105 |
|
106 |
egyp() { |
107 |
set -- build/gyp_chromium --depth=. "${@}" |
108 |
echo "${@}" >&2 |
109 |
"${@}" |
110 |
} |
111 |
|
112 |
get_installed_v8_version() { |
113 |
best_version dev-lang/v8 | sed -e 's@dev-lang/v8-@@g' |
114 |
} |
115 |
|
116 |
remove_bundled_lib() { |
117 |
local out |
118 |
out="$(find $1 -type f \! -iname '*.gyp' -print -delete)" \ |
119 |
|| die "failed to remove bundled library $1" |
120 |
if [[ -z $out ]]; then |
121 |
die "no files matched when removing bundled library $1" |
122 |
fi |
123 |
} |
124 |
|
125 |
pkg_setup() { |
126 |
CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser" |
127 |
|
128 |
# Make sure the build system will use the right tools, bug #340795. |
129 |
tc-export AR CC CXX RANLIB |
130 |
|
131 |
# Make sure the build system will use the right python, bug #344367. |
132 |
python_set_active_version 2 |
133 |
python_pkg_setup |
134 |
|
135 |
# Prevent user problems like bug #299777. |
136 |
if ! grep -q /dev/shm <<< $(get_mounts); then |
137 |
ewarn "You don't have tmpfs mounted at /dev/shm." |
138 |
ewarn "${PN} may fail to start in that configuration." |
139 |
ewarn "Please uncomment the /dev/shm entry in /etc/fstab," |
140 |
ewarn "and run 'mount /dev/shm'." |
141 |
fi |
142 |
if [ `stat -c %a /dev/shm` -ne 1777 ]; then |
143 |
ewarn "/dev/shm does not have correct permissions." |
144 |
ewarn "${PN} may fail to start in that configuration." |
145 |
ewarn "Please run 'chmod 1777 /dev/shm'." |
146 |
fi |
147 |
} |
148 |
|
149 |
src_prepare() { |
150 |
# Enable optional support for gecko-mediaplayer. |
151 |
epatch "${FILESDIR}"/${PN}-gecko-mediaplayer-r0.patch |
152 |
|
153 |
# Make sure we don't use bundled libvpx headers. |
154 |
epatch "${FILESDIR}"/${PN}-system-vpx-r1.patch |
155 |
|
156 |
# Small fixes to make tests compile, to be upstreamed. |
157 |
epatch "${FILESDIR}"/${PN}-tests-r0.patch |
158 |
|
159 |
remove_bundled_lib "third_party/bzip2" |
160 |
remove_bundled_lib "third_party/codesighs" |
161 |
remove_bundled_lib "third_party/icu" |
162 |
remove_bundled_lib "third_party/jemalloc" |
163 |
remove_bundled_lib "third_party/lcov" |
164 |
remove_bundled_lib "third_party/libevent" |
165 |
remove_bundled_lib "third_party/libjpeg" |
166 |
remove_bundled_lib "third_party/libpng" |
167 |
remove_bundled_lib "third_party/libvpx" |
168 |
remove_bundled_lib "third_party/libxml" |
169 |
remove_bundled_lib "third_party/libxslt" |
170 |
remove_bundled_lib "third_party/lzma_sdk" |
171 |
remove_bundled_lib "third_party/molokocacao" |
172 |
remove_bundled_lib "third_party/ocmock" |
173 |
remove_bundled_lib "third_party/yasm" |
174 |
# TODO: also remove third_party/ffmpeg (needs to be compile-tested). |
175 |
# TODO: also remove third_party/zlib. For now the compilation fails if we |
176 |
# remove it (minizip-related). |
177 |
|
178 |
local v8_bundled="$(v8-extract-version v8/src/version.cc)" |
179 |
if use system-v8; then |
180 |
local v8_installed="$(get_installed_v8_version)" |
181 |
einfo "V8 version: bundled - ${v8_bundled}; installed - ${v8_installed}" |
182 |
version_is_at_least "${v8_bundled}" "${v8_installed}" || die |
183 |
else |
184 |
einfo "Bundled V8 version: ${v8_bundled}" |
185 |
fi |
186 |
|
187 |
if use system-v8; then |
188 |
# Provide our own gyp file that links with the system v8. |
189 |
# TODO: move this upstream. |
190 |
cp "${FILESDIR}"/v8.gyp v8/tools/gyp || die |
191 |
|
192 |
remove_bundled_lib "v8" |
193 |
|
194 |
# The implementation files include v8 headers with full path, |
195 |
# like #include "v8/include/v8.h". Make sure the system headers |
196 |
# will be used. |
197 |
# TODO: find a solution that can be upstreamed. |
198 |
rmdir v8/include || die |
199 |
ln -s /usr/include v8/include || die |
200 |
fi |
201 |
|
202 |
# Make sure the build system will use the right python, bug #344367. |
203 |
# Only convert directories that need it, to save time. |
204 |
python_convert_shebangs -q -r 2 build tools |
205 |
} |
206 |
|
207 |
src_configure() { |
208 |
local myconf="" |
209 |
|
210 |
# Never tell the build system to "enable" SSE2, it has a few unexpected |
211 |
# additions, bug #336871. |
212 |
myconf+=" -Ddisable_sse2=1" |
213 |
|
214 |
# Use system-provided libraries. |
215 |
# TODO: use_system_hunspell (upstream changes needed). |
216 |
# TODO: use_system_ssl (need to consult upstream). |
217 |
myconf+=" |
218 |
-Duse_system_bzip2=1 |
219 |
-Duse_system_ffmpeg=1 |
220 |
-Duse_system_icu=1 |
221 |
-Duse_system_libevent=1 |
222 |
-Duse_system_libjpeg=1 |
223 |
-Duse_system_libpng=1 |
224 |
-Duse_system_libxml=1 |
225 |
-Duse_system_vpx=1 |
226 |
-Duse_system_zlib=1" |
227 |
|
228 |
# The dependency on cups is optional, see bug #324105. |
229 |
if use cups; then |
230 |
myconf+=" -Duse_cups=1" |
231 |
else |
232 |
myconf+=" -Duse_cups=0" |
233 |
fi |
234 |
|
235 |
# Make GConf dependency optional, http://crbug.com/13322. |
236 |
if use gnome; then |
237 |
myconf+=" -Duse_gconf=1" |
238 |
else |
239 |
myconf+=" -Duse_gconf=0" |
240 |
fi |
241 |
|
242 |
if use "gnome-keyring"; then |
243 |
myconf+=" -Duse_gnome_keyring=1 -Dlinux_link_gnome_keyring=1" |
244 |
else |
245 |
# TODO: we should also disable code trying to dlopen |
246 |
# gnome-keyring in that case. |
247 |
myconf+=" -Duse_gnome_keyring=0 -Dlinux_link_gnome_keyring=0" |
248 |
fi |
249 |
|
250 |
# Enable sandbox. |
251 |
myconf+=" |
252 |
-Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox |
253 |
-Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
254 |
|
255 |
if host-is-pax; then |
256 |
# Prevent the build from failing (bug #301880). The performance |
257 |
# difference is very small. |
258 |
myconf+=" -Dv8_use_snapshot=0" |
259 |
fi |
260 |
|
261 |
if use gecko-mediaplayer; then |
262 |
# Disable hardcoded blacklist for gecko-mediaplayer. |
263 |
# When www-plugins/gecko-mediaplayer is compiled with USE=gnome, it causes |
264 |
# the browser to hang. We can handle the situation via dependencies, |
265 |
# thus making it possible to use gecko-mediaplayer. |
266 |
append-flags -DGENTOO_CHROMIUM_ENABLE_GECKO_MEDIAPLAYER |
267 |
fi |
268 |
|
269 |
# Our system ffmpeg should support more codecs than the bundled one |
270 |
# for Chromium. |
271 |
myconf+=" -Dproprietary_codecs=1" |
272 |
|
273 |
# Use target arch detection logic from bug #296917. |
274 |
local myarch="$ABI" |
275 |
[[ $myarch = "" ]] && myarch="$ARCH" |
276 |
|
277 |
if [[ $myarch = amd64 ]] ; then |
278 |
myconf+=" -Dtarget_arch=x64" |
279 |
elif [[ $myarch = x86 ]] ; then |
280 |
myconf+=" -Dtarget_arch=ia32" |
281 |
elif [[ $myarch = arm ]] ; then |
282 |
# TODO: check this again after |
283 |
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed. |
284 |
append-flags -fno-tree-sink |
285 |
|
286 |
myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0" |
287 |
else |
288 |
die "Failed to determine target arch, got '$myarch'." |
289 |
fi |
290 |
|
291 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
292 |
# Depending on GCC version the warnings are different and we don't want |
293 |
# the build to fail because of that. |
294 |
myconf+=" -Dwerror=" |
295 |
|
296 |
# Avoid a build error with -Os, bug #352457. |
297 |
replace-flags "-Os" "-O2" |
298 |
|
299 |
egyp ${myconf} || die |
300 |
} |
301 |
|
302 |
src_compile() { |
303 |
emake chrome chrome_sandbox BUILDTYPE=Release V=1 || die |
304 |
pax-mark m out/Release/chrome |
305 |
} |
306 |
|
307 |
src_install() { |
308 |
exeinto "${CHROMIUM_HOME}" |
309 |
doexe out/Release/chrome |
310 |
doexe out/Release/chrome_sandbox || die |
311 |
fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" |
312 |
doexe out/Release/xdg-settings || die |
313 |
doexe "${FILESDIR}"/chromium-launcher.sh || die |
314 |
|
315 |
insinto "${CHROMIUM_HOME}" |
316 |
doins out/Release/chrome.pak || die |
317 |
doins out/Release/resources.pak || die |
318 |
|
319 |
doins -r out/Release/locales || die |
320 |
doins -r out/Release/resources || die |
321 |
|
322 |
# chrome.1 is for chromium --help |
323 |
newman out/Release/chrome.1 chrome.1 || die |
324 |
newman out/Release/chrome.1 chromium.1 || die |
325 |
|
326 |
# Chromium looks for these in its folder |
327 |
# See media_posix.cc and base_paths_linux.cc |
328 |
dosym /usr/$(get_libdir)/libavcodec.so.52 "${CHROMIUM_HOME}" || die |
329 |
dosym /usr/$(get_libdir)/libavformat.so.52 "${CHROMIUM_HOME}" || die |
330 |
dosym /usr/$(get_libdir)/libavutil.so.50 "${CHROMIUM_HOME}" || die |
331 |
|
332 |
# Install icon and desktop entry. |
333 |
newicon out/Release/product_logo_48.png ${PN}-browser.png || die |
334 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium || die |
335 |
make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" \ |
336 |
"MimeType=text/html;text/xml;application/xhtml+xml;" |
337 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop || die |
338 |
|
339 |
# Install GNOME default application entry (bug #303100). |
340 |
if use gnome; then |
341 |
dodir /usr/share/gnome-control-center/default-apps || die |
342 |
insinto /usr/share/gnome-control-center/default-apps |
343 |
doins "${FILESDIR}"/chromium.xml || die |
344 |
fi |
345 |
} |