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: chromium-4.0.219.4_p27359.ebuild ChangeLog
Date: Mon, 28 Sep 2009 22:57:21
Message-Id: E1MsP9j-0005Ou-Ae@stork.gentoo.org
1 voyageur 09/09/28 22:57:19
2
3 Modified: ChangeLog
4 Added: chromium-4.0.219.4_p27359.ebuild
5 Log:
6 Version bump, this finally fixes the useless automatic recreation of ~/Downloads
7 (Portage version: 2.2_rc42/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.9 www-client/chromium/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?rev=1.9&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?rev=1.9&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?r1=1.8&r2=1.9
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v
19 retrieving revision 1.8
20 retrieving revision 1.9
21 diff -u -r1.8 -r1.9
22 --- ChangeLog 23 Sep 2009 22:26:10 -0000 1.8
23 +++ ChangeLog 28 Sep 2009 22:57:18 -0000 1.9
24 @@ -1,6 +1,13 @@
25 # ChangeLog for www-client/chromium
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.8 2009/09/23 22:26:10 voyageur Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.9 2009/09/28 22:57:18 voyageur Exp $
29 +
30 +*chromium-4.0.219.4_p27359 (28 Sep 2009)
31 +
32 + 28 Sep 2009; Bernard Cafarelli <voyageur@g.o>
33 + +chromium-4.0.219.4_p27359.ebuild:
34 + Version bump, this finally fixes the useless automatic recreation of
35 + ~/Downloads
36
37 23 Sep 2009; Bernard Cafarelli <voyageur@g.o>
38 chromium-4.0.212.0_p26805.ebuild:
39
40
41
42 1.1 www-client/chromium/chromium-4.0.219.4_p27359.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-4.0.219.4_p27359.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-4.0.219.4_p27359.ebuild?rev=1.1&content-type=text/plain
46
47 Index: chromium-4.0.219.4_p27359.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-4.0.219.4_p27359.ebuild,v 1.1 2009/09/28 22:57:18 voyageur Exp $
52
53 EAPI="2"
54 inherit eutils multilib 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 ~x86"
64 IUSE=""
65
66 RDEPEND="app-arch/bzip2
67 dev-libs/libxml2
68 dev-libs/libxslt
69 >=dev-libs/nss-3.12.2
70 >=gnome-base/gconf-2.24.0
71 media-fonts/corefonts
72 >=media-libs/alsa-lib-1.0.19
73 media-libs/jpeg
74 media-libs/libpng
75 >=media-video/ffmpeg-0.5_p19787
76 sys-libs/zlib
77 >=x11-libs/gtk+-2.14.7"
78 # >=dev-libs/libevent-1.4.13
79 # dev-db/sqlite:3
80 DEPEND="${RDEPEND}
81 >=dev-util/gperf-3.0.3
82 >=dev-util/pkgconfig-0.23"
83
84 export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser
85
86 src_prepare() {
87 # Needed until we add back "rootdir=.", see below
88 for i in app webkit third_party/ffmpeg build/util base chrome v8/tools/gyp
89 do
90 ln -s "${S}"/out ${i}/out
91 done
92
93 # Changing this in ~/include.gypi does not work
94 sed -i "s/'-Werror'/''/" build/common.gypi || die "Werror sed failed"
95 # Prevent automatic -march=pentium4 -msse2 enabling on x86, http://crbug.com/9007
96 epatch "${FILESDIR}"/${PN}-drop_sse2.patch
97 # Add configuration flag to use system libevent
98 epatch "${FILESDIR}"/${PN}-use_system_libevent.patch
99
100 # Display correct svn revision in about box
101 echo "${PV/[0-9.]*\_p}" > build/LASTCHANGE.in || die "setting revision failed"
102 }
103
104 src_configure() {
105 # CFLAGS/LDFLAGS
106 mkdir -p "${S}"/.gyp
107 cat << EOF > "${S}"/.gyp/include.gypi
108 {
109 'target_defaults': {
110 'cflags': [ '${CFLAGS// /','}' ],
111 'ldflags': [ '${LDFLAGS// /','}' ],
112 },
113 }
114 EOF
115 export HOME="${S}"
116
117 # Configuration options (system libraries)
118 local myconf="-Duse_system_bzip2=1 -Duse_system_zlib=1 -Duse_system_libjpeg=1 -Duse_system_libpng=1 -Duse_system_libxml=1 -Duse_system_libxslt=1 -Duse_system_ffmpeg=1 -Dlinux_use_tcmalloc=1"
119 # -Duse_system_libevent=1: http://crbug.com/22140
120 # -Duse_system_sqlite=1 : http://crbug.com/22208
121 # Others still bundled: icu (not possible?), hunspell (changes required for sandbox support)
122
123 # Sandbox paths
124 myconf="${myconf} -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome"
125
126 if use amd64; then
127 myconf="${myconf} -Dtarget_arch=x64"
128 fi
129 if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then
130 myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44"
131 fi
132
133 build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed"
134 }
135
136 src_compile() {
137 # Broken for "Argument list too long":
138 # http://code.google.com/p/chromium/issues/detail?id=19854
139 # http://code.google.com/p/gyp/issues/detail?id=71
140 # When this is fixed, remove the src_prepare
141 # and add back "rootdir=${S}"
142 emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \
143 CC=$(tc-getCC) \
144 CXX=$(tc-getCXX) \
145 AR=$(tc-getAR) \
146 RANLIB=$(tc-getRANLIB) \
147 || die "compilation failed"
148 }
149
150 src_install() {
151 # Chromium does not have "install" target in the build system.
152
153 dodir ${CHROMIUM_HOME}
154
155 exeinto ${CHROMIUM_HOME}
156 doexe out/Release/chrome
157 doexe out/Release/chrome_sandbox
158 fperms 4755 ${CHROMIUM_HOME}/chrome_sandbox
159 doexe out/Release/xdg-settings
160 doexe "${FILESDIR}"/chromium-launcher.sh
161
162 insinto ${CHROMIUM_HOME}
163 doins out/Release/chrome.pak
164
165 doins -r out/Release/locales
166 doins -r out/Release/resources
167 doins -r out/Release/themes
168
169 newman out/Release/chromium-browser.1 chrome.1
170
171 # Chromium looks for these in its folder
172 # See media_posix.cc and base_paths_linux.cc
173 dosym /usr/$(get_libdir)/libavcodec.so.52 ${CHROMIUM_HOME}
174 dosym /usr/$(get_libdir)/libavformat.so.52 ${CHROMIUM_HOME}
175 dosym /usr/$(get_libdir)/libavutil.so.50 ${CHROMIUM_HOME}
176
177 # Plugins symlink
178 dosym /usr/$(get_libdir)/nsbrowser/plugins ${CHROMIUM_HOME}/plugins
179
180 newicon out/Release/product_logo_48.png ${PN}-browser.png
181 dosym ${CHROMIUM_HOME}/chromium-launcher.sh /usr/bin/chromium
182 make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser"
183 }