1 |
anarchy 12/03/01 13:30:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: icecat-10.0-r2.ebuild |
5 |
Log: |
6 |
Fix libvpx-1.0.0 support, bug #401985 |
7 |
|
8 |
(Portage version: 2.1.10.49/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.114 www-client/icecat/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/ChangeLog?rev=1.114&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/ChangeLog?rev=1.114&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/ChangeLog?r1=1.113&r2=1.114 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/icecat/ChangeLog,v |
20 |
retrieving revision 1.113 |
21 |
retrieving revision 1.114 |
22 |
diff -u -r1.113 -r1.114 |
23 |
--- ChangeLog 20 Feb 2012 11:31:06 -0000 1.113 |
24 |
+++ ChangeLog 1 Mar 2012 13:30:34 -0000 1.114 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for www-client/icecat |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/icecat/ChangeLog,v 1.113 2012/02/20 11:31:06 tomka Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/icecat/ChangeLog,v 1.114 2012/03/01 13:30:34 anarchy Exp $ |
30 |
+ |
31 |
+*icecat-10.0-r2 (01 Mar 2012) |
32 |
+ |
33 |
+ 01 Mar 2012; Jory A. Pratt <anarchy@g.o> +icecat-10.0-r2.ebuild: |
34 |
+ Fix libvpx-1.0.0 support, bug #401985 |
35 |
|
36 |
20 Feb 2012; Thomas Kahle <tomka@g.o> icecat-10.0-r1.ebuild: |
37 |
marked x86 per bug 403183 |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-client/icecat/icecat-10.0-r2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/icecat-10.0-r2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/icecat/icecat-10.0-r2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: icecat-10.0-r2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/www-client/icecat/icecat-10.0-r2.ebuild,v 1.1 2012/03/01 13:30:34 anarchy Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
VIRTUALX_REQUIRED="pgo" |
54 |
WANT_AUTOCONF="2.1" |
55 |
|
56 |
# This list can be updated with scripts/get_langs.sh from the mozilla overlay |
57 |
MOZ_LANGS=(af ak ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en |
58 |
en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl |
59 |
gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO |
60 |
nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta ta-LK |
61 |
te th tr uk vi zh-CN zh-TW zu) |
62 |
|
63 |
# Convert the ebuild version to the upstream mozilla version, used by mozlinguas |
64 |
MOZ_PV="${PV/_alpha/a}" # Handle alpha for SRC_URI |
65 |
MOZ_PV="${MOZ_PV/_beta/b}" # Handle beta for SRC_URI |
66 |
MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI |
67 |
|
68 |
# Patch version |
69 |
PATCH="firefox-10.0-patches-0.6" |
70 |
# Upstream ftp release URI that's used by mozlinguas.eclass |
71 |
# We don't use the http mirror because it deletes old tarballs. |
72 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/firefox/releases" |
73 |
MOZ_LANGPACK_PREFIX="10.0.1/linux-i686/xpi/" |
74 |
|
75 |
inherit check-reqs flag-o-matic toolchain-funcs eutils gnome2-utils mozconfig-3 multilib pax-utils fdo-mime autotools python virtualx nsplugins mozlinguas |
76 |
|
77 |
DESCRIPTION="GNU project's edition of Mozilla Firefox" |
78 |
HOMEPAGE="http://www.gnu.org/software/gnuzilla/" |
79 |
|
80 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
81 |
SLOT="0" |
82 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
83 |
IUSE="+crashreporter +ipc pgo selinux system-sqlite +webm" |
84 |
|
85 |
# More URIs appended below... |
86 |
SRC_URI="${SRC_URI} |
87 |
mirror://gnu/gnuzilla/${MOZ_PV}/${PN}-${MOZ_PV}.tar.xz |
88 |
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.xz |
89 |
http://dev.gentoo.org/~polynomial-c/mozilla/ff1001.diff" |
90 |
|
91 |
ASM_DEPEND=">=dev-lang/yasm-1.1" |
92 |
|
93 |
# Mesa 7.10 needed for WebGL + bugfixes |
94 |
RDEPEND=" |
95 |
>=sys-devel/binutils-2.16.1 |
96 |
>=dev-libs/nss-3.13.1 |
97 |
>=dev-libs/nspr-4.8.8 |
98 |
>=dev-libs/glib-2.26:2 |
99 |
>=media-libs/mesa-7.10 |
100 |
media-libs/libpng[apng] |
101 |
virtual/libffi |
102 |
system-sqlite? ( >=dev-db/sqlite-3.7.7.1[fts3,secure-delete,threadsafe,unlock-notify,debug=] ) |
103 |
webm? ( >=media-libs/libvpx-1.0.0 |
104 |
media-libs/alsa-lib ) |
105 |
crashreporter? ( net-misc/curl ) |
106 |
selinux? ( sec-policy/selinux-mozilla )" |
107 |
# We don't use PYTHON_DEPEND/PYTHON_USE_WITH for some silly reason |
108 |
DEPEND="${RDEPEND} |
109 |
dev-util/pkgconfig |
110 |
pgo? ( |
111 |
=dev-lang/python-2*[sqlite] |
112 |
>=sys-devel/gcc-4.5 ) |
113 |
webm? ( x86? ( ${ASM_DEPEND} ) |
114 |
amd64? ( ${ASM_DEPEND} ) )" |
115 |
|
116 |
QA_PRESTRIPPED="usr/$(get_libdir)/${PN}/${PN}" |
117 |
|
118 |
pkg_setup() { |
119 |
moz_pkgsetup |
120 |
|
121 |
# Avoid PGO profiling problems due to enviroment leakage |
122 |
# These should *always* be cleaned up anyway |
123 |
unset DBUS_SESSION_BUS_ADDRESS \ |
124 |
DISPLAY \ |
125 |
ORBIT_SOCKETDIR \ |
126 |
SESSION_MANAGER \ |
127 |
XDG_SESSION_COOKIE \ |
128 |
XAUTHORITY |
129 |
|
130 |
if use pgo ; then |
131 |
einfo |
132 |
ewarn "You will do a double build for profile guided optimization." |
133 |
ewarn "This will result in your build taking at least twice as long as before." |
134 |
fi |
135 |
|
136 |
# Ensure we have enough disk space to compile |
137 |
if use pgo || use debug || use test ; then |
138 |
CHECKREQS_DISK_BUILD="8G" |
139 |
else |
140 |
CHECKREQS_DISK_BUILD="4G" |
141 |
fi |
142 |
check-reqs_pkg_setup |
143 |
} |
144 |
|
145 |
src_unpack() { |
146 |
unpack ${A} |
147 |
|
148 |
# Unpack language packs |
149 |
mozlinguas_src_unpack |
150 |
} |
151 |
|
152 |
src_prepare() { |
153 |
# Make this a 10.0.1 release |
154 |
epatch "${DISTDIR}"/ff1001.diff |
155 |
|
156 |
# Fix preferences location |
157 |
sed -i 's|defaults/pref/|defaults/preferences/|' browser/installer/packages-static || die "sed failed" |
158 |
# Apply our patches |
159 |
EPATCH_EXCLUDE="2000-firefox_gentoo_install_dirs.patch" \ |
160 |
EPATCH_SUFFIX="patch" \ |
161 |
EPATCH_FORCE="yes" \ |
162 |
epatch "${WORKDIR}/firefox" |
163 |
|
164 |
epatch "${FILESDIR}"/2000-icecat-6_gentoo_install_dirs.patch |
165 |
|
166 |
# Allow user to apply any additional patches without modifing ebuild |
167 |
epatch_user |
168 |
|
169 |
# Fix rebranding |
170 |
sed -i 's|\$(DIST)/bin/firefox|\$(DIST)/bin/icecat|' browser/app/Makefile.in |
171 |
|
172 |
# Enable gnomebreakpad |
173 |
if use debug ; then |
174 |
sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
175 |
"${S}"/build/unix/run-mozilla.sh || die "sed failed!" |
176 |
fi |
177 |
|
178 |
# Disable gnomevfs extension |
179 |
sed -i -e "s:gnomevfs::" "${S}/"browser/confvars.sh \ |
180 |
-e "s:gnomevfs::" "${S}/"xulrunner/confvars.sh \ |
181 |
|| die "Failed to remove gnomevfs extension" |
182 |
|
183 |
# Ensure that are plugins dir is enabled as default |
184 |
sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \ |
185 |
"${S}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!" |
186 |
|
187 |
# Fix sandbox violations during make clean, bug 372817 |
188 |
sed -e "s:\(/no-such-file\):${T}\1:g" \ |
189 |
-i "${S}"/config/rules.mk \ |
190 |
-i "${S}"/js/src/config/rules.mk \ |
191 |
-i "${S}"/nsprpub/configure{.in,} \ |
192 |
|| die |
193 |
|
194 |
#Fix compilation with curl-7.21.7 bug 376027 |
195 |
sed -e '/#include <curl\/types.h>/d' \ |
196 |
-i "${S}"/toolkit/crashreporter/google-breakpad/src/common/linux/http_upload.cc \ |
197 |
-i "${S}"/toolkit/crashreporter/google-breakpad/src/common/linux/libcurl_wrapper.cc \ |
198 |
-i "${S}"/config/system-headers \ |
199 |
-i "${S}"/js/src/config/system-headers || die "Sed failed" |
200 |
|
201 |
eautoreconf |
202 |
} |
203 |
|
204 |
src_configure() { |
205 |
# We will build our own .mozconfig |
206 |
rm "${S}"/.mozconfig |
207 |
|
208 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
209 |
MEXTENSIONS="default" |
210 |
|
211 |
#################################### |
212 |
# |
213 |
# mozconfig, CFLAGS and CXXFLAGS setup |
214 |
# |
215 |
#################################### |
216 |
|
217 |
mozconfig_init |
218 |
mozconfig_config |
219 |
|
220 |
# It doesn't compile on alpha without this LDFLAGS |
221 |
use alpha && append-ldflags "-Wl,--no-relax" |
222 |
|
223 |
# Specific settings for icecat |
224 |
echo "export MOZ_PHOENIX=1" >> "${S}"/.mozconfig |
225 |
echo "mk_add_options MOZ_PHOENIX=1" "${S}"/.mozconfig |
226 |
mozconfig_annotate '' --with-branding=browser/branding/unofficial |
227 |
mozconfig_annotate '' --disable-official-branding |
228 |
mozconfig_annotate '' --with-user-appdir=.icecat |
229 |
|
230 |
mozconfig_annotate '' --prefix="${EPREFIX}"/usr |
231 |
mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir) |
232 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
233 |
mozconfig_annotate '' --disable-gconf |
234 |
mozconfig_annotate '' --disable-mailnews |
235 |
mozconfig_annotate '' --enable-canvas |
236 |
mozconfig_annotate '' --enable-safe-browsing |
237 |
mozconfig_annotate '' --with-system-png |
238 |
mozconfig_annotate '' --enable-system-ffi |
239 |
|
240 |
# Other browser-specific settings |
241 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
242 |
mozconfig_annotate '' --target="${CTARGET:-${CHOST}}" |
243 |
|
244 |
mozconfig_use_enable system-sqlite |
245 |
|
246 |
# Allow for a proper pgo build |
247 |
if use pgo ; then |
248 |
echo "mk_add_options PROFILE_GEN_SCRIPT='\$(PYTHON) \$(OBJDIR)/_profile/pgo/profileserver.py'" >> "${S}"/.mozconfig |
249 |
fi |
250 |
|
251 |
# Finalize and report settings |
252 |
mozconfig_final |
253 |
|
254 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
255 |
append-cxxflags -fno-stack-protector |
256 |
elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]]; then |
257 |
if use amd64 || use x86; then |
258 |
append-flags -mno-avx |
259 |
fi |
260 |
fi |
261 |
} |
262 |
|
263 |
src_compile() { |
264 |
if use pgo; then |
265 |
addpredict /root |
266 |
addpredict /etc/gconf |
267 |
# Reset and cleanup environment variables used by GNOME/XDG |
268 |
gnome2_environment_reset |
269 |
|
270 |
# icecat tries to use dri stuff when it's run, see bug 380283 |
271 |
shopt -s nullglob |
272 |
cards=$(echo -n /dev/dri/card* | sed 's/ /:/g') |
273 |
if test -n "${cards}"; then |
274 |
# FOSS drivers are fine |
275 |
addpredict "${cards}" |
276 |
else |
277 |
cards=$(echo -n /dev/ati/card* /dev/nvidiactl* | sed 's/ /:/g') |
278 |
if test -n "${cards}"; then |
279 |
# Binary drivers seem to cause access violations anyway, so |
280 |
# let's use indirect rendering so that the device files aren't |
281 |
# touched at all. See bug 394715. |
282 |
export LIBGL_ALWAYS_INDIRECT=1 |
283 |
fi |
284 |
fi |
285 |
shopt -u nullglob |
286 |
|
287 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
288 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" \ |
289 |
Xemake -f client.mk profiledbuild || die "Xemake failed" |
290 |
else |
291 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
292 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" \ |
293 |
emake -f client.mk || die "emake failed" |
294 |
fi |
295 |
|
296 |
} |
297 |
|
298 |
src_install() { |
299 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
300 |
|
301 |
# MOZ_BUILD_ROOT, and hence OBJ_DIR change depending on arch, compiler, pgo, etc. |
302 |
local obj_dir="$(echo */config.log)" |
303 |
obj_dir="${obj_dir%/*}" |
304 |
cd "${S}/${obj_dir}" |
305 |
|
306 |
# Pax mark xpcshell for hardened support, only used for startupcache creation. |
307 |
pax-mark m "${S}/${obj_dir}"/dist/bin/xpcshell |
308 |
|
309 |
# Add our default prefs for firefox + xulrunner |
310 |
cp "${FILESDIR}"/gentoo-default-prefs.js-1 \ |
311 |
"${S}/${obj_dir}/dist/bin/defaults/pref/all-gentoo.js" || die |
312 |
|
313 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" \ |
314 |
emake DESTDIR="${D}" install || die "emake install failed" |
315 |
|
316 |
# Install language packs |
317 |
mozlinguas_src_install |
318 |
|
319 |
local size sizes icon_path icon name |
320 |
|
321 |
sizes="16 32 48" |
322 |
icon_path="${S}/browser/branding/unofficial" |
323 |
|
324 |
# Install icons and .desktop for menu entry |
325 |
for size in ${sizes}; do |
326 |
insinto "/usr/share/icons/hicolor/${size}x${size}/apps" |
327 |
newins "${icon_path}/default${size}.png" "${PN}.png" || die |
328 |
done |
329 |
# The 128x128 icon has a different name |
330 |
insinto "/usr/share/icons/hicolor/128x128/apps" |
331 |
newins "${icon_path}/mozicon128.png" "${PN}.png" || die |
332 |
# Install a 48x48 icon into /usr/share/pixmaps for legacy DEs |
333 |
newicon "${icon_path}/content/icon48.png" "${PN}.png" || die |
334 |
newmenu "${FILESDIR}/icon/${PN}.desktop" "${PN}.desktop" || die |
335 |
sed -e "/^Icon/s:${PN}-icon:${PN}:" -i \ |
336 |
"${ED}/usr/share/applications/${PN}.desktop" || die |
337 |
|
338 |
# Add StartupNotify=true bug 237317 |
339 |
if use startup-notification ; then |
340 |
echo "StartupNotify=true" >> "${ED}/usr/share/applications/${PN}.desktop" |
341 |
fi |
342 |
|
343 |
# Required in order to use plugins and even run firefox on hardened. |
344 |
pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{${PN}{,-bin},plugin-container} |
345 |
|
346 |
# Plugins dir |
347 |
share_plugins_dir |
348 |
} |
349 |
|
350 |
pkg_preinst() { |
351 |
gnome2_icon_savelist |
352 |
} |
353 |
|
354 |
pkg_postinst() { |
355 |
# Update mimedb for the new .desktop file |
356 |
fdo-mime_desktop_database_update |
357 |
gnome2_icon_cache_update |
358 |
} |
359 |
|
360 |
pkg_postrm() { |
361 |
gnome2_icon_cache_update |
362 |
} |