1 |
phajdan.jr 10/09/29 09:54:08 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: chromium-7.0.517.24.ebuild |
5 |
Removed: chromium-7.0.517.8.ebuild |
6 |
Log: |
7 |
Version bump for dev channel release. |
8 |
(Portage version: 2.1.8.3/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.191 www-client/chromium/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.191&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.191&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.190&r2=1.191 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
20 |
retrieving revision 1.190 |
21 |
retrieving revision 1.191 |
22 |
diff -u -r1.190 -r1.191 |
23 |
--- ChangeLog 27 Sep 2010 09:53:11 -0000 1.190 |
24 |
+++ ChangeLog 29 Sep 2010 09:54:08 -0000 1.191 |
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.190 2010/09/27 09:53:11 phajdan.jr Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.191 2010/09/29 09:54:08 phajdan.jr Exp $ |
30 |
+ |
31 |
+*chromium-7.0.517.24 (29 Sep 2010) |
32 |
+ |
33 |
+ 29 Sep 2010; Pawel Hajdan jr <phajdan.jr@g.o> |
34 |
+ -chromium-7.0.517.8.ebuild, +chromium-7.0.517.24.ebuild: |
35 |
+ Version bump for dev channel release. |
36 |
|
37 |
*chromium-7.0.517.13 (27 Sep 2010) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 www-client/chromium/chromium-7.0.517.24.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-7.0.517.24.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-7.0.517.24.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: chromium-7.0.517.24.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-7.0.517.24.ebuild,v 1.1 2010/09/29 09:54:08 phajdan.jr Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
|
55 |
inherit eutils flag-o-matic multilib pax-utils toolchain-funcs |
56 |
|
57 |
DESCRIPTION="Open-source version of Google Chrome web browser" |
58 |
HOMEPAGE="http://chromium.org/" |
59 |
SRC_URI="http://build.chromium.org/buildbot/official/${P}.tar.bz2" |
60 |
|
61 |
LICENSE="BSD" |
62 |
SLOT="0" |
63 |
KEYWORDS="~amd64 ~arm ~x86" |
64 |
IUSE="cups gnome gnome-keyring" |
65 |
|
66 |
RDEPEND="app-arch/bzip2 |
67 |
>=dev-libs/icu-4.4.1 |
68 |
>=dev-libs/libevent-1.4.13 |
69 |
dev-libs/libxml2 |
70 |
dev-libs/libxslt |
71 |
>=dev-libs/nss-3.12.3 |
72 |
>=gnome-base/gconf-2.24.0 |
73 |
gnome-keyring? ( >=gnome-base/gnome-keyring-2.28.2 ) |
74 |
>=media-libs/alsa-lib-1.0.19 |
75 |
media-libs/jpeg:0 |
76 |
media-libs/libpng |
77 |
cups? ( >=net-print/cups-1.4.4 ) |
78 |
sys-libs/zlib |
79 |
>=x11-libs/gtk+-2.14.7 |
80 |
x11-libs/libXScrnSaver" |
81 |
DEPEND="${RDEPEND} |
82 |
dev-lang/perl |
83 |
>=dev-util/gperf-3.0.3 |
84 |
>=dev-util/pkgconfig-0.23 |
85 |
sys-devel/flex" |
86 |
RDEPEND+=" |
87 |
|| ( |
88 |
x11-themes/gnome-icon-theme |
89 |
x11-themes/oxygen-molecule |
90 |
x11-themes/tango-icon-theme |
91 |
x11-themes/xfce4-icon-theme |
92 |
) |
93 |
x11-apps/xmessage |
94 |
x11-misc/xdg-utils |
95 |
virtual/ttf-fonts" |
96 |
|
97 |
remove_bundled_lib() { |
98 |
einfo "Removing bundled library $1 ..." |
99 |
local out |
100 |
out="$(find $1 -mindepth 1 \! -iname '*.gyp' -print -delete)" \ |
101 |
|| die "failed to remove bundled library $1" |
102 |
if [[ -z $out ]]; then |
103 |
die "no files matched when removing bundled library $1" |
104 |
fi |
105 |
} |
106 |
|
107 |
pkg_setup() { |
108 |
CHROMIUM_HOME="/usr/$(get_libdir)/chromium-browser" |
109 |
} |
110 |
|
111 |
src_prepare() { |
112 |
# Add Gentoo plugin paths. |
113 |
epatch "${FILESDIR}"/${PN}-plugins-path-r0.patch |
114 |
|
115 |
# Make compile-time dependency on gnome-keyring optional, bug #332411. |
116 |
epatch "${FILESDIR}"/${PN}-gnome-keyring-r0.patch |
117 |
|
118 |
remove_bundled_lib "third_party/bzip2" |
119 |
remove_bundled_lib "third_party/codesighs" |
120 |
remove_bundled_lib "third_party/cros" |
121 |
remove_bundled_lib "third_party/icu" |
122 |
remove_bundled_lib "third_party/jemalloc" |
123 |
remove_bundled_lib "third_party/lcov" |
124 |
remove_bundled_lib "third_party/libevent" |
125 |
remove_bundled_lib "third_party/libjpeg" |
126 |
remove_bundled_lib "third_party/libpng" |
127 |
remove_bundled_lib "third_party/libxml" |
128 |
remove_bundled_lib "third_party/libxslt" |
129 |
remove_bundled_lib "third_party/lzma_sdk" |
130 |
remove_bundled_lib "third_party/molokocacao" |
131 |
remove_bundled_lib "third_party/ocmock" |
132 |
remove_bundled_lib "third_party/pyftpdlib" |
133 |
remove_bundled_lib "third_party/simplejson" |
134 |
remove_bundled_lib "third_party/tlslite" |
135 |
# TODO: also remove third_party/zlib. For now the compilation fails if we |
136 |
# remove it (minizip-related). |
137 |
} |
138 |
|
139 |
src_configure() { |
140 |
local myconf="" |
141 |
|
142 |
# Never tell the build system to "enable" SSE2, it has a few unexpected |
143 |
# additions, bug #336871. |
144 |
myconf+=" -Ddisable_sse2=1" |
145 |
|
146 |
# Use system-provided libraries. |
147 |
# TODO: use_system_ffmpeg (http://crbug.com/50678). |
148 |
# TODO: use_system_sqlite (http://crbug.com/22208). |
149 |
# TODO: use_system_hunspell (upstream changes needed). |
150 |
# TODO: use_system_ssl when we have a recent enough system NSS. |
151 |
myconf+=" |
152 |
-Duse_system_bzip2=1 |
153 |
-Duse_system_icu=1 |
154 |
-Duse_system_libevent=1 |
155 |
-Duse_system_libjpeg=1 |
156 |
-Duse_system_libpng=1 |
157 |
-Duse_system_libxml=1 |
158 |
-Duse_system_zlib=1" |
159 |
|
160 |
# The dependency on cups is optional, see bug #324105. |
161 |
if use cups; then |
162 |
myconf+=" -Duse_cups=1" |
163 |
else |
164 |
myconf+=" -Duse_cups=0" |
165 |
fi |
166 |
|
167 |
if use "gnome-keyring"; then |
168 |
myconf+=" -Duse_gnome_keyring=1 -Dlinux_link_gnome_keyring=1" |
169 |
else |
170 |
# TODO: we should also disable code trying to dlopen |
171 |
# gnome-keyring in that case. |
172 |
myconf+=" -Duse_gnome_keyring=0 -Dlinux_link_gnome_keyring=0" |
173 |
fi |
174 |
|
175 |
# Enable sandbox. |
176 |
myconf+=" |
177 |
-Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox |
178 |
-Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
179 |
|
180 |
# Disable the V8 snapshot. It breaks the build on hardened (bug #301880), |
181 |
# and the performance gain isn't worth it. |
182 |
myconf+=" -Dv8_use_snapshot=0" |
183 |
|
184 |
# Disable tcmalloc memory allocator. It causes problems, |
185 |
# for example bug #320419. |
186 |
myconf+=" -Dlinux_use_tcmalloc=0" |
187 |
|
188 |
# Use target arch detection logic from bug #296917. |
189 |
local myarch="$ABI" |
190 |
[[ $myarch = "" ]] && myarch="$ARCH" |
191 |
|
192 |
if [[ $myarch = amd64 ]] ; then |
193 |
myconf+=" -Dtarget_arch=x64" |
194 |
elif [[ $myarch = x86 ]] ; then |
195 |
myconf+=" -Dtarget_arch=ia32" |
196 |
elif [[ $myarch = arm ]] ; then |
197 |
# TODO: check this again after |
198 |
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed. |
199 |
append-flags -fno-tree-sink |
200 |
|
201 |
myconf+=" -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0" |
202 |
else |
203 |
die "Failed to determine target arch, got '$myarch'." |
204 |
fi |
205 |
|
206 |
if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then |
207 |
myconf+=" -Dno_strict_aliasing=1 -Dgcc_version=44" |
208 |
fi |
209 |
|
210 |
# Work around a likely GCC bug, see bug #331945. |
211 |
if [[ "$(gcc-major-version)$(gcc-minor-version)" == "45" ]]; then |
212 |
append-flags -fno-ipa-cp |
213 |
fi |
214 |
|
215 |
# Make sure that -Werror doesn't get added to CFLAGS by the build system. |
216 |
# Depending on GCC version the warnings are different and we don't want |
217 |
# the build to fail because of that. |
218 |
myconf+=" -Dwerror=" |
219 |
|
220 |
build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die |
221 |
} |
222 |
|
223 |
src_compile() { |
224 |
emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \ |
225 |
CC="$(tc-getCC)" \ |
226 |
CXX="$(tc-getCXX)" \ |
227 |
AR="$(tc-getAR)" \ |
228 |
RANLIB="$(tc-getRANLIB)" \ |
229 |
|| die |
230 |
} |
231 |
|
232 |
src_install() { |
233 |
exeinto "${CHROMIUM_HOME}" |
234 |
pax-mark m out/Release/chrome |
235 |
doexe out/Release/chrome |
236 |
doexe out/Release/chrome_sandbox || die |
237 |
fperms 4755 "${CHROMIUM_HOME}/chrome_sandbox" |
238 |
doexe out/Release/xdg-settings || die |
239 |
doexe "${FILESDIR}"/chromium-launcher.sh || die |
240 |
|
241 |
insinto "${CHROMIUM_HOME}" |
242 |
doins out/Release/chrome.pak || die |
243 |
doins out/Release/resources.pak || die |
244 |
|
245 |
doins -r out/Release/locales || die |
246 |
doins -r out/Release/resources || die |
247 |
|
248 |
# chrome.1 is for chromium --help |
249 |
newman out/Release/chrome.1 chrome.1 || die |
250 |
newman out/Release/chrome.1 chromium.1 || die |
251 |
|
252 |
doexe out/Release/ffmpegsumo_nolink || die |
253 |
doexe out/Release/libffmpegsumo.so || die |
254 |
|
255 |
# Install icon and desktop entry. |
256 |
newicon out/Release/product_logo_48.png ${PN}-browser.png || die |
257 |
dosym "${CHROMIUM_HOME}/chromium-launcher.sh" /usr/bin/chromium || die |
258 |
make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" \ |
259 |
"MimeType=text/html;text/xml;application/xhtml+xml;" |
260 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop || die |
261 |
|
262 |
# Install GNOME default application entry (bug #303100). |
263 |
if use gnome; then |
264 |
dodir /usr/share/gnome-control-center/default-apps || die |
265 |
insinto /usr/share/gnome-control-center/default-apps |
266 |
doins "${FILESDIR}"/chromium.xml || die |
267 |
fi |
268 |
} |