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