1 |
phajdan.jr 10/01/07 16:30:07 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: chromium-4.0.288.1.ebuild |
5 |
Log: |
6 |
Version bump for 4.0.288.1 dev channel release. |
7 |
(Portage version: 2.1.6.13/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.35 www-client/chromium/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?rev=1.35&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?rev=1.35&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?r1=1.34&r2=1.35 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
19 |
retrieving revision 1.34 |
20 |
retrieving revision 1.35 |
21 |
diff -u -r1.34 -r1.35 |
22 |
--- ChangeLog 7 Jan 2010 16:01:23 -0000 1.34 |
23 |
+++ ChangeLog 7 Jan 2010 16:30:07 -0000 1.35 |
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.34 2010/01/07 16:01:23 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.35 2010/01/07 16:30:07 phajdan.jr Exp $ |
29 |
+ |
30 |
+*chromium-4.0.288.1 (07 Jan 2010) |
31 |
+ |
32 |
+ 07 Jan 2010; Pawel Hajdan jr <phajdan.jr@g.o> |
33 |
+ +chromium-4.0.288.1.ebuild: |
34 |
+ Version bump for dev channel release. |
35 |
|
36 |
07 Jan 2010; Raúl Porcel <armin76@g.o> |
37 |
+files/chromium-drop_armel_m32.patch, chromium-9999.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-client/chromium/chromium-4.0.288.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-4.0.288.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-4.0.288.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: chromium-4.0.288.1.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-4.0.288.1.ebuild,v 1.1 2010/01/07 16:30:07 phajdan.jr Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
inherit eutils multilib toolchain-funcs |
54 |
|
55 |
DESCRIPTION="Open-source version of Google Chrome web browser" |
56 |
HOMEPAGE="http://chromium.org/" |
57 |
#SRC_URI="http://build.chromium.org/buildbot/archives/${P}.tar.bz2" |
58 |
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
59 |
|
60 |
LICENSE="BSD" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64 ~x86" |
63 |
IUSE="+ffmpeg" |
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-fonts/corefonts |
72 |
>=media-libs/alsa-lib-1.0.19 |
73 |
media-libs/jpeg |
74 |
media-libs/libpng |
75 |
ffmpeg? ( >=media-video/ffmpeg-0.5_p19787 ) |
76 |
sys-libs/zlib |
77 |
>=x11-libs/gtk+-2.14.7 |
78 |
|| ( |
79 |
x11-themes/gnome-icon-theme |
80 |
x11-themes/tango-icon-theme |
81 |
x11-themes/xfce4-icon-theme |
82 |
)" |
83 |
# dev-db/sqlite:3 |
84 |
DEPEND="${RDEPEND} |
85 |
>=dev-util/gperf-3.0.3 |
86 |
>=dev-util/pkgconfig-0.23" |
87 |
|
88 |
src_prepare() { |
89 |
# Gentoo uses .kde4, not .kde |
90 |
sed -e 's/\.kde/.kde4/' -i net/proxy/proxy_config_service_linux.cc \ |
91 |
|| die "kde proxy sed failed" |
92 |
# Changing this in ~/include.gypi does not work |
93 |
sed -i "s/'-Werror'/''/" build/common.gypi || die "Werror sed failed" |
94 |
# Prevent automatic -march=pentium4 -msse2 enabling on x86, http://crbug.com/9007 |
95 |
epatch "${FILESDIR}"/${PN}-drop_sse2.patch |
96 |
# Add configuration flag to use system libevent |
97 |
epatch "${FILESDIR}"/${PN}-use_system_libevent-1.4.13.patch |
98 |
|
99 |
# Disable prefixing to allow linking against system zlib |
100 |
sed -e '/^#include "mozzconf.h"$/d' \ |
101 |
-i third_party/{,WebKit/WebCore/platform/image-decoders}/zlib/zconf.h \ |
102 |
|| die "zlib sed failed" |
103 |
} |
104 |
|
105 |
src_configure() { |
106 |
export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser |
107 |
|
108 |
# CFLAGS/LDFLAGS |
109 |
mkdir -p "${S}"/.gyp |
110 |
cat << EOF > "${S}"/.gyp/include.gypi |
111 |
{ |
112 |
'target_defaults': { |
113 |
'cflags': [ '${CFLAGS// /','}' ], |
114 |
'ldflags': [ '${LDFLAGS// /','}' ], |
115 |
}, |
116 |
} |
117 |
EOF |
118 |
export HOME="${S}" |
119 |
|
120 |
# Configuration options (system libraries) |
121 |
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" |
122 |
# -Duse_system_sqlite=1 : http://crbug.com/22208 |
123 |
# Others still bundled: icu (not possible?), hunspell (changes required for sandbox support) |
124 |
|
125 |
# Sandbox paths |
126 |
myconf="${myconf} -Dlinux_sandbox_path=${CHROMIUM_HOME}/chrome_sandbox -Dlinux_sandbox_chrome_path=${CHROMIUM_HOME}/chrome" |
127 |
|
128 |
if [[ "$ABI" == "amd64" ]] ; then |
129 |
myconf="${myconf} -Dtarget_arch=x64" |
130 |
fi |
131 |
|
132 |
if [[ "$ABI" == "x86" ]] ; then |
133 |
myconf="${myconf} -Dtarget_arch=ia32" |
134 |
fi |
135 |
|
136 |
if use arm; then |
137 |
myconf="${myconf} -Dtarget_arch=arm -Ddisable_nacl=1 -Dv8_use_snapshot=false -Dlinux_use_tcmalloc=0" |
138 |
fi |
139 |
|
140 |
if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then |
141 |
myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44" |
142 |
fi |
143 |
|
144 |
build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed" |
145 |
} |
146 |
|
147 |
src_compile() { |
148 |
emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \ |
149 |
rootdir="${S}" \ |
150 |
CC=$(tc-getCC) \ |
151 |
CXX=$(tc-getCXX) \ |
152 |
AR=$(tc-getAR) \ |
153 |
RANLIB=$(tc-getRANLIB) \ |
154 |
|| die "compilation failed" |
155 |
} |
156 |
|
157 |
src_install() { |
158 |
# Chromium does not have "install" target in the build system. |
159 |
export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser |
160 |
|
161 |
dodir ${CHROMIUM_HOME} |
162 |
|
163 |
exeinto ${CHROMIUM_HOME} |
164 |
doexe out/Release/chrome |
165 |
doexe out/Release/chrome_sandbox |
166 |
fperms 4755 ${CHROMIUM_HOME}/chrome_sandbox |
167 |
doexe out/Release/xdg-settings |
168 |
doexe "${FILESDIR}"/chromium-launcher.sh |
169 |
|
170 |
insinto ${CHROMIUM_HOME} |
171 |
doins out/Release/chrome.pak |
172 |
|
173 |
doins -r out/Release/locales |
174 |
doins -r out/Release/resources |
175 |
|
176 |
# chrome.1 is for chromium --help |
177 |
newman out/Release/chrome.1 chrome.1 |
178 |
newman out/Release/chrome.1 chromium.1 |
179 |
|
180 |
if use ffmpeg; then |
181 |
# Chromium looks for these in its folder |
182 |
# See media_posix.cc and base_paths_linux.cc |
183 |
dosym /usr/$(get_libdir)/libavcodec.so.52 ${CHROMIUM_HOME} |
184 |
dosym /usr/$(get_libdir)/libavformat.so.52 ${CHROMIUM_HOME} |
185 |
dosym /usr/$(get_libdir)/libavutil.so.50 ${CHROMIUM_HOME} |
186 |
fi |
187 |
|
188 |
# Plugins symlink |
189 |
dosym /usr/$(get_libdir)/nsbrowser/plugins ${CHROMIUM_HOME}/plugins |
190 |
|
191 |
newicon out/Release/product_logo_48.png ${PN}-browser.png |
192 |
dosym ${CHROMIUM_HOME}/chromium-launcher.sh /usr/bin/chromium |
193 |
make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" |
194 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \ |
195 |
|| die "desktop file sed failed" |
196 |
} |