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