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.375.125.ebuild ChangeLog
Date: Mon, 26 Jul 2010 23:24:16
Message-Id: 20100726232412.240762CE15@corvid.gentoo.org
1 phajdan.jr 10/07/26 23:24:12
2
3 Modified: ChangeLog
4 Added: chromium-5.0.375.125.ebuild
5 Log:
6 Version bump for stable channel release.
7 (Portage version: 2.1.8.3/cvs/Linux i686)
8
9 Revision Changes Path
10 1.141 www-client/chromium/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.141&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?rev=1.141&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/ChangeLog?r1=1.140&r2=1.141
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
19 retrieving revision 1.140
20 retrieving revision 1.141
21 diff -u -r1.140 -r1.141
22 --- ChangeLog 22 Jul 2010 00:14:21 -0000 1.140
23 +++ ChangeLog 26 Jul 2010 23:24:11 -0000 1.141
24 @@ -1,6 +1,12 @@
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.140 2010/07/22 00:14:21 phajdan.jr Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.141 2010/07/26 23:24:11 phajdan.jr Exp $
29 +
30 +*chromium-5.0.375.125 (26 Jul 2010)
31 +
32 + 26 Jul 2010; Pawel Hajdan jr <phajdan.jr@g.o>
33 + +chromium-5.0.375.125.ebuild:
34 + Version bump for stable channel release.
35
36 *chromium-6.0.472.0 (22 Jul 2010)
37
38
39
40
41 1.1 www-client/chromium/chromium-5.0.375.125.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-5.0.375.125.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/chromium/chromium-5.0.375.125.ebuild?rev=1.1&content-type=text/plain
45
46 Index: chromium-5.0.375.125.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-5.0.375.125.ebuild,v 1.1 2010/07/26 23:24:11 phajdan.jr Exp $
51
52 EAPI="2"
53
54 inherit eutils flag-o-matic multilib pax-utils 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="+plugins-symlink"
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[threads]
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-apps/xmessage
92 x11-misc/xdg-utils
93 virtual/ttf-fonts"
94
95 src_prepare() {
96 # Prevent automatic -march=pentium4 -msse2 enabling on x86, http://crbug.com/9007
97 epatch "${FILESDIR}"/${PN}-drop_sse2-r0.patch
98
99 # Allow supporting more media types.
100 epatch "${FILESDIR}"/${PN}-20100122-ubuntu-html5-video-mimetypes.patch
101
102 # Fix build failure with libpng-1.4, bug 310959.
103 epatch "${FILESDIR}"/${PN}-libpng-1.4.patch
104 }
105
106 src_configure() {
107 export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser
108
109 # Workaround for bug #318969.
110 # TODO: remove when http://crbug.com/43778 is fixed.
111 append-flags -D__STDC_CONSTANT_MACROS
112
113 # Fails to build on arm if we don't do this
114 use arm && append-flags -fno-tree-sink
115
116 # Configuration options (system libraries)
117 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"
118 # -Duse_system_sqlite=1 : http://crbug.com/22208
119 # Others still bundled: icu (not possible?), hunspell (changes required for sandbox support)
120
121 # Sandbox paths
122 myconf="${myconf} -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome"
123
124 # Disable the V8 snapshot. It breaks the build on hardened (bug #301880),
125 # and the performance gain isn't worth it.
126 myconf="${myconf} -Dv8_use_snapshot=0"
127
128 # Disable tcmalloc memory allocator. It causes problems,
129 # for example bug #320419.
130 myconf="${myconf} -Dlinux_use_tcmalloc=0"
131
132 # Disable gpu rendering, it is incompatible with nvidia-drivers,
133 # bug #319331.
134 myconf="${myconf} -Denable_gpu=0"
135
136 # Use target arch detection logic from bug #296917.
137 local myarch="$ABI"
138 [[ $myarch = "" ]] && myarch="$ARCH"
139
140 if [[ $myarch = amd64 ]] ; then
141 myconf="${myconf} -Dtarget_arch=x64"
142 elif [[ $myarch = x86 ]] ; then
143 myconf="${myconf} -Dtarget_arch=ia32"
144 elif [[ $myarch = arm ]] ; then
145 myconf="${myconf} -Dtarget_arch=arm -Ddisable_nacl=1 -Dlinux_use_tcmalloc=0"
146 else
147 die "Failed to determine target arch, got '$myarch'."
148 fi
149
150 if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then
151 myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44"
152 fi
153
154 # Make sure that -Werror doesn't get added to CFLAGS by the build system.
155 # Depending on GCC version the warnings are different and we don't want
156 # the build to fail because of that.
157 myconf="${myconf} -Dwerror="
158
159 build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed"
160 }
161
162 src_compile() {
163 emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \
164 rootdir="${S}" \
165 CC=$(tc-getCC) \
166 CXX=$(tc-getCXX) \
167 AR=$(tc-getAR) \
168 RANLIB=$(tc-getRANLIB) \
169 || die "compilation failed"
170 }
171
172 src_install() {
173 # Chromium does not have "install" target in the build system.
174 export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser
175
176 dodir ${CHROMIUM_HOME}
177
178 exeinto ${CHROMIUM_HOME}
179 pax-mark m out/Release/chrome
180 doexe out/Release/chrome
181 doexe out/Release/chrome_sandbox
182 fperms 4755 ${CHROMIUM_HOME}/chrome_sandbox
183 doexe out/Release/xdg-settings
184 doexe "${FILESDIR}"/chromium-launcher.sh
185
186 insinto ${CHROMIUM_HOME}
187 doins out/Release/chrome.pak
188
189 doins -r out/Release/locales
190 doins -r out/Release/resources
191
192 # chrome.1 is for chromium --help
193 newman out/Release/chrome.1 chrome.1
194 newman out/Release/chrome.1 chromium.1
195
196 # Chromium looks for these in its folder
197 # See media_posix.cc and base_paths_linux.cc
198 dosym /usr/$(get_libdir)/libavcodec.so.52 ${CHROMIUM_HOME}
199 dosym /usr/$(get_libdir)/libavformat.so.52 ${CHROMIUM_HOME}
200 dosym /usr/$(get_libdir)/libavutil.so.50 ${CHROMIUM_HOME}
201
202 # Plugins symlink, optional wrt bug #301911
203 if use plugins-symlink; then
204 dosym /usr/$(get_libdir)/nsbrowser/plugins ${CHROMIUM_HOME}/plugins
205 fi
206
207 # Icon and desktop entry
208 newicon out/Release/product_logo_48.png ${PN}-browser.png
209 dosym ${CHROMIUM_HOME}/chromium-launcher.sh /usr/bin/chromium
210 make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser"
211 sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \
212 || die "desktop file sed failed"
213 # Gnome default application entry
214 dodir /usr/share/gnome-control-center/default-apps
215 insinto /usr/share/gnome-control-center/default-apps
216 doins "${FILESDIR}"/chromium.xml
217 }