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: chromium-5.0.335.0.ebuild ChangeLog chromium-5.0.307.5.ebuild
Date: Thu, 25 Feb 2010 09:06:20
Message-Id: E1NkZfm-0002DB-Oq@stork.gentoo.org
1 phajdan.jr 10/02/25 09:06:18
2
3 Modified: ChangeLog
4 Added: chromium-5.0.335.0.ebuild
5 Removed: chromium-5.0.307.5.ebuild
6 Log:
7 Version bump for dev channel release. Remove old.
8 (Portage version: 2.1.7.16/cvs/Linux i686)
9
10 Revision Changes Path
11 1.60 www-client/chromium/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?rev=1.60&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?rev=1.60&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?r1=1.59&r2=1.60
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
20 retrieving revision 1.59
21 retrieving revision 1.60
22 diff -u -r1.59 -r1.60
23 --- ChangeLog 23 Feb 2010 18:26:17 -0000 1.59
24 +++ ChangeLog 25 Feb 2010 09:06:18 -0000 1.60
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.59 2010/02/23 18:26:17 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.60 2010/02/25 09:06:18 phajdan.jr Exp $
30 +
31 +*chromium-5.0.335.0 (25 Feb 2010)
32 +
33 + 25 Feb 2010; Pawel Hajdan jr <phajdan.jr@g.o>
34 + -chromium-5.0.307.5.ebuild, +chromium-5.0.335.0.ebuild:
35 + Version bump for dev channel release. Remove old.
36
37 23 Feb 2010; Raúl Porcel <armin76@g.o> chromium-5.0.322.2.ebuild,
38 chromium-9999.ebuild:
39
40
41
42 1.1 www-client/chromium/chromium-5.0.335.0.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-5.0.335.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-5.0.335.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: chromium-5.0.335.0.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.335.0.ebuild,v 1.1 2010/02/25 09:06:18 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/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 # Prevent the make build from filling entire disk space on some systems,
125 # bug 297273.
126 epatch "${FILESDIR}"/${PN}-fix-make-build.patch
127
128 # Disable prefixing to allow linking against system zlib
129 sed -e '/^#include "mozzconf.h"$/d' \
130 -i third_party/zlib/zconf.h \
131 || die "zlib sed failed"
132 }
133
134 src_configure() {
135 export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser
136
137 # Fails to build on arm if we don't do this
138 use arm && append-flags -fno-tree-sink
139
140 # CFLAGS/LDFLAGS
141 mkdir -p "${S}"/.gyp
142 cat << EOF > "${S}"/.gyp/include.gypi
143 {
144 'target_defaults': {
145 'cflags': [ '${CFLAGS// /','}' ],
146 'ldflags': [ '${LDFLAGS// /','}' ],
147 },
148 }
149 EOF
150 export HOME="${S}"
151
152 # Configuration options (system libraries)
153 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"
154 # -Duse_system_sqlite=1 : http://crbug.com/22208
155 # Others still bundled: icu (not possible?), hunspell (changes required for sandbox support)
156
157 # Sandbox paths
158 myconf="${myconf} -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome"
159
160 if use amd64 ; then
161 myconf="${myconf} -Dtarget_arch=x64"
162 fi
163
164 if use x86 ; then
165 myconf="${myconf} -Dtarget_arch=ia32"
166 fi
167
168 if use arm; then
169 myconf="${myconf} -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
170 fi
171
172 if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then
173 myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44"
174 fi
175
176 build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed"
177 }
178
179 src_compile() {
180 emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \
181 rootdir="${S}" \
182 CC=$(tc-getCC) \
183 CXX=$(tc-getCXX) \
184 AR=$(tc-getAR) \
185 RANLIB=$(tc-getRANLIB) \
186 || die "compilation failed"
187 }
188
189 src_install() {
190 # Chromium does not have "install" target in the build system.
191 export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser
192
193 dodir ${CHROMIUM_HOME}
194
195 exeinto ${CHROMIUM_HOME}
196 doexe out/Release/chrome
197 doexe out/Release/chrome_sandbox
198 fperms 4755 ${CHROMIUM_HOME}/chrome_sandbox
199 doexe out/Release/xdg-settings
200 doexe "${FILESDIR}"/chromium-launcher.sh
201
202 insinto ${CHROMIUM_HOME}
203 doins out/Release/chrome.pak
204
205 doins -r out/Release/locales
206 doins -r out/Release/resources
207
208 # chrome.1 is for chromium --help
209 newman out/Release/chrome.1 chrome.1
210 newman out/Release/chrome.1 chromium.1
211
212 if use ffmpeg; then
213 # Chromium looks for these in its folder
214 # See media_posix.cc and base_paths_linux.cc
215 dosym /usr/$(get_libdir)/libavcodec.so.52 ${CHROMIUM_HOME}
216 dosym /usr/$(get_libdir)/libavformat.so.52 ${CHROMIUM_HOME}
217 dosym /usr/$(get_libdir)/libavutil.so.50 ${CHROMIUM_HOME}
218 fi
219
220 # Plugins symlink, optional wrt bug #301911
221 if use plugins-symlink; then
222 dosym /usr/$(get_libdir)/nsbrowser/plugins ${CHROMIUM_HOME}/plugins
223 fi
224
225 # Icon and desktop entry
226 newicon out/Release/product_logo_48.png ${PN}-browser.png
227 dosym ${CHROMIUM_HOME}/chromium-launcher.sh /usr/bin/chromium
228 make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser"
229 sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \
230 || die "desktop file sed failed"
231 # Gnome default application entry
232 dodir /usr/share/gnome-control-center/default-apps
233 insinto /usr/share/gnome-control-center/default-apps
234 doins "${FILESDIR}"/chromium.xml
235
236 }