1 |
phajdan.jr 10/04/09 13:32:54 |
2 |
|
3 |
Modified: ChangeLog chromium-9999.ebuild |
4 |
Added: chromium-5.0.371.0.ebuild |
5 |
Log: |
6 |
Version bump for dev channel release. Use the old patch for ffmpeg, the |
7 |
new one was broken. Drop the make build patch, it no longer applies. |
8 |
(Portage version: 2.1.7.17/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.79 www-client/chromium/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?rev=1.79&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?rev=1.79&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?r1=1.78&r2=1.79 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
20 |
retrieving revision 1.78 |
21 |
retrieving revision 1.79 |
22 |
diff -u -r1.78 -r1.79 |
23 |
--- ChangeLog 8 Apr 2010 05:43:41 -0000 1.78 |
24 |
+++ ChangeLog 9 Apr 2010 13:32:54 -0000 1.79 |
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.78 2010/04/08 05:43:41 phajdan.jr Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.79 2010/04/09 13:32:54 phajdan.jr Exp $ |
30 |
+ |
31 |
+*chromium-5.0.371.0 (09 Apr 2010) |
32 |
+ |
33 |
+ 09 Apr 2010; Pawel Hajdan jr <phajdan.jr@g.o> |
34 |
+ +chromium-5.0.371.0.ebuild, chromium-9999.ebuild: |
35 |
+ Version bump for dev channel release. Use the old patch for ffmpeg, the |
36 |
+ new one was broken. Drop the make build patch, it no longer applies. |
37 |
|
38 |
*chromium-5.0.342.9 (08 Apr 2010) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.38 www-client/chromium/chromium-9999.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-9999.ebuild?rev=1.38&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-9999.ebuild?rev=1.38&content-type=text/plain |
47 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-9999.ebuild?r1=1.37&r2=1.38 |
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.37 |
53 |
retrieving revision 1.38 |
54 |
diff -u -r1.37 -r1.38 |
55 |
--- chromium-9999.ebuild 5 Apr 2010 15:23:11 -0000 1.37 |
56 |
+++ chromium-9999.ebuild 9 Apr 2010 13:32:54 -0000 1.38 |
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.37 2010/04/05 15:23:11 phajdan.jr Exp $ |
61 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-9999.ebuild,v 1.38 2010/04/09 13:32:54 phajdan.jr Exp $ |
62 |
|
63 |
EAPI="2" |
64 |
inherit eutils flag-o-matic multilib portability subversion toolchain-funcs |
65 |
@@ -135,13 +135,10 @@ |
66 |
epatch "${FILESDIR}"/${PN}-drop_sse2.patch |
67 |
if ! use bindist; then |
68 |
# Allow use of MP3/MPEG-4 audio/video tags with our system ffmpeg |
69 |
- epatch "${FILESDIR}"/${PN}-ffmpeg.patch |
70 |
+ epatch "${FILESDIR}"/${PN}-20100122-ubuntu-html5-video-mimetypes.patch |
71 |
fi |
72 |
# Fix build failure with libpng-1.4, bug 310959. |
73 |
epatch "${FILESDIR}"/${PN}-libpng-1.4.patch |
74 |
- # Prevent the make build from filling entire disk space on some systems, |
75 |
- # bug 297273. |
76 |
- epatch "${FILESDIR}"/${PN}-fix-make-build.patch |
77 |
|
78 |
# Disable prefixing to allow linking against system zlib |
79 |
sed -e '/^#include "mozzconf.h"$/d' \ |
80 |
|
81 |
|
82 |
|
83 |
1.1 www-client/chromium/chromium-5.0.371.0.ebuild |
84 |
|
85 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-5.0.371.0.ebuild?rev=1.1&view=markup |
86 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-5.0.371.0.ebuild?rev=1.1&content-type=text/plain |
87 |
|
88 |
Index: chromium-5.0.371.0.ebuild |
89 |
=================================================================== |
90 |
# Copyright 1999-2010 Gentoo Foundation |
91 |
# Distributed under the terms of the GNU General Public License v2 |
92 |
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-5.0.371.0.ebuild,v 1.1 2010/04/09 13:32:54 phajdan.jr Exp $ |
93 |
|
94 |
EAPI="2" |
95 |
inherit eutils flag-o-matic multilib portability toolchain-funcs |
96 |
|
97 |
DESCRIPTION="Open-source version of Google Chrome web browser" |
98 |
HOMEPAGE="http://chromium.org/" |
99 |
SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2" |
100 |
|
101 |
LICENSE="BSD" |
102 |
SLOT="0" |
103 |
KEYWORDS="~amd64 ~arm ~x86" |
104 |
IUSE="bindist +ffmpeg +plugins-symlink" |
105 |
|
106 |
RDEPEND="app-arch/bzip2 |
107 |
>=dev-libs/libevent-1.4.13 |
108 |
dev-libs/libxml2 |
109 |
dev-libs/libxslt |
110 |
>=dev-libs/nss-3.12.3 |
111 |
>=gnome-base/gconf-2.24.0 |
112 |
>=media-libs/alsa-lib-1.0.19 |
113 |
media-libs/jpeg:0 |
114 |
media-libs/libpng |
115 |
ffmpeg? ( >=media-video/ffmpeg-0.5_p21602 ) |
116 |
sys-libs/zlib |
117 |
>=x11-libs/gtk+-2.14.7 |
118 |
x11-libs/libXScrnSaver" |
119 |
# dev-db/sqlite:3 |
120 |
DEPEND="${RDEPEND} |
121 |
>=dev-util/gperf-3.0.3 |
122 |
>=dev-util/pkgconfig-0.23 |
123 |
sys-devel/flex" |
124 |
RDEPEND+=" |
125 |
|| ( |
126 |
x11-themes/gnome-icon-theme |
127 |
x11-themes/tango-icon-theme |
128 |
x11-themes/xfce4-icon-theme |
129 |
) |
130 |
x11-misc/xdg-utils |
131 |
virtual/ttf-fonts" |
132 |
|
133 |
# Incompatible system plugins: |
134 |
# www-plugins/gecko-mediaplayer, bug #309231. |
135 |
RDEPEND+=" |
136 |
plugins-symlink? ( |
137 |
!www-plugins/gecko-mediaplayer[gnome] |
138 |
)" |
139 |
|
140 |
pkg_setup() { |
141 |
if [[ "${ROOT}" == "/" ]]; then |
142 |
# Prevent user problems like bug 299777. |
143 |
if ! grep -q /dev/shm <<< $(get_mounts); then |
144 |
eerror "You don't have tmpfs mounted at /dev/shm." |
145 |
eerror "${PN} isn't going to work in that configuration." |
146 |
eerror "Please uncomment the /dev/shm entry in /etc/fstab," |
147 |
eerror "run 'mount /dev/shm' and try again." |
148 |
die "/dev/shm is not mounted" |
149 |
fi |
150 |
if [ `stat -c %a /dev/shm` -ne 1777 ]; then |
151 |
eerror "/dev/shm does not have correct permissions." |
152 |
eerror "${PN} isn't going to work in that configuration." |
153 |
eerror "Please run chmod 1777 /dev/shm and try again." |
154 |
die "/dev/shm has incorrect permissions" |
155 |
fi |
156 |
fi |
157 |
|
158 |
elog "${PN} might crash occasionally. To get more useful backtraces" |
159 |
elog "and submit better bug reports, please read" |
160 |
elog "http://www.gentoo.org/proj/en/qa/backtraces.xml" |
161 |
|
162 |
if ! use bindist; then |
163 |
einfo |
164 |
elog "You may not redistribute this build to any users on your network" |
165 |
elog "or the internet." |
166 |
elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" |
167 |
fi |
168 |
} |
169 |
|
170 |
src_prepare() { |
171 |
# Gentoo uses .kde4, not .kde |
172 |
# TODO: this does not work with kdeprefix, fixing http:/crbug.com/29927 |
173 |
# would be better |
174 |
sed -e 's/\.kde/.kde4/' -i net/proxy/proxy_config_service_linux.cc \ |
175 |
|| die "kde proxy sed failed" |
176 |
# Changing this in ~/include.gypi does not work |
177 |
sed -i "s/'-Werror'/''/" build/common.gypi || die "Werror sed failed" |
178 |
# Prevent automatic -march=pentium4 -msse2 enabling on x86, http://crbug.com/9007 |
179 |
epatch "${FILESDIR}"/${PN}-drop_sse2.patch |
180 |
if ! use bindist; then |
181 |
# Allow use of MP3/MPEG-4 audio/video tags with our system ffmpeg |
182 |
epatch "${FILESDIR}"/${PN}-20100122-ubuntu-html5-video-mimetypes.patch |
183 |
fi |
184 |
# Fix build failure with libpng-1.4, bug 310959. |
185 |
epatch "${FILESDIR}"/${PN}-libpng-1.4.patch |
186 |
|
187 |
# Disable prefixing to allow linking against system zlib |
188 |
sed -e '/^#include "mozzconf.h"$/d' \ |
189 |
-i third_party/zlib/zconf.h \ |
190 |
|| die "zlib sed failed" |
191 |
} |
192 |
|
193 |
src_configure() { |
194 |
export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser |
195 |
|
196 |
# Fails to build on arm if we don't do this |
197 |
use arm && append-flags -fno-tree-sink |
198 |
|
199 |
# CFLAGS/LDFLAGS |
200 |
mkdir -p "${S}"/.gyp |
201 |
cat << EOF > "${S}"/.gyp/include.gypi |
202 |
{ |
203 |
'target_defaults': { |
204 |
'cflags': [ '${CFLAGS// /','}' ], |
205 |
'ldflags': [ '${LDFLAGS// /','}' ], |
206 |
}, |
207 |
} |
208 |
EOF |
209 |
export HOME="${S}" |
210 |
|
211 |
# Configuration options (system libraries) |
212 |
local myconf="-Duse_system_zlib=1 -Duse_system_bzip2=1 -Duse_system_libevent=1 -Duse_system_libjpeg=1 -Duse_system_libpng=1 -Duse_system_libxml=1 -Duse_system_libxslt=1" |
213 |
# -Duse_system_sqlite=1 : http://crbug.com/22208 |
214 |
# Others still bundled: icu (not possible?), hunspell (changes required for sandbox support) |
215 |
|
216 |
# Sandbox paths |
217 |
myconf="${myconf} -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
218 |
|
219 |
if use amd64 ; then |
220 |
myconf="${myconf} -Dtarget_arch=x64" |
221 |
fi |
222 |
|
223 |
if use x86 ; then |
224 |
myconf="${myconf} -Dtarget_arch=ia32" |
225 |
fi |
226 |
|
227 |
if use arm; then |
228 |
myconf="${myconf} -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0" |
229 |
fi |
230 |
|
231 |
if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then |
232 |
myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44" |
233 |
fi |
234 |
|
235 |
if use ffmpeg; then |
236 |
myconf="${myconf} -Duse_system_ffmpeg=1" |
237 |
fi |
238 |
|
239 |
build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed" |
240 |
} |
241 |
|
242 |
src_compile() { |
243 |
emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \ |
244 |
rootdir="${S}" \ |
245 |
CC=$(tc-getCC) \ |
246 |
CXX=$(tc-getCXX) \ |
247 |
AR=$(tc-getAR) \ |
248 |
RANLIB=$(tc-getRANLIB) \ |
249 |
|| die "compilation failed" |
250 |
} |
251 |
|
252 |
src_install() { |
253 |
# Chromium does not have "install" target in the build system. |
254 |
export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser |
255 |
|
256 |
dodir ${CHROMIUM_HOME} |
257 |
|
258 |
exeinto ${CHROMIUM_HOME} |
259 |
doexe out/Release/chrome |
260 |
doexe out/Release/chrome_sandbox |
261 |
fperms 4755 ${CHROMIUM_HOME}/chrome_sandbox |
262 |
doexe out/Release/xdg-settings |
263 |
doexe "${FILESDIR}"/chromium-launcher.sh |
264 |
|
265 |
insinto ${CHROMIUM_HOME} |
266 |
doins out/Release/chrome.pak |
267 |
|
268 |
doins -r out/Release/locales |
269 |
doins -r out/Release/resources |
270 |
|
271 |
# chrome.1 is for chromium --help |
272 |
newman out/Release/chrome.1 chrome.1 |
273 |
newman out/Release/chrome.1 chromium.1 |
274 |
|
275 |
if use ffmpeg; then |
276 |
# Chromium looks for these in its folder |
277 |
# See media_posix.cc and base_paths_linux.cc |
278 |
dosym /usr/$(get_libdir)/libavcodec.so.52 ${CHROMIUM_HOME} |
279 |
dosym /usr/$(get_libdir)/libavformat.so.52 ${CHROMIUM_HOME} |
280 |
dosym /usr/$(get_libdir)/libavutil.so.50 ${CHROMIUM_HOME} |
281 |
fi |
282 |
|
283 |
# Plugins symlink, optional wrt bug #301911 |
284 |
if use plugins-symlink; then |
285 |
dosym /usr/$(get_libdir)/nsbrowser/plugins ${CHROMIUM_HOME}/plugins |
286 |
fi |
287 |
|
288 |
# Icon and desktop entry |
289 |
newicon out/Release/product_logo_48.png ${PN}-browser.png |
290 |
dosym ${CHROMIUM_HOME}/chromium-launcher.sh /usr/bin/chromium |
291 |
make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" |
292 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \ |
293 |
|| die "desktop file sed failed" |
294 |
# Gnome default application entry |
295 |
dodir /usr/share/gnome-control-center/default-apps |
296 |
insinto /usr/share/gnome-control-center/default-apps |
297 |
doins "${FILESDIR}"/chromium.xml |
298 |
} |