Gentoo Archives: gentoo-commits

From: "PaweA Hajdan (phajdan.jr)" <phajdan.jr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/chromium: ChangeLog chromium-6.0.472.14.ebuild chromium-6.0.472.0.ebuild
Date: Sat, 31 Jul 2010 04:02:24
Message-Id: 20100731030943.A1EF92CE3C@corvid.gentoo.org
1 phajdan.jr 10/07/31 03:09:43
2
3 Modified: ChangeLog
4 Added: chromium-6.0.472.14.ebuild
5 Removed: chromium-6.0.472.0.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.145 www-client/chromium/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.145&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.145&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.144&r2=1.145
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
20 retrieving revision 1.144
21 retrieving revision 1.145
22 diff -u -r1.144 -r1.145
23 --- ChangeLog 29 Jul 2010 15:15:17 -0000 1.144
24 +++ ChangeLog 31 Jul 2010 03:09:43 -0000 1.145
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.144 2010/07/29 15:15:17 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.145 2010/07/31 03:09:43 phajdan.jr Exp $
30 +
31 +*chromium-6.0.472.14 (31 Jul 2010)
32 +
33 + 31 Jul 2010; Pawel Hajdan jr <phajdan.jr@g.o>
34 + -chromium-6.0.472.0.ebuild, +chromium-6.0.472.14.ebuild:
35 + Version bump for dev channel release.
36
37 29 Jul 2010; Markos Chandras <hwoarang@g.o>
38 chromium-5.0.375.125.ebuild:
39
40
41
42 1.1 www-client/chromium/chromium-6.0.472.14.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-6.0.472.14.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-6.0.472.14.ebuild?rev=1.1&content-type=text/plain
46
47 Index: chromium-6.0.472.14.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-6.0.472.14.ebuild,v 1.1 2010/07/31 03:09:43 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 sse2"
65
66 RDEPEND="app-arch/bzip2
67 >=dev-libs/libevent-1.4.13
68 >=dev-libs/nss-3.12.3
69 >=gnome-base/gconf-2.24.0
70 gnome? ( >=gnome-base/gnome-keyring-2.28.2 )
71 >=media-libs/alsa-lib-1.0.19
72 media-libs/jpeg:0
73 media-libs/libpng
74 media-video/ffmpeg[threads]
75 cups? ( >=net-print/cups-1.4.4 )
76 sys-libs/zlib
77 >=x11-libs/gtk+-2.14.7
78 x11-libs/libXScrnSaver"
79 DEPEND="${RDEPEND}
80 dev-lang/perl
81 >=dev-util/gperf-3.0.3
82 >=dev-util/pkgconfig-0.23
83 >=gnome-base/gnome-keyring-2.28.2
84 sys-devel/flex"
85 RDEPEND+="
86 || (
87 x11-themes/gnome-icon-theme
88 x11-themes/oxygen-molecule
89 x11-themes/tango-icon-theme
90 x11-themes/xfce4-icon-theme
91 )
92 x11-apps/xmessage
93 x11-misc/xdg-utils
94 virtual/ttf-fonts"
95
96 get_chromium_home() {
97 echo "/usr/$(get_libdir)/chromium-browser"
98 }
99
100 remove_bundled_lib() {
101 einfo "Removing bundled library $1 ..."
102 local out
103 out="$(find $1 -mindepth 1 \! -iname '*.gyp' -print -delete)" \
104 || die "failed to remove bundled library $1"
105 if [[ -z $out ]]; then
106 die "no files matched when removing bundled library $1"
107 fi
108 }
109
110 src_prepare() {
111 # Disable VP8 until we have a recent enough system-provided ffmpeg.
112 epatch "${FILESDIR}"/${PN}-disable-vp8-r1.patch
113
114 remove_bundled_lib "third_party/bzip2"
115 remove_bundled_lib "third_party/libevent"
116 remove_bundled_lib "third_party/libjpeg"
117 remove_bundled_lib "third_party/libpng"
118 # TODO: also remove third_party/libxml and third_party/libxslt when
119 # http://crbug.com/29333 is fixed.
120 # TODO: also remove third_party/zlib. For now the compilation fails if we
121 # remove it (minizip-related).
122 }
123
124 src_configure() {
125 local myconf=""
126
127 # Make it possible to build chromium on non-sse2 systems.
128 if use sse2; then
129 myconf="${myconf} -Ddisable_sse2=0"
130 else
131 myconf="${myconf} -Ddisable_sse2=1"
132 fi
133
134 # Use system-provided libraries.
135 # TODO: use_system_libxml (http://crbug.com/29333).
136 # TODO: use_system_sqlite (http://crbug.com/22208).
137 # TODO: use_system_icu, use_system_hunspell (upstream changes needed).
138 # TODO: use_system_ssl when we have a recent enough system NSS.
139 myconf="${myconf}
140 -Duse_system_bzip2=1
141 -Duse_system_ffmpeg=1
142 -Duse_system_libevent=1
143 -Duse_system_libjpeg=1
144 -Duse_system_libpng=1
145 -Duse_system_zlib=1"
146
147 # The system-provided ffmpeg supports more codecs. Enable them in chromium.
148 myconf="${myconf} -Dproprietary_codecs=1"
149
150 # The dependency on cups is optional, see bug #324105.
151 if use cups; then
152 myconf="${myconf} -Duse_cups=1"
153 else
154 myconf="${myconf} -Duse_cups=0"
155 fi
156
157 # Enable sandbox.
158 myconf="${myconf}
159 -Dlinux_sandbox_path=$(get_chromium_home)/chrome_sandbox
160 -Dlinux_sandbox_chrome_path=$(get_chromium_home)/chrome"
161
162 # Disable the V8 snapshot. It breaks the build on hardened (bug #301880),
163 # and the performance gain isn't worth it.
164 myconf="${myconf} -Dv8_use_snapshot=0"
165
166 # Disable tcmalloc memory allocator. It causes problems,
167 # for example bug #320419.
168 myconf="${myconf} -Dlinux_use_tcmalloc=0"
169
170 # Disable gpu rendering, it is incompatible with nvidia-drivers,
171 # bug #319331.
172 myconf="${myconf} -Denable_gpu=0"
173
174 # Use target arch detection logic from bug #296917.
175 local myarch="$ABI"
176 [[ $myarch = "" ]] && myarch="$ARCH"
177
178 if [[ $myarch = amd64 ]] ; then
179 myconf="${myconf} -Dtarget_arch=x64"
180 elif [[ $myarch = x86 ]] ; then
181 myconf="${myconf} -Dtarget_arch=ia32"
182 elif [[ $myarch = arm ]] ; then
183 # TODO: check this again after
184 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39509 is fixed.
185 append-flags -fno-tree-sink
186
187 myconf="${myconf} -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
188 else
189 die "Failed to determine target arch, got '$myarch'."
190 fi
191
192 if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then
193 myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44"
194 fi
195
196 # Make sure that -Werror doesn't get added to CFLAGS by the build system.
197 # Depending on GCC version the warnings are different and we don't want
198 # the build to fail because of that.
199 myconf="${myconf} -Dwerror="
200
201 build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed"
202 }
203
204 src_compile() {
205 emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \
206 rootdir="${S}" \
207 CC=$(tc-getCC) \
208 CXX=$(tc-getCXX) \
209 AR=$(tc-getAR) \
210 RANLIB=$(tc-getRANLIB) \
211 || die "compilation failed"
212 }
213
214 src_install() {
215 dodir "$(get_chromium_home)"
216
217 exeinto "$(get_chromium_home)"
218 pax-mark m out/Release/chrome
219 doexe out/Release/chrome
220 doexe out/Release/chrome_sandbox
221 fperms 4755 "$(get_chromium_home)/chrome_sandbox"
222 doexe out/Release/xdg-settings
223 doexe "${FILESDIR}"/chromium-launcher.sh
224
225 insinto "$(get_chromium_home)"
226 doins out/Release/chrome.pak || die "installing chrome.pak failed"
227 doins out/Release/resources.pak || die "installing resources.pak failed"
228
229 doins -r out/Release/locales
230 doins -r out/Release/resources
231
232 # chrome.1 is for chromium --help
233 newman out/Release/chrome.1 chrome.1
234 newman out/Release/chrome.1 chromium.1
235
236 # Chromium looks for these in its folder
237 # See media_posix.cc and base_paths_linux.cc
238 dosym /usr/$(get_libdir)/libavcodec.so.52 "$(get_chromium_home)"
239 dosym /usr/$(get_libdir)/libavformat.so.52 "$(get_chromium_home)"
240 dosym /usr/$(get_libdir)/libavutil.so.50 "$(get_chromium_home)"
241
242 # Use system plugins by default.
243 dosym /usr/$(get_libdir)/nsbrowser/plugins "$(get_chromium_home)/plugins"
244
245 # Install icon and desktop entry.
246 newicon out/Release/product_logo_48.png ${PN}-browser.png
247 dosym "$(get_chromium_home)/chromium-launcher.sh" /usr/bin/chromium
248 make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" \
249 "MimeType=text/html;text/xml;application/xhtml+xml;"
250 sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \
251 || die "desktop file sed failed"
252
253 # Install GNOME default application entry (bug #303100).
254 dodir /usr/share/gnome-control-center/default-apps
255 insinto /usr/share/gnome-control-center/default-apps
256 doins "${FILESDIR}"/chromium.xml
257 }