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