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