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.0.14.ebuild seamonkey-2.0.12.ebuild
Date: Fri, 29 Apr 2011 01:05:40
Message-Id: 20110429010530.72FAA20054@flycatcher.gentoo.org
1 polynomial-c 11/04/29 01:05:30
2
3 Modified: ChangeLog
4 Added: seamonkey-2.0.14.ebuild
5 Removed: seamonkey-2.0.12.ebuild
6 Log:
7 Version bump
8
9 (Portage version: 2.2.0_alpha30/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.305 www-client/seamonkey/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.305&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.305&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?r1=1.304&r2=1.305
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v
21 retrieving revision 1.304
22 retrieving revision 1.305
23 diff -u -r1.304 -r1.305
24 --- ChangeLog 10 Apr 2011 11:22:31 -0000 1.304
25 +++ ChangeLog 29 Apr 2011 01:05:30 -0000 1.305
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.304 2011/04/10 11:22:31 armin76 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.305 2011/04/29 01:05:30 polynomial-c Exp $
31 +
32 +*seamonkey-2.0.14 (29 Apr 2011)
33 +
34 + 29 Apr 2011; Lars Wendler <polynomial-c@g.o> -seamonkey-2.0.12.ebuild,
35 + +seamonkey-2.0.14.ebuild:
36 + Version bump.
37
38 10 Apr 2011; Raúl Porcel <armin76@g.o> seamonkey-2.0.13.ebuild:
39 alpha/ia64/sparc stable wrt #360055
40
41
42
43 1.1 www-client/seamonkey/seamonkey-2.0.14.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.0.14.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.0.14.ebuild?rev=1.1&content-type=text/plain
47
48 Index: seamonkey-2.0.14.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.0.14.ebuild,v 1.1 2011/04/29 01:05:30 polynomial-c Exp $
53
54 EAPI="2"
55 WANT_AUTOCONF="2.1"
56
57 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib fdo-mime autotools mozextension java-pkg-opt-2 python
58
59 PATCH="${PN}-2.0.11-patches-01"
60 EMVER="1.0.1"
61
62 LANGS="be ca cs de en-GB en-US es-AR es-ES fi fr gl hu it ja ka lt nb-NO nl pl pt-PT ru sk sv-SE tr zh-CN"
63 NOSHORTLANGS="en-GB 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 if [[ ${PV} == *_pre* ]] ; then
74 # pre-releases. No need for arch teams to change KEYWORDS here.
75
76 REL_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${PN}/nightly/${MY_PV}-candidates/build${PV##*_pre}"
77 #KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
78 KEYWORDS=""
79 #HAS_LANGS="false"
80 else
81 # This is where arch teams should change the KEYWORDS.
82
83 REL_URI="http://releases.mozilla.org/pub/mozilla.org/${PN}/releases/${MY_PV}"
84 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
85 [[ ${PV} == *alpha* ]] && HAS_LANGS="false"
86 fi
87
88 DESCRIPTION="Seamonkey Web Browser"
89 HOMEPAGE="http://www.seamonkey-project.org"
90
91 SLOT="0"
92 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
93 IUSE="+alsa +chatzilla +composer +crypt gnome java ldap +mailclient +roaming system-sqlite"
94
95 SRC_URI="${REL_URI}/source/${MY_P}.source.tar.bz2
96 http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.bz2
97 crypt? ( mailclient? ( http://www.mozilla-enigmail.org/download/source/enigmail-${EMVER}.tar.gz ) )"
98
99 if ${HAS_LANGS} ; then
100 for X in ${LANGS} ; do
101 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
102 SRC_URI="${SRC_URI}
103 linguas_${X/-/_}? ( ${REL_URI}/langpack/${MY_P}.${X}.langpack.xpi -> ${MY_P}-${X}.xpi )"
104 fi
105 IUSE="${IUSE} linguas_${X/-/_}"
106 # english is handled internally
107 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
108 if [ "${X}" != "en-US" ]; then
109 SRC_URI="${SRC_URI}
110 linguas_${X%%-*}? ( ${REL_URI}/langpack/${MY_P}.${X}.langpack.xpi -> ${MY_P}-${X}.xpi )"
111 fi
112 IUSE="${IUSE} linguas_${X%%-*}"
113 fi
114 done
115 fi
116
117 RDEPEND="java? ( virtual/jre )
118 >=sys-devel/binutils-2.16.1
119 >=dev-libs/nss-3.12.8
120 >=dev-libs/nspr-4.8.6
121 alsa? ( media-libs/alsa-lib )
122 system-sqlite? ( >=dev-db/sqlite-3.6.22-r2[fts3,secure-delete] )
123 >=app-text/hunspell-1.2
124 >=x11-libs/gtk+-2.10.0:2
125 >=x11-libs/pango-1.14.0[X]
126 crypt? ( mailclient? ( >=app-crypt/gnupg-1.4 ) )
127 gnome? ( >=gnome-base/gnome-vfs-2.16.3
128 >=gnome-base/libgnomeui-2.16.1
129 >=gnome-base/gconf-2.16.0
130 >=gnome-base/libgnome-2.16.0 )"
131
132 DEPEND="${RDEPEND}
133 =dev-lang/python-2*[threads]
134 dev-util/pkgconfig
135 java? ( >=virtual/jdk-1.4 )"
136
137 S="${WORKDIR}/comm-1.9.1"
138
139 linguas() {
140 local LANG SLANG
141 for LANG in ${LINGUAS}; do
142 if has ${LANG} en en_US; then
143 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
144 continue
145 elif has ${LANG} ${LANGS//-/_}; then
146 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
147 continue
148 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
149 for X in ${LANGS}; do
150 if [[ "${X}" == "${LANG}-"* ]] && \
151 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
152 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
153 continue 2
154 fi
155 done
156 fi
157 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
158 done
159 }
160
161 src_unpack() {
162 unpack ${A}
163
164 if ${HAS_LANGS} ; then
165 linguas
166 for X in ${linguas}; do
167 # FIXME: Add support for unpacking xpis to portage
168 [[ ${X} != "en" ]] && xpi_unpack "${MY_P}-${X}.xpi"
169 done
170 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
171 einfo "Selected language packs (first will be default): ${linguas}"
172 fi
173 fi
174 }
175
176 pkg_setup() {
177 if [[ ${PV} == *_pre* ]] ; then
178 ewarn "You're using an unofficial release of ${PN}. Don't file any bug in"
179 ewarn "Gentoo's Bugtracker against this package in case it breaks for you."
180 ewarn "Those belong to upstream: https://bugzilla.mozilla.org"
181 fi
182
183 # Ensure we always build with C locale.
184 export LANG="C"
185 export LC_ALL="C"
186 export LC_MESSAGES="C"
187 export LC_CTYPE="C"
188
189 export BUILD_OFFICIAL=1
190 export MOZILLA_OFFICIAL=1
191
192 java-pkg-opt-2_pkg_setup
193
194 python_set_active_version 2
195 }
196
197 src_prepare() {
198 java-pkg-opt-2_src_prepare
199
200 # Apply our patches
201 EPATCH_EXCLUDE="1008-seamonkey-cups-1.4.4-fixup.patch" \
202 EPATCH_SUFFIX="patch" \
203 EPATCH_FORCE="yes" \
204 epatch "${WORKDIR}/patch"
205
206 if use crypt && use mailclient ; then
207 mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail
208 cd "${S}"/mailnews/extensions/enigmail || die
209 epatch "${FILESDIR}"/enigmail/70_enigmail-fix.patch
210 makemake2
211 cd "${S}"
212 fi
213
214 eautoreconf
215 }
216
217 src_configure() {
218 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
219 MEXTENSIONS=""
220
221 ####################################
222 #
223 # mozconfig, CFLAGS and CXXFLAGS setup
224 #
225 ####################################
226
227 mozconfig_init
228 mozconfig_config
229
230 # seamonkey has issues with >=x11-libs/cairo-1.10.0 (bug #337813).
231 # If you don't like this blame upstream as they don't care about
232 # anything than their damned bundled shit!!!
233 sed '/--enable-system-cairo/s:enable:disable:' -i "${S}"/.mozconfig \
234 || die
235
236 # It doesn't compile on alpha without this LDFLAGS
237 use alpha && append-ldflags "-Wl,--no-relax"
238
239 if ! use chatzilla ; then
240 MEXTENSIONS="${MEXTENSIONS},-irc"
241 fi
242 if ! use roaming ; then
243 MEXTENSIONS="${MEXTENSIONS},-sroaming"
244 fi
245
246 if ! use gnome ; then
247 MEXTENSIONS="${MEXTENSIONS},-gnomevfs"
248 fi
249
250 if ! use composer ; then
251 if ! use chatzilla && ! use mailclient ; then
252 mozconfig_annotate '-composer' --disable-composer
253 fi
254 fi
255
256 mozconfig_annotate '' --enable-crypto
257 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
258 mozconfig_annotate '' --enable-application=suite
259 mozconfig_annotate 'broken' --disable-mochitest
260 mozconfig_annotate 'broken' --disable-crashreporter
261 mozconfig_annotate '' --enable-system-hunspell
262 mozconfig_annotate '' --enable-jsd
263 mozconfig_annotate '' --enable-image-encoder=all
264 mozconfig_annotate '' --enable-canvas
265 mozconfig_annotate '' --with-system-nspr
266 mozconfig_annotate '' --with-system-nss
267 mozconfig_annotate '' --with-system-bz2
268 mozconfig_annotate '' --enable-oji --enable-mathml
269 mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks
270 mozconfig_annotate '' --disable-installer
271 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
272 mozconfig_annotate '' --enable-printing
273
274 # Enable/Disable based on USE flags
275 mozconfig_use_enable alsa ogg
276 mozconfig_use_enable alsa wave
277 mozconfig_use_enable gnome gnomevfs
278 mozconfig_use_enable gnome gnomeui
279 mozconfig_use_enable java javaxpcom
280 mozconfig_use_enable ldap
281 mozconfig_use_enable ldap ldap-experimental
282 mozconfig_use_enable mailclient mailnews
283 mozconfig_use_enable system-sqlite
284
285 # Finalize and report settings
286 mozconfig_final
287
288 if [[ $(gcc-major-version) -lt 4 ]]; then
289 append-cxxflags -fno-stack-protector
290 fi
291
292 ####################################
293 #
294 # Configure and build
295 #
296 ####################################
297
298 # Work around breakage in makeopts with --no-print-directory
299 MAKEOPTS="${MAKEOPTS/--no-print-directory/}"
300
301 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf
302 }
303
304 src_compile() {
305 # Should the build use multiprocessing? Not enabled by default, as it tends to break.
306 [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
307 emake ${jobs} || die
308
309 # Only build enigmail extension if conditions are met.
310 if use crypt && use mailclient ; then
311 emake -C "${S}"/mailnews/extensions/enigmail || die "make enigmail failed"
312 emake -j1 -C "${S}"/mailnews/extensions/enigmail xpi || die "make enigmail xpi failed"
313 fi
314 }
315
316 src_install() {
317 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
318 declare emid
319
320 emake DESTDIR="${D}" install || die "emake install failed"
321 cp -f "${FILESDIR}"/icon/seamonkey.desktop "${T}" || die
322
323 if use crypt && use mailclient ; then
324 cd "${T}" || die
325 unzip "${S}"/mozilla/dist/bin/enigmail*.xpi install.rdf || die
326 emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
327
328 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die
329 cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die
330 unzip "${S}"/mozilla/dist/bin/enigmail*.xpi || die
331
332 sed 's|^\(MimeType=.*\)$|\1MimeType=text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \
333 -i "${T}"/${PN}.desktop || die
334 sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \
335 || die
336 fi
337
338 if ${HAS_LANGS} ; then
339 linguas
340 for X in ${linguas}; do
341 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${MY_P}-${X}"
342 done
343 fi
344
345 # Install icon and .desktop for menu entry
346 newicon "${S}"/suite/branding/content/icon64.png seamonkey.png || die
347 domenu "${T}"/${PN}.desktop || die
348
349 # Add StartupNotify=true bug 290401
350 if use startup-notification ; then
351 echo "StartupNotify=true" >> "${D}"/usr/share/applications/seamonkey.desktop
352 fi
353
354 # Add our default prefs
355 sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo.js \
356 > "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js
357
358 # Plugins dir
359 rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins || die "failed to remove existing plugins dir"
360 dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins || die
361
362 # shiny new man page
363 doman "${S}"/suite/app/${PN}.1 || die
364 }
365
366 pkg_preinst() {
367 declare MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}"
368
369 if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then
370 rm ${MOZILLA_FIVE_HOME}/plugins -rf
371 fi
372 }
373
374 pkg_postinst() {
375 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
376
377 # Update mimedb for the new .desktop file
378 fdo-mime_desktop_database_update
379
380 if use chatzilla ; then
381 elog "chatzilla is now an extension which can be en-/disabled and configured via"
382 elog "the Add-on manager."
383 fi
384 }