Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/seamonkey: ChangeLog seamonkey-2.2-r2.ebuild seamonkey-2.2-r1.ebuild
Date: Wed, 03 Aug 2011 06:55:52
Message-Id: 20110803065539.8E7FB2004C@flycatcher.gentoo.org
1 polynomial-c 11/08/03 06:55:39
2
3 Modified: ChangeLog
4 Added: seamonkey-2.2-r2.ebuild
5 Removed: seamonkey-2.2-r1.ebuild
6 Log:
7 Updated enigmail version to 1.2.1
8
9 (Portage version: 2.2.0_alpha50/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.323 www-client/seamonkey/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.323&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.323&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?r1=1.322&r2=1.323
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v
21 retrieving revision 1.322
22 retrieving revision 1.323
23 diff -u -r1.322 -r1.323
24 --- ChangeLog 26 Jul 2011 12:27:51 -0000 1.322
25 +++ ChangeLog 3 Aug 2011 06:55:39 -0000 1.323
26 @@ -1,6 +1,12 @@
27 # ChangeLog for www-client/seamonkey
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.322 2011/07/26 12:27:51 polynomial-c Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.323 2011/08/03 06:55:39 polynomial-c Exp $
31 +
32 +*seamonkey-2.2-r2 (03 Aug 2011)
33 +
34 + 03 Aug 2011; Lars Wendler <polynomial-c@g.o> -seamonkey-2.2-r1.ebuild,
35 + +seamonkey-2.2-r2.ebuild, -files/enigmail/enigmail-updates.patch:
36 + Updated enigmail version to 1.2.1
37
38 26 Jul 2011; Lars Wendler <polynomial-c@g.o>
39 seamonkey-2.0.14-r1.ebuild,
40
41
42
43 1.1 www-client/seamonkey/seamonkey-2.2-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.2-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.2-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: seamonkey-2.2-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2011 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.2-r2.ebuild,v 1.1 2011/08/03 06:55:39 polynomial-c Exp $
53
54 EAPI="3"
55 WANT_AUTOCONF="2.1"
56
57 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib fdo-mime autotools mozextension python
58
59 PATCH="${PN}-2.2-patches-01"
60 EMVER="1.2.1"
61
62 LANGS="ca cs de en en-GB en-US es-AR es-ES fi fr hu it ja lt nb-NO nl pl pt-PT ru sk sv-SE tr"
63 NOSHORTLANGS="en-GB en-US es-AR"
64
65 MY_PV="${PV/_pre*}"
66 MY_PV="${MY_PV/_alpha/a}"
67 MY_PV="${MY_PV/_beta/b}"
68 MY_PV="${MY_PV/_rc/rc}"
69 MY_P="${PN}-${MY_PV}"
70
71 # release versions usually have language packs. So be careful with changing this.
72 HAS_LANGS="true"
73 LANGPACK_PREFIX="${MY_P}."
74 LANGPACK_SUFFIX=".langpack"
75 if [[ ${PV} == *_pre* ]] ; then
76 # pre-releases. No need for arch teams to change KEYWORDS here.
77
78 REL_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${PN}/nightly/${MY_PV}-candidates/build${PV##*_pre}"
79 #LANG_URI="${REL_URI}/langpack"
80 LANG_URI="${REL_URI}/linux-i686/xpi"
81 LANGPACK_PREFIX=""
82 LANGPACK_SUFFIX=""
83 #KEYWORDS=""
84 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
85 #HAS_LANGS="false"
86 else
87 # This is where arch teams should change the KEYWORDS.
88
89 REL_URI="http://releases.mozilla.org/pub/mozilla.org/${PN}/releases/${MY_PV}"
90 LANG_URI="${REL_URI}/langpack"
91 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
92 [[ ${PV} == *alpha* ]] && HAS_LANGS="false"
93 fi
94
95 DESCRIPTION="Seamonkey Web Browser"
96 HOMEPAGE="http://www.seamonkey-project.org"
97
98 SLOT="0"
99 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
100 IUSE="+alsa +chatzilla +crypt +methodjit +roaming system-sqlite +webm"
101
102 SRC_URI="${REL_URI}/source/${MY_P}.source.tar.bz2 -> ${P}.source.tar.bz2
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 if ${HAS_LANGS} ; then
107 for X in ${LANGS} ; do
108 if [ "${X}" != "en" ] ; then
109 SRC_URI="${SRC_URI}
110 linguas_${X/-/_}? ( ${LANG_URI}/${LANGPACK_PREFIX}${X}${LANGPACK_SUFFIX}.xpi -> ${P}-${X}.xpi )"
111 fi
112 IUSE="${IUSE} linguas_${X/-/_}"
113 # english is handled internally
114 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
115 #if [ "${X}" != "en-US" ]; then
116 SRC_URI="${SRC_URI}
117 linguas_${X%%-*}? ( ${LANG_URI}/${LANGPACK_PREFIX}${X}${LANGPACK_SUFFIX}.xpi -> ${P}-${X}.xpi )"
118 #fi
119 IUSE="${IUSE} linguas_${X%%-*}"
120 fi
121 done
122 fi
123
124 ASM_DEPEND=">=dev-lang/yasm-1.1"
125
126 # Mesa 7.10 needed for WebGL + bugfixes
127 RDEPEND=">=sys-devel/binutils-2.16.1
128 >=dev-libs/nss-3.12.9
129 >=dev-libs/nspr-4.8.7
130 >=dev-libs/glib-2.26
131 >=media-libs/mesa-7.10
132 >=media-libs/libpng-1.4.1[apng]
133 dev-libs/libffi
134 system-sqlite? ( >=dev-db/sqlite-3.7.4[fts3,secure-delete,unlock-notify,debug=] )
135 crypt? ( >=app-crypt/gnupg-1.4 )
136 webm? ( media-libs/libvpx
137 media-libs/alsa-lib )"
138
139 DEPEND="${RDEPEND}
140 dev-util/pkgconfig
141 webm? ( amd64? ( ${ASM_DEPEND} )
142 x86? ( ${ASM_DEPEND} ) )"
143
144 S="${WORKDIR}/comm-release"
145
146 linguas() {
147 local LANG SLANG
148 for LANG in ${LINGUAS}; do
149 if has ${LANG} en en_US; then
150 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
151 continue
152 elif has ${LANG} ${LANGS//-/_}; then
153 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
154 continue
155 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
156 for X in ${LANGS}; do
157 if [[ "${X}" == "${LANG}-"* ]] && \
158 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
159 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
160 continue 2
161 fi
162 done
163 fi
164 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
165 done
166 }
167
168 src_unpack() {
169 unpack ${A}
170
171 if ${HAS_LANGS} ; then
172 linguas
173 for X in ${linguas}; do
174 # FIXME: Add support for unpacking xpis to portage
175 [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
176 done
177 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
178 einfo "Selected language packs (first will be default): ${linguas}"
179 fi
180 fi
181 }
182
183 pkg_setup() {
184 if [[ ${PV} == *_pre* ]] ; then
185 ewarn "You're using an unofficial release of ${PN}. Don't file any bug in"
186 ewarn "Gentoo's Bugtracker against this package in case it breaks for you."
187 ewarn "Those belong to upstream: https://bugzilla.mozilla.org"
188 fi
189
190 moz_pkgsetup
191
192 if ! use methodjit ; then
193 einfo
194 ewarn "You are disabling the method-based JIT in JägerMonkey."
195 ewarn "This will greatly slowdown JavaScript in ${PN}!"
196 fi
197 }
198
199 src_prepare() {
200 # Apply our patches
201 EPATCH_SUFFIX="patch" \
202 EPATCH_FORCE="yes" \
203 epatch "${WORKDIR}/patch"
204
205 epatch "${FILESDIR}"/${PN}-2.1b3-restore-tabbar-scrolling-from-2.1b2.diff \
206 "${FILESDIR}"/${PN}-2.2-curl7217-includes-fix.patch
207
208 # Allow user to apply any additional patches without modifing ebuild
209 epatch_user
210
211 if use crypt ; then
212 mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail
213 cd "${S}"/mailnews/extensions/enigmail || die
214 ./makemake -r 2&>/dev/null
215 sed -e 's:@srcdir@:${S}/mailnews/extensions/enigmail:' \
216 -i Makefile.in || die
217 cd "${S}"
218 fi
219
220 #Ensure we disable javaxpcom by default to prevent configure breakage
221 sed -i -e s:MOZ_JAVAXPCOM\=1::g "${S}"/mozilla/xulrunner/confvars.sh \
222 || die "sed javaxpcom"
223
224 # Disable gnomevfs extension
225 sed -i -e "s:gnomevfs::" "${S}/"suite/confvars.sh \
226 || die "Failed to remove gnomevfs extension"
227
228 eautoreconf
229 cd "${S}"/mozilla || die
230 eautoreconf
231 cd "${S}"/mozilla/js/src || die
232 eautoreconf
233 }
234
235 src_configure() {
236 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
237 MEXTENSIONS=""
238
239 ####################################
240 #
241 # mozconfig, CFLAGS and CXXFLAGS setup
242 #
243 ####################################
244
245 mozconfig_init
246 mozconfig_config
247
248 # It doesn't compile on alpha without this LDFLAGS
249 use alpha && append-ldflags "-Wl,--no-relax"
250
251 if ! use chatzilla ; then
252 MEXTENSIONS="${MEXTENSIONS},-irc"
253 fi
254 if ! use roaming ; then
255 MEXTENSIONS="${MEXTENSIONS},-sroaming"
256 fi
257
258 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
259 mozconfig_annotate '' --disable-gconf
260 mozconfig_annotate '' --enable-jsd
261 mozconfig_annotate '' --enable-canvas
262 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
263
264 mozconfig_use_enable system-sqlite
265 mozconfig_use_enable methodjit
266
267 if use crypt ; then
268 mozconfig_annotate "mail crypt" --enable-chrome-format=jar
269 fi
270
271 mozconfig_annotate '' --with-system-png
272
273 # Finalize and report settings
274 mozconfig_final
275
276 if [[ $(gcc-major-version) -lt 4 ]]; then
277 append-cxxflags -fno-stack-protector
278 elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]]; then
279 if use amd64 || use x86; then
280 append-flags -mno-avx
281 fi
282 fi
283
284 ####################################
285 #
286 # Configure and build
287 #
288 ####################################
289
290 # Work around breakage in makeopts with --no-print-directory
291 MAKEOPTS="${MAKEOPTS/--no-print-directory/}"
292
293 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf
294 }
295
296 src_compile() {
297 emake || die
298
299 # Only build enigmail extension if conditions are met.
300 if use crypt ; then
301 emake -C "${S}"/mailnews/extensions/enigmail || die "make enigmail failed"
302 emake -j1 -C "${S}"/mailnews/extensions/enigmail xpi || die "make enigmail xpi failed"
303 fi
304 }
305
306 src_install() {
307 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
308 declare emid
309
310 emake DESTDIR="${D}" install || die "emake install failed"
311 cp -f "${FILESDIR}"/icon/${PN}.desktop "${T}" || die
312
313 if use crypt ; then
314 cd "${T}" || die
315 unzip "${S}"/mozilla/dist/bin/enigmail*.xpi install.rdf || die
316 emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
317
318 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die
319 cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die
320 unzip "${S}"/mozilla/dist/bin/enigmail*.xpi || die
321 fi
322
323 sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \
324 -i "${T}"/${PN}.desktop || die
325 sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \
326 || die
327
328 if ${HAS_LANGS} ; then
329 linguas
330 for X in ${linguas}; do
331 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}"
332 done
333 fi
334
335 # Add StartupNotify=true bug 290401
336 if use startup-notification ; then
337 echo "StartupNotify=true" >> "${T}"/${PN}.desktop
338 fi
339
340 # Install icon and .desktop for menu entry
341 newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png \
342 || die
343 domenu "${T}"/${PN}.desktop || die
344
345 # Add our default prefs
346 sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo.js \
347 > "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js \
348 || die
349
350 # Plugins dir
351 rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins || die "failed to remove existing plugins dir"
352 dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins || die
353
354 doman "${S}"/suite/app/${PN}.1 || die
355 }
356
357 pkg_preinst() {
358 declare MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}"
359
360 if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then
361 rm ${MOZILLA_FIVE_HOME}/plugins -rf
362 fi
363 }
364
365 pkg_postinst() {
366 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
367
368 # Update mimedb for the new .desktop file
369 fdo-mime_desktop_database_update
370
371 if use chatzilla ; then
372 elog "chatzilla is now an extension which can be en-/disabled and configured via"
373 elog "the Add-on manager."
374 fi
375 }