Gentoo Archives: gentoo-commits

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