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