1 |
voyageur 09/12/01 13:27:47 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: chromium-4.0.260.0.ebuild |
5 |
Removed: chromium-4.0.240.0.ebuild |
6 |
Log: |
7 |
Version bump, enables bookmarks sync by default, allows again extensions to access file:// elements (adblock+), external libevent disabled as it crashes with it |
8 |
(Portage version: 2.2_rc54/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.27 www-client/chromium/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?rev=1.27&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?rev=1.27&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/ChangeLog?r1=1.26&r2=1.27 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v |
20 |
retrieving revision 1.26 |
21 |
retrieving revision 1.27 |
22 |
diff -u -r1.26 -r1.27 |
23 |
--- ChangeLog 24 Nov 2009 10:41:12 -0000 1.26 |
24 |
+++ ChangeLog 1 Dec 2009 13:27:46 -0000 1.27 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for www-client/chromium |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.26 2009/11/24 10:41:12 voyageur Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/ChangeLog,v 1.27 2009/12/01 13:27:46 voyageur Exp $ |
30 |
+ |
31 |
+*chromium-4.0.260.0 (01 Dec 2009) |
32 |
+ |
33 |
+ 01 Dec 2009; Bernard Cafarelli <voyageur@g.o> |
34 |
+ -chromium-4.0.240.0.ebuild, +chromium-4.0.260.0.ebuild: |
35 |
+ Version bump, enables bookmarks sync by default, allows again extensions |
36 |
+ to access file:// elements (adblock+), external libevent disabled as it |
37 |
+ crashes with it |
38 |
|
39 |
24 Nov 2009; Bernard Cafarelli <voyageur@g.o> |
40 |
chromium-4.0.251.0.ebuild, chromium-9999.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 www-client/chromium/chromium-4.0.260.0.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-4.0.260.0.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/chromium/chromium-4.0.260.0.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: chromium-4.0.260.0.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2009 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/www-client/chromium/chromium-4.0.260.0.ebuild,v 1.1 2009/12/01 13:27:46 voyageur Exp $ |
54 |
|
55 |
EAPI="2" |
56 |
inherit eutils multilib toolchain-funcs |
57 |
|
58 |
DESCRIPTION="Open-source version of Google Chrome web browser" |
59 |
HOMEPAGE="http://chromium.org/" |
60 |
#SRC_URI="http://build.chromium.org/buildbot/archives/${P}.tar.bz2" |
61 |
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
62 |
|
63 |
LICENSE="BSD" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~x86" |
66 |
IUSE="+ffmpeg" |
67 |
|
68 |
RDEPEND="app-arch/bzip2 |
69 |
dev-libs/libxml2 |
70 |
dev-libs/libxslt |
71 |
>=dev-libs/nss-3.12.2 |
72 |
>=gnome-base/gconf-2.24.0 |
73 |
media-fonts/corefonts |
74 |
>=media-libs/alsa-lib-1.0.19 |
75 |
media-libs/jpeg |
76 |
media-libs/libpng |
77 |
ffmpeg? ( >=media-video/ffmpeg-0.5_p19787 ) |
78 |
sys-libs/zlib |
79 |
>=x11-libs/gtk+-2.14.7 |
80 |
x11-themes/gnome-icon-theme" |
81 |
# dev-db/sqlite:3 |
82 |
DEPEND="${RDEPEND} |
83 |
>=dev-util/gperf-3.0.3 |
84 |
>=dev-util/pkgconfig-0.23" |
85 |
|
86 |
export CHROMIUM_HOME=/usr/$(get_libdir)/chromium-browser |
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 |
|
97 |
# Disable prefixing to allow linking against system zlib |
98 |
sed -e '/^#include "mozzconf.h"$/d' \ |
99 |
-i third_party/{,WebKit/WebCore/platform/image-decoders}/zlib/zconf.h \ |
100 |
|| die "zlib sed failed" |
101 |
} |
102 |
|
103 |
src_configure() { |
104 |
# CFLAGS/LDFLAGS |
105 |
mkdir -p "${S}"/.gyp |
106 |
cat << EOF > "${S}"/.gyp/include.gypi |
107 |
{ |
108 |
'target_defaults': { |
109 |
'cflags': [ '${CFLAGS// /','}' ], |
110 |
'ldflags': [ '${LDFLAGS// /','}' ], |
111 |
}, |
112 |
} |
113 |
EOF |
114 |
export HOME="${S}" |
115 |
|
116 |
# Configuration options (system libraries) |
117 |
local myconf="-Duse_system_zlib=1 -Duse_system_bzip2=1 -Duse_system_libjpeg=1 -Duse_system_libpng=1 -Duse_system_libxml=1 -Duse_system_libxslt=1 -Duse_system_ffmpeg=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 |
if use amd64; then |
125 |
myconf="${myconf} -Dtarget_arch=x64" |
126 |
fi |
127 |
if [[ "$(gcc-major-version)$(gcc-minor-version)" == "44" ]]; then |
128 |
myconf="${myconf} -Dno_strict_aliasing=1 -Dgcc_version=44" |
129 |
fi |
130 |
|
131 |
build/gyp_chromium -f make build/all.gyp ${myconf} --depth=. || die "gyp failed" |
132 |
} |
133 |
|
134 |
src_compile() { |
135 |
emake -r V=1 chrome chrome_sandbox BUILDTYPE=Release \ |
136 |
rootdir="${S}" \ |
137 |
CC=$(tc-getCC) \ |
138 |
CXX=$(tc-getCXX) \ |
139 |
AR=$(tc-getAR) \ |
140 |
RANLIB=$(tc-getRANLIB) \ |
141 |
|| die "compilation failed" |
142 |
} |
143 |
|
144 |
src_install() { |
145 |
# Chromium does not have "install" target in the build system. |
146 |
|
147 |
dodir ${CHROMIUM_HOME} |
148 |
|
149 |
exeinto ${CHROMIUM_HOME} |
150 |
doexe out/Release/chrome |
151 |
doexe out/Release/chrome_sandbox |
152 |
fperms 4755 ${CHROMIUM_HOME}/chrome_sandbox |
153 |
doexe out/Release/xdg-settings |
154 |
doexe "${FILESDIR}"/chromium-launcher.sh |
155 |
|
156 |
insinto ${CHROMIUM_HOME} |
157 |
doins out/Release/chrome.pak |
158 |
|
159 |
doins -r out/Release/locales |
160 |
doins -r out/Release/resources |
161 |
|
162 |
# chrome.1 is for chromium --help |
163 |
newman out/Release/chrome.1 chrome.1 |
164 |
newman out/Release/chrome.1 chromium.1 |
165 |
|
166 |
if use ffmpeg; then |
167 |
# Chromium looks for these in its folder |
168 |
# See media_posix.cc and base_paths_linux.cc |
169 |
dosym /usr/$(get_libdir)/libavcodec.so.52 ${CHROMIUM_HOME} |
170 |
dosym /usr/$(get_libdir)/libavformat.so.52 ${CHROMIUM_HOME} |
171 |
dosym /usr/$(get_libdir)/libavutil.so.50 ${CHROMIUM_HOME} |
172 |
fi |
173 |
|
174 |
# Plugins symlink |
175 |
dosym /usr/$(get_libdir)/nsbrowser/plugins ${CHROMIUM_HOME}/plugins |
176 |
|
177 |
newicon out/Release/product_logo_48.png ${PN}-browser.png |
178 |
dosym ${CHROMIUM_HOME}/chromium-launcher.sh /usr/bin/chromium |
179 |
make_desktop_entry chromium "Chromium" ${PN}-browser "Network;WebBrowser" |
180 |
sed -e "/^Exec/s/$/ %U/" -i "${D}"/usr/share/applications/*.desktop \ |
181 |
|| die "desktop file sed failed" |
182 |
} |