1 |
phajdan.jr 10/05/04 14:51:53 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: chromium-5.0.375.29.ebuild |
5 |
Removed: chromium-5.0.375.9.ebuild |
6 |
Log: |
7 |
Version bump for dev channel release. Remove old. |
8 |
(Portage version: 2.1.8.3/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.94 www-client/chromium/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?rev=1.94&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?rev=1.94&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?r1=1.93&r2=1.94 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
20 |
retrieving revision 1.93 |
21 |
retrieving revision 1.94 |
22 |
diff -u -r1.93 -r1.94 |
23 |
--- ChangeLog 4 May 2010 11:15:54 -0000 1.93 |
24 |
+++ ChangeLog 4 May 2010 14:51:53 -0000 1.94 |
25 |
@@ -1,6 +1,12 @@ |
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.93 2010/05/04 11:15:54 phajdan.jr Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.94 2010/05/04 14:51:53 phajdan.jr Exp $ |
30 |
+ |
31 |
+*chromium-5.0.375.29 (04 May 2010) |
32 |
+ |
33 |
+ 04 May 2010; Pawel Hajdan jr <phajdan.jr@g.o> |
34 |
+ -chromium-5.0.375.9.ebuild, +chromium-5.0.375.29.ebuild: |
35 |
+ Version bump for dev channel release. Remove old. |
36 |
|
37 |
04 May 2010; Pawel Hajdan jr <phajdan.jr@g.o> chromium-9999.ebuild: |
38 |
Do not apply the libpng-1.4 patch, it has been applied upstream. Bug |
39 |
|
40 |
|
41 |
|
42 |
1.1 www-client/chromium/chromium-5.0.375.29.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-5.0.375.29.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-5.0.375.29.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: chromium-5.0.375.29.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-5.0.375.29.ebuild,v 1.1 2010/05/04 14:51:53 phajdan.jr Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
inherit eutils flag-o-matic multilib portability toolchain-funcs |
55 |
|
56 |
DESCRIPTION="Open-source version of Google Chrome web browser" |
57 |
HOMEPAGE="http://chromium.org/" |
58 |
SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2" |
59 |
|
60 |
LICENSE="BSD" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~arm ~x86" |
63 |
IUSE="mp3 +plugins-symlink x264" |
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 |
>=media-video/ffmpeg-0.5_p21602[mp3=,threads,x264=] |
75 |
sys-libs/zlib |
76 |
>=x11-libs/gtk+-2.14.7 |
77 |
x11-libs/libXScrnSaver" |
78 |
# dev-db/sqlite:3 |
79 |
DEPEND="${RDEPEND} |
80 |
dev-lang/perl |
81 |
>=dev-util/gperf-3.0.3 |
82 |
>=dev-util/pkgconfig-0.23 |
83 |
sys-devel/flex" |
84 |
RDEPEND+=" |
85 |
|| ( |
86 |
x11-themes/gnome-icon-theme |
87 |
x11-themes/oxygen-molecule |
88 |
x11-themes/tango-icon-theme |
89 |
x11-themes/xfce4-icon-theme |
90 |
) |
91 |
x11-misc/xdg-utils |
92 |
virtual/ttf-fonts" |
93 |
|
94 |
# Incompatible system plugins: |
95 |
# www-plugins/gecko-mediaplayer, bug #309231. |
96 |
RDEPEND+=" |
97 |
plugins-symlink? ( |
98 |
!www-plugins/gecko-mediaplayer[gnome] |
99 |
)" |
100 |
|
101 |
pkg_setup() { |
102 |
if [[ "${ROOT}" == "/" ]]; then |
103 |
# Prevent user problems like bug 299777. |
104 |
if ! grep -q /dev/shm <<< $(get_mounts); then |
105 |
eerror "You don't have tmpfs mounted at /dev/shm." |
106 |
eerror "${PN} isn't going to work in that configuration." |
107 |
eerror "Please uncomment the /dev/shm entry in /etc/fstab," |
108 |
eerror "run 'mount /dev/shm' and try again." |
109 |
die "/dev/shm is not mounted" |
110 |
fi |
111 |
if [ `stat -c %a /dev/shm` -ne 1777 ]; then |
112 |
eerror "/dev/shm does not have correct permissions." |
113 |
eerror "${PN} isn't going to work in that configuration." |
114 |
eerror "Please run chmod 1777 /dev/shm and try again." |
115 |
die "/dev/shm has incorrect permissions" |
116 |
fi |
117 |
fi |
118 |
|
119 |
elog "${PN} might crash occasionally. To get more useful backtraces" |
120 |
elog "and submit better bug reports, please read" |
121 |
elog "http://www.gentoo.org/proj/en/qa/backtraces.xml" |
122 |
} |
123 |
|
124 |
src_prepare() { |
125 |
# Prevent automatic -march=pentium4 -msse2 enabling on x86, http://crbug.com/9007 |
126 |
epatch "${FILESDIR}"/${PN}-drop_sse2-r0.patch |
127 |
|
128 |
# Allow supporting more media types provided system ffmpeg supports them. |
129 |
epatch "${FILESDIR}"/${PN}-supported-media-mime-types.patch |
130 |
|
131 |
# Fix build failure with libpng-1.4, bug 310959. |
132 |
epatch "${FILESDIR}"/${PN}-libpng-1.4.patch |
133 |
} |
134 |
|
135 |
src_configure() { |
136 |
export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser |
137 |
|
138 |
# Fails to build on arm if we don't do this |
139 |
use arm && append-flags -fno-tree-sink |
140 |
|
141 |
if use mp3 ; then |
142 |
append-cflags -DGENTOO_CHROMIUM_MP3_ENABLED |
143 |
fi |
144 |
|
145 |
if use x264 ; then |
146 |
append-cflags -DGENTOO_CHROMIUM_H264_ENABLED |
147 |
fi |
148 |
|
149 |
# CFLAGS/LDFLAGS |
150 |
mkdir -p "${S}"/.gyp || die "cflags mkdir failed" |
151 |
cat << EOF > "${S}"/.gyp/include.gypi || die "cflags cat failed" |
152 |
{ |
153 |
'target_defaults': { |
154 |
'cflags': [ '${CFLAGS// /','}' ], |
155 |
'ldflags': [ '${LDFLAGS// /','}' ], |
156 |
}, |
157 |
} |
158 |
EOF |
159 |
export HOME="${S}" |
160 |
|
161 |
# Configuration options (system libraries) |
162 |
local myconf="-Duse_system_zlib=1 -Duse_system_bzip2=1 -Duse_system_ffmpeg=1 -Duse_system_libevent=1 -Duse_system_libjpeg=1 -Duse_system_libpng=1 -Duse_system_libxml=1 -Duse_system_libxslt=1" |
163 |
# -Duse_system_sqlite=1 : http://crbug.com/22208 |
164 |
# Others still bundled: icu (not possible?), hunspell (changes required for sandbox support) |
165 |
|
166 |
# Sandbox paths |
167 |
myconf="${myconf} -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
168 |
|
169 |
# Disable the V8 snapshot. It breaks the build on hardened (bug #301880), |
170 |
# and the performance gain isn't worth it. |
171 |
myconf="${myconf} -Dv8_use_snapshot=0" |
172 |
|
173 |
# Use target arch detection logic from bug #296917. |
174 |
local myarch="$ABI" |
175 |
[[ $myarch = "" ]] && myarch="$ARCH" |
176 |
|
177 |
if [[ $myarch = amd64 ]] ; then |
178 |
myconf="${myconf} -Dtarget_arch=x64" |
179 |
elif [[ $myarch = x86 ]] ; then |
180 |
myconf="${myconf} -Dtarget_arch=ia32" |
181 |
elif [[ $myarch = arm ]] ; then |
182 |
myconf="${myconf} -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0" |
183 |
else |
184 |
die "Failed to determine target arch, got '$myarch'." |
185 |
fi |
186 |
|
187 |
if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then |
188 |
myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44" |
189 |
fi |
190 |
|
191 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
192 |
# Depending on GCC version the warnings are different and we don't want |
193 |
# the build to fail because of that. |
194 |
myconf="${myconf} -Dwerror=" |
195 |
|
196 |
build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed" |
197 |
} |
198 |
|
199 |
src_compile() { |
200 |
emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \ |
201 |
rootdir="${S}" \ |
202 |
CC=$(tc-getCC) \ |
203 |
CXX=$(tc-getCXX) \ |
204 |
AR=$(tc-getAR) \ |
205 |
RANLIB=$(tc-getRANLIB) \ |
206 |
|| die "compilation failed" |
207 |
} |
208 |
|
209 |
src_install() { |
210 |
# Chromium does not have "install" target in the build system. |
211 |
export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser |
212 |
|
213 |
dodir ${CHROMIUM_HOME} |
214 |
|
215 |
exeinto ${CHROMIUM_HOME} |
216 |
doexe out/Release/chrome |
217 |
doexe out/Release/chrome_sandbox |
218 |
fperms 4755 ${CHROMIUM_HOME}/chrome_sandbox |
219 |
doexe out/Release/xdg-settings |
220 |
doexe "${FILESDIR}"/chromium-launcher.sh |
221 |
|
222 |
insinto ${CHROMIUM_HOME} |
223 |
doins out/Release/chrome.pak |
224 |
|
225 |
doins -r out/Release/locales |
226 |
doins -r out/Release/resources |
227 |
|
228 |
# chrome.1 is for chromium --help |
229 |
newman out/Release/chrome.1 chrome.1 |
230 |
newman out/Release/chrome.1 chromium.1 |
231 |
|
232 |
# Chromium looks for these in its folder |
233 |
# See media_posix.cc and base_paths_linux.cc |
234 |
dosym /usr/$(get_libdir)/libavcodec.so.52 ${CHROMIUM_HOME} |
235 |
dosym /usr/$(get_libdir)/libavformat.so.52 ${CHROMIUM_HOME} |
236 |
dosym /usr/$(get_libdir)/libavutil.so.50 ${CHROMIUM_HOME} |
237 |
|
238 |
# Plugins symlink, optional wrt bug #301911 |
239 |
if use plugins-symlink; then |
240 |
dosym /usr/$(get_libdir)/nsbrowser/plugins ${CHROMIUM_HOME}/plugins |
241 |
fi |
242 |
|
243 |
# Icon and desktop entry |
244 |
newicon out/Release/product_logo_48.png ${PN}-browser.png |
245 |
dosym ${CHROMIUM_HOME}/chromium-launcher.sh /usr/bin/chromium |
246 |
make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" |
247 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \ |
248 |
|| die "desktop file sed failed" |
249 |
# Gnome default application entry |
250 |
dodir /usr/share/gnome-control-center/default-apps |
251 |
insinto /usr/share/gnome-control-center/default-apps |
252 |
doins "${FILESDIR}"/chromium.xml |
253 |
} |