1 |
polynomial-c 13/05/30 09:06:07 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: seamonkey-2.18_beta4.ebuild |
5 |
Log: |
6 |
Version bump to latest beta as upstream skipped release of 2.18 version |
7 |
|
8 |
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
9 |
|
10 |
Revision Changes Path |
11 |
1.16 www-client/seamonkey/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/metadata.xml?rev=1.16&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/metadata.xml?rev=1.16&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/metadata.xml?r1=1.15&r2=1.16 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey/metadata.xml,v |
20 |
retrieving revision 1.15 |
21 |
retrieving revision 1.16 |
22 |
diff -u -r1.15 -r1.16 |
23 |
--- metadata.xml 15 Mar 2013 15:30:33 -0000 1.15 |
24 |
+++ metadata.xml 30 May 2013 09:06:07 -0000 1.16 |
25 |
@@ -13,6 +13,8 @@ |
26 |
<flag name="ipc">Use inter-process communication between tabs and plugins. |
27 |
Allows for greater stability in case of plugin crashes</flag> |
28 |
<flag name='roaming'>Build roaming extension support (default on)</flag> |
29 |
+ <flag name="system-cairo">Use the system-wide <pkg>x11-libs/cairo</pkg> |
30 |
+ Use system cairo instead of bundled.</flag> |
31 |
<flag name="system-jpeg">Use the system-wide <pkg>media-libs/libjpeg-turbo</pkg> |
32 |
Use system jpeg instead of bundled.</flag> |
33 |
<flag name='system-sqlite'>Use the system-wide <pkg>dev-db/sqlite</pkg> |
34 |
|
35 |
|
36 |
|
37 |
1.452 www-client/seamonkey/ChangeLog |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.452&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.452&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?r1=1.451&r2=1.452 |
42 |
|
43 |
Index: ChangeLog |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v |
46 |
retrieving revision 1.451 |
47 |
retrieving revision 1.452 |
48 |
diff -u -r1.451 -r1.452 |
49 |
--- ChangeLog 16 Apr 2013 05:59:17 -0000 1.451 |
50 |
+++ ChangeLog 30 May 2013 09:06:07 -0000 1.452 |
51 |
@@ -1,6 +1,12 @@ |
52 |
# ChangeLog for www-client/seamonkey |
53 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.451 2013/04/16 05:59:17 polynomial-c Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.452 2013/05/30 09:06:07 polynomial-c Exp $ |
56 |
+ |
57 |
+*seamonkey-2.18_beta4 (30 May 2013) |
58 |
+ |
59 |
+ 30 May 2013; Lars Wendler <polynomial-c@g.o> |
60 |
+ +seamonkey-2.18_beta4.ebuild: |
61 |
+ Version bump to latest beta as upstream skipped release of 2.18 version. |
62 |
|
63 |
16 Apr 2013; Lars Wendler <polynomial-c@g.o> seamonkey-2.17.ebuild, |
64 |
seamonkey-2.17.1.ebuild: |
65 |
|
66 |
|
67 |
|
68 |
1.1 www-client/seamonkey/seamonkey-2.18_beta4.ebuild |
69 |
|
70 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.18_beta4.ebuild?rev=1.1&view=markup |
71 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.18_beta4.ebuild?rev=1.1&content-type=text/plain |
72 |
|
73 |
Index: seamonkey-2.18_beta4.ebuild |
74 |
=================================================================== |
75 |
# Copyright 1999-2013 Gentoo Foundation |
76 |
# Distributed under the terms of the GNU General Public License v2 |
77 |
# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/seamonkey-2.18_beta4.ebuild,v 1.1 2013/05/30 09:06:07 polynomial-c Exp $ |
78 |
|
79 |
EAPI="3" |
80 |
WANT_AUTOCONF="2.1" |
81 |
|
82 |
# This list can be updated with scripts/get_langs.sh from the mozilla overlay |
83 |
MOZ_LANGS=(be ca cs de en en-GB en-US es-AR es-ES fi fr gl hu it ja lt nb-NO nl |
84 |
pl pt-PT ru sk sv-SE tr uk zh-CN zh-TW) |
85 |
|
86 |
MOZ_PV="${PV/_pre*}" |
87 |
MOZ_PV="${MOZ_PV/_alpha/a}" |
88 |
MOZ_PV="${MOZ_PV/_beta/b}" |
89 |
MOZ_PV="${MOZ_PV/_rc/rc}" |
90 |
MOZ_P="${P}" |
91 |
MY_MOZ_P="${PN}-${MOZ_PV}" |
92 |
|
93 |
if [[ ${PV} == *_pre* ]] ; then |
94 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}" |
95 |
MOZ_LANGPACK_PREFIX="linux-i686/xpi/" |
96 |
# And the langpack stuff stays at eclass defaults |
97 |
else |
98 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/${MOZ_PV}" |
99 |
MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}." |
100 |
MOZ_LANGPACK_SUFFIX=".langpack.xpi" |
101 |
fi |
102 |
|
103 |
inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-3 multilib pax-utils fdo-mime autotools mozextension nsplugins mozlinguas |
104 |
|
105 |
PATCHFF="firefox-21.0-patches-0.1" |
106 |
PATCH="${PN}-2.14-patches-01" |
107 |
EMVER="1.5.1" |
108 |
|
109 |
DESCRIPTION="Seamonkey Web Browser" |
110 |
HOMEPAGE="http://www.seamonkey-project.org" |
111 |
|
112 |
if [[ ${PV} == *_pre* ]] ; then |
113 |
# pre-releases. No need for arch teams to change KEYWORDS here. |
114 |
|
115 |
KEYWORDS="" |
116 |
else |
117 |
# This is where arch teams should change the KEYWORDS. |
118 |
|
119 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
120 |
fi |
121 |
|
122 |
SLOT="0" |
123 |
LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
124 |
IUSE="+chatzilla +crypt gstreamer +ipc +jit +roaming system-cairo system-jpeg system-sqlite" |
125 |
|
126 |
SRC_URI+="${SRC_URI} |
127 |
${MOZ_FTP_URI}/source/${MY_MOZ_P}.source.tar.bz2 -> ${P}.source.tar.bz2 |
128 |
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz |
129 |
http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz |
130 |
crypt? ( http://www.mozilla-enigmail.org/download/source/enigmail-${EMVER}.tar.gz )" |
131 |
|
132 |
ASM_DEPEND=">=dev-lang/yasm-1.1" |
133 |
|
134 |
# Mesa 7.10 needed for WebGL + bugfixes |
135 |
RDEPEND=">=sys-devel/binutils-2.16.1 |
136 |
>=dev-libs/nss-3.14.3 |
137 |
>=dev-libs/nspr-4.9.6 |
138 |
>=dev-libs/glib-2.26:2 |
139 |
>=media-libs/mesa-7.10 |
140 |
>=media-libs/libpng-1.5.13[apng] |
141 |
>=media-libs/libvpx-1.0.0 |
142 |
>=x11-libs/pango-1.14.0 |
143 |
>=x11-libs/gtk+-2.14:2 |
144 |
virtual/libffi |
145 |
gstreamer? ( |
146 |
>=media-libs/gstreamer-0.10.33:0.10 |
147 |
>=media-libs/gst-plugins-base-0.10.33:0.10 |
148 |
) |
149 |
system-cairo? ( >=x11-libs/cairo-1.10 ) |
150 |
system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) |
151 |
system-sqlite? ( || ( |
152 |
>=dev-db/sqlite-3.7.16:3[secure-delete,debug=] |
153 |
~dev-db/sqlite-3.7.15.2[fts3,secure-delete,threadsafe,unlock-notify,debug=] |
154 |
) ) |
155 |
crypt? ( >=app-crypt/gnupg-1.4 ) |
156 |
kernel_linux? ( media-libs/alsa-lib ) |
157 |
selinux? ( sec-policy/selinux-mozilla )" |
158 |
|
159 |
DEPEND="${RDEPEND} |
160 |
!elibc_glibc? ( dev-libs/libexecinfo ) |
161 |
virtual/pkgconfig |
162 |
amd64? ( ${ASM_DEPEND} |
163 |
virtual/opengl ) |
164 |
x86? ( ${ASM_DEPEND} |
165 |
virtual/opengl )" |
166 |
|
167 |
if [[ ${PV} == *beta* ]] ; then |
168 |
S="${WORKDIR}/comm-beta" |
169 |
else |
170 |
S="${WORKDIR}/comm-release" |
171 |
fi |
172 |
|
173 |
src_unpack() { |
174 |
unpack ${A} |
175 |
|
176 |
# Unpack language packs |
177 |
mozlinguas_src_unpack |
178 |
} |
179 |
|
180 |
pkg_setup() { |
181 |
if [[ ${PV} == *_pre* ]] ; then |
182 |
ewarn "You're using an unofficial release of ${PN}. Don't file any bug in" |
183 |
ewarn "Gentoo's Bugtracker against this package in case it breaks for you." |
184 |
ewarn "Those belong to upstream: https://bugzilla.mozilla.org" |
185 |
fi |
186 |
|
187 |
moz_pkgsetup |
188 |
|
189 |
# Ensure we have enough disk space to compile |
190 |
if use debug || use test ; then |
191 |
CHECKREQS_DISK_BUILD="8G" |
192 |
else |
193 |
CHECKREQS_DISK_BUILD="4G" |
194 |
fi |
195 |
check-reqs_pkg_setup |
196 |
} |
197 |
|
198 |
src_prepare() { |
199 |
# Apply our patches |
200 |
EPATCH_SUFFIX="patch" \ |
201 |
EPATCH_FORCE="yes" \ |
202 |
epatch "${WORKDIR}/seamonkey" |
203 |
|
204 |
# browser patches go here |
205 |
pushd "${S}"/mozilla &>/dev/null || die |
206 |
EPATCH_EXCLUDE="2000-firefox_gentoo_install_dirs.patch |
207 |
$(use system-cairo || echo "6009_fix_system_cairo_support.patch")" \ |
208 |
EPATCH_SUFFIX="patch" \ |
209 |
EPATCH_FORCE="yes" \ |
210 |
epatch "${WORKDIR}/firefox" |
211 |
popd &>/dev/null || die |
212 |
|
213 |
# Shell scripts sometimes contain DOS line endings; bug 391889 |
214 |
grep -rlZ --include="*.sh" $'\r$' . | |
215 |
while read -r -d $'\0' file ; do |
216 |
einfo edos2unix "${file}" |
217 |
edos2unix "${file}" || die |
218 |
done |
219 |
|
220 |
# Allow user to apply any additional patches without modifing ebuild |
221 |
epatch_user |
222 |
|
223 |
if use crypt ; then |
224 |
mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail |
225 |
#cd "${S}"/mailnews/extensions/enigmail || die |
226 |
#cd "${S}" |
227 |
fi |
228 |
|
229 |
local ms="${S}/mozilla" |
230 |
|
231 |
# Enable gnomebreakpad |
232 |
if use debug ; then |
233 |
sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
234 |
"${ms}"/build/unix/run-mozilla.sh || die "sed failed!" |
235 |
fi |
236 |
|
237 |
# Disable gnomevfs extension |
238 |
sed -i -e "s:gnomevfs::" "${S}"/suite/confvars.sh \ |
239 |
-e "s:gnomevfs::" "${ms}"/browser/confvars.sh \ |
240 |
-e "s:gnomevfs::" "${ms}"/xulrunner/confvars.sh \ |
241 |
|| die "Failed to remove gnomevfs extension" |
242 |
|
243 |
# Ensure that are plugins dir is enabled as default |
244 |
sed -i -e "s:/usr/lib/mozilla/plugins:/usr/$(get_libdir)/nsbrowser/plugins:" \ |
245 |
"${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path!" |
246 |
|
247 |
# Don't exit with error when some libs are missing which we have in |
248 |
# system. |
249 |
sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \ |
250 |
-i "${S}"/suite/installer/Makefile.in || die |
251 |
# Don't error out when there's no files to be removed: |
252 |
sed 's@\(xargs rm\)$@\1 -f@' \ |
253 |
-i "${ms}"/toolkit/mozapps/installer/packager.mk || die |
254 |
|
255 |
eautoreconf |
256 |
cd "${S}"/mozilla |
257 |
eautoconf |
258 |
} |
259 |
|
260 |
src_configure() { |
261 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
262 |
MEXTENSIONS="default" |
263 |
|
264 |
#################################### |
265 |
# |
266 |
# mozconfig, CFLAGS and CXXFLAGS setup |
267 |
# |
268 |
#################################### |
269 |
|
270 |
mozconfig_init |
271 |
mozconfig_config |
272 |
|
273 |
# It doesn't compile on alpha without this LDFLAGS |
274 |
use alpha && append-ldflags "-Wl,--no-relax" |
275 |
|
276 |
if use chatzilla ; then |
277 |
MEXTENSIONS+=",irc" |
278 |
else |
279 |
MEXTENSIONS+=",-irc" |
280 |
fi |
281 |
if ! use roaming ; then |
282 |
MEXTENSIONS+=",-sroaming" |
283 |
fi |
284 |
|
285 |
# We must force enable jemalloc 3 threw .mozconfig |
286 |
echo "export MOZ_JEMALLOC=1" >> ${S}/.mozconfig |
287 |
|
288 |
mozconfig_annotate '' --prefix="${EPREFIX}"/usr |
289 |
mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir) |
290 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
291 |
mozconfig_annotate '' --disable-gconf |
292 |
mozconfig_annotate '' --enable-jsd |
293 |
mozconfig_annotate '' --enable-canvas |
294 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
295 |
mozconfig_annotate '' --enable-system-ffi |
296 |
mozconfig_annotate '' --with-system-png |
297 |
mozconfig_annotate '' --target="${CTARGET:-${CHOST}}" |
298 |
mozconfig_annotate '' --enable-safe-browsing |
299 |
mozconfig_annotate '' --build="${CTARGET:-${CHOST}}" |
300 |
mozconfig_annotate '' --enable-jemalloc |
301 |
mozconfig_annotate '' --enable-replace-malloc |
302 |
|
303 |
mozconfig_use_enable gstreamer |
304 |
mozconfig_use_enable system-sqlite |
305 |
mozconfig_use_with system-jpeg |
306 |
# Feature is know to cause problems on hardened |
307 |
mozconfig_use_enable jit methodjit |
308 |
mozconfig_use_enable jit tracejit |
309 |
mozconfig_use_enable jit ion |
310 |
mozconfig_use_enable system-cairo |
311 |
|
312 |
# Use an objdir to keep things organized. |
313 |
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/seamonk" \ |
314 |
>> "${S}"/.mozconfig |
315 |
|
316 |
# Finalize and report settings |
317 |
mozconfig_final |
318 |
|
319 |
# Work around breakage in makeopts with --no-print-directory |
320 |
MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
321 |
|
322 |
if [[ $(gcc-major-version) -lt 4 ]] ; then |
323 |
append-cxxflags -fno-stack-protector |
324 |
elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then |
325 |
if use amd64 || use x86 ; then |
326 |
append-flags -mno-avx |
327 |
fi |
328 |
fi |
329 |
} |
330 |
|
331 |
src_compile() { |
332 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
333 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \ |
334 |
emake -f client.mk || die |
335 |
|
336 |
# Only build enigmail extension if conditions are met. |
337 |
if use crypt ; then |
338 |
cd "${S}"/mailnews/extensions/enigmail || die |
339 |
./makemake -r 2&> /dev/null |
340 |
cd "${S}"/seamonk/mailnews/extensions/enigmail |
341 |
emake || die "make enigmail failed" |
342 |
emake xpi || die "make enigmail xpi failed" |
343 |
fi |
344 |
} |
345 |
|
346 |
src_install() { |
347 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
348 |
DICTPATH="\"${EPREFIX}/usr/share/myspell\"" |
349 |
|
350 |
local emid obj_dir="seamonk" |
351 |
cd "${S}/${obj_dir}" |
352 |
|
353 |
# Copy our preference before omnijar is created. |
354 |
sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \ |
355 |
"${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \ |
356 |
|| die |
357 |
|
358 |
echo 'pref("extensions.autoDisableScopes", 3);' >> \ |
359 |
"${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \ |
360 |
|| die |
361 |
|
362 |
# Set default path to search for dictionaries. |
363 |
echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \ |
364 |
>> "${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \ |
365 |
|| die |
366 |
|
367 |
# Pax mark xpcshell for hardened support, only used for startupcache creation. |
368 |
pax-mark m "${S}/${obj_dir}/mozilla/dist/bin/xpcshell" |
369 |
|
370 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" \ |
371 |
emake DESTDIR="${D}" install || die "emake install failed" |
372 |
cp -f "${FILESDIR}"/icon/${PN}.desktop "${T}" || die |
373 |
|
374 |
if use crypt ; then |
375 |
cd "${T}" || die |
376 |
unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi install.rdf || die |
377 |
emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
378 |
|
379 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
380 |
cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
381 |
unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi || die |
382 |
|
383 |
cd "${S}" || die |
384 |
fi |
385 |
|
386 |
sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \ |
387 |
-i "${T}"/${PN}.desktop || die |
388 |
sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \ |
389 |
|| die |
390 |
|
391 |
# Install language packs |
392 |
mozlinguas_src_install |
393 |
|
394 |
# Add StartupNotify=true bug 290401 |
395 |
if use startup-notification ; then |
396 |
echo "StartupNotify=true" >> "${T}"/${PN}.desktop |
397 |
fi |
398 |
|
399 |
# Install icon and .desktop for menu entry |
400 |
newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png \ |
401 |
|| die |
402 |
domenu "${T}"/${PN}.desktop || die |
403 |
|
404 |
# Required in order to use plugins and even run firefox on hardened. |
405 |
pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container} |
406 |
|
407 |
# Handle plugins dir through nsplugins.eclass |
408 |
share_plugins_dir |
409 |
|
410 |
doman "${S}"/${obj_dir}/suite/app/${PN}.1 || die |
411 |
} |
412 |
|
413 |
pkg_preinst() { |
414 |
MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}" |
415 |
|
416 |
if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then |
417 |
rm ${MOZILLA_FIVE_HOME}/plugins -rf |
418 |
fi |
419 |
} |
420 |
|
421 |
pkg_postinst() { |
422 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
423 |
|
424 |
# Update mimedb for the new .desktop file |
425 |
fdo-mime_desktop_database_update |
426 |
|
427 |
if use chatzilla ; then |
428 |
elog "chatzilla is now an extension which can be en-/disabled and configured via" |
429 |
elog "the Add-on manager." |
430 |
fi |
431 |
} |