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