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.11-r2.ebuild seamonkey-2.0.11-r1.ebuild
Date: Wed, 05 Jan 2011 15:24:23
Message-Id: 20110105152408.98FD420051@flycatcher.gentoo.org
1 polynomial-c 11/01/05 15:24:08
2
3 Modified: ChangeLog
4 Added: seamonkey-2.0.11-r2.ebuild
5 Removed: seamonkey-2.0.11-r1.ebuild
6 Log:
7 Revbump with new patchset containing cups-1.4 patch.
8
9 (Portage version: 2.2.0_alpha13/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.286 www-client/seamonkey/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.286&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.286&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?r1=1.285&r2=1.286
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v
21 retrieving revision 1.285
22 retrieving revision 1.286
23 diff -u -r1.285 -r1.286
24 --- ChangeLog 1 Jan 2011 19:52:55 -0000 1.285
25 +++ ChangeLog 5 Jan 2011 15:24:08 -0000 1.286
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.285 2011/01/01 19:52:55 armin76 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.286 2011/01/05 15:24:08 polynomial-c Exp $
31 +
32 +*seamonkey-2.0.11-r2 (05 Jan 2011)
33 +
34 + 05 Jan 2011; Lars Wendler <polynomial-c@g.o>
35 + -seamonkey-2.0.11-r1.ebuild, +seamonkey-2.0.11-r2.ebuild:
36 + Revbump with new patchset containing cups-1.4 patch.
37
38 01 Jan 2011; Raúl Porcel <armin76@g.o> seamonkey-2.0.11.ebuild:
39 alpha/ia64/sparc stable wrt #348316
40
41
42
43 1.1 www-client/seamonkey/seamonkey-2.0.11-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.0.11-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.0.11-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: seamonkey-2.0.11-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.0.11-r2.ebuild,v 1.1 2011/01/05 15:24:08 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
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 es-ES nb-NO pt-PT sv-SE zh-CN"
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 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
125 >=x11-libs/pango-1.14.0[X]
126 crypt? ( mailclient? ( >=app-crypt/gnupg-1.4 ) )"
127
128 DEPEND="${RDEPEND}
129 dev-util/pkgconfig
130 java? ( >=virtual/jdk-1.4 )"
131
132 S="${WORKDIR}/comm-1.9.1"
133
134 linguas() {
135 local LANG SLANG
136 for LANG in ${LINGUAS}; do
137 if has ${LANG} en en_US; then
138 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
139 continue
140 elif has ${LANG} ${LANGS//-/_}; then
141 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
142 continue
143 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
144 for X in ${LANGS}; do
145 if [[ "${X}" == "${LANG}-"* ]] && \
146 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
147 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
148 continue 2
149 fi
150 done
151 fi
152 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
153 done
154 }
155
156 src_unpack() {
157 unpack ${A}
158
159 if ${HAS_LANGS} ; then
160 linguas
161 for X in ${linguas}; do
162 # FIXME: Add support for unpacking xpis to portage
163 [[ ${X} != "en" ]] && xpi_unpack "${MY_P}-${X}.xpi"
164 done
165 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
166 einfo "Selected language packs (first will be default): ${linguas}"
167 fi
168 fi
169 }
170
171 pkg_setup() {
172 if [[ ${PV} == *_pre* ]] ; then
173 ewarn "You're using an unofficial release of ${PN}. Don't file any bug in"
174 ewarn "Gentoo's Bugtracker against this package in case it breaks for you."
175 ewarn "Those belong to upstream: https://bugzilla.mozilla.org"
176 fi
177
178 # Ensure we always build with C locale.
179 export LANG="C"
180 export LC_ALL="C"
181 export LC_MESSAGES="C"
182 export LC_CTYPE="C"
183
184 export BUILD_OFFICIAL=1
185 export MOZILLA_OFFICIAL=1
186
187 java-pkg-opt-2_pkg_setup
188 }
189
190 src_prepare() {
191 java-pkg-opt-2_src_prepare
192
193 # Apply our patches
194 EPATCH_SUFFIX="patch" \
195 EPATCH_FORCE="yes" \
196 epatch "${WORKDIR}/patch"
197
198 if use crypt && use mailclient ; then
199 mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail
200 cd "${S}"/mailnews/extensions/enigmail || die
201 epatch "${FILESDIR}"/enigmail/70_enigmail-fix.patch
202 makemake2
203 cd "${S}"
204 fi
205
206 eautoreconf
207 }
208
209 src_configure() {
210 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
211 MEXTENSIONS=""
212
213 ####################################
214 #
215 # mozconfig, CFLAGS and CXXFLAGS setup
216 #
217 ####################################
218
219 mozconfig_init
220 mozconfig_config
221
222 # seamonkey has issues with >=x11-libs/cairo-1.10.0 (bug #337813).
223 # If you don't like this blame upstream as they don't care about
224 # anything than their damned bundled shit!!!
225 sed '/--enable-system-cairo/s:enable:disable:' -i "${S}"/.mozconfig \
226 || die
227
228 # It doesn't compile on alpha without this LDFLAGS
229 use alpha && append-ldflags "-Wl,--no-relax"
230
231 if ! use chatzilla ; then
232 MEXTENSIONS="${MEXTENSIONS},-irc"
233 fi
234 if ! use roaming ; then
235 MEXTENSIONS="${MEXTENSIONS},-sroaming"
236 fi
237
238 if ! use gnome ; then
239 MEXTENSIONS="${MEXTENSIONS},-gnomevfs"
240 fi
241
242 if ! use composer ; then
243 if ! use chatzilla && ! use mailclient ; then
244 mozconfig_annotate '-composer' --disable-composer
245 fi
246 fi
247
248 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
249 mozconfig_annotate '' --enable-application=suite
250 mozconfig_annotate 'broken' --disable-mochitest
251 mozconfig_annotate 'broken' --disable-crashreporter
252 mozconfig_annotate '' --enable-system-hunspell
253 mozconfig_annotate '' --enable-jsd
254 mozconfig_annotate '' --enable-image-encoder=all
255 mozconfig_annotate '' --enable-canvas
256 mozconfig_annotate '' --with-system-nspr
257 mozconfig_annotate '' --with-system-nss
258 mozconfig_annotate '' --with-system-bz2
259 mozconfig_annotate '' --enable-oji --enable-mathml
260 mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks
261 mozconfig_annotate '' --disable-installer
262 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
263 mozconfig_annotate '' --enable-printing
264
265 # Enable/Disable based on USE flags
266 mozconfig_use_enable alsa ogg
267 mozconfig_use_enable alsa wave
268 mozconfig_use_enable java javaxpcom
269 mozconfig_use_enable ldap
270 mozconfig_use_enable ldap ldap-experimental
271 mozconfig_use_enable mailclient mailnews
272 mozconfig_use_enable system-sqlite
273
274 # Finalize and report settings
275 mozconfig_final
276
277 if [[ $(gcc-major-version) -lt 4 ]]; then
278 append-cxxflags -fno-stack-protector
279 fi
280
281 ####################################
282 #
283 # Configure and build
284 #
285 ####################################
286
287 # Work around breakage in makeopts with --no-print-directory
288 MAKEOPTS="${MAKEOPTS/--no-print-directory/}"
289
290 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf
291 }
292
293 src_compile() {
294 # Should the build use multiprocessing? Not enabled by default, as it tends to break.
295 [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
296 emake ${jobs} || die
297
298 # Only build enigmail extension if conditions are met.
299 if use crypt && use mailclient ; then
300 emake -C "${S}"/mailnews/extensions/enigmail || die "make enigmail failed"
301 emake -j1 -C "${S}"/mailnews/extensions/enigmail xpi || die "make enigmail xpi failed"
302 fi
303 }
304
305 src_install() {
306 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
307 declare emid
308
309 emake DESTDIR="${D}" install || die "emake install failed"
310
311 if use crypt && use mailclient ; then
312 cd "${T}" || die
313 unzip "${S}"/mozilla/dist/bin/enigmail*.xpi install.rdf || die
314 emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
315
316 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die
317 cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die
318 unzip "${S}"/mozilla/dist/bin/enigmail*.xpi || die
319 fi
320
321 if ${HAS_LANGS} ; then
322 linguas
323 for X in ${linguas}; do
324 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${MY_P}-${X}"
325 done
326 fi
327
328 # Install icon and .desktop for menu entry
329 newicon "${S}"/suite/branding/content/icon64.png seamonkey.png || die
330 domenu "${FILESDIR}"/icon/seamonkey.desktop || die
331
332 # Add StartupNotify=true bug 290401
333 if use startup-notification ; then
334 echo "StartupNotify=true" >> "${D}"/usr/share/applications/seamonkey.desktop
335 fi
336
337 # Add our default prefs
338 sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo.js \
339 > "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js
340
341 # Plugins dir
342 rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins || die "failed to remove existing plugins dir"
343 dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins || die
344
345 # shiny new man page
346 doman "${S}"/suite/app/${PN}.1 || die
347 }
348
349 pkg_preinst() {
350 declare MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}"
351
352 if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then
353 rm ${MOZILLA_FIVE_HOME}/plugins -rf
354 fi
355 }
356
357 pkg_postinst() {
358 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
359
360 # Update mimedb for the new .desktop file
361 fdo-mime_desktop_database_update
362
363 if use chatzilla ; then
364 elog "chatzilla is now an extension which can be en-/disabled and configured via"
365 elog "the Add-on manager."
366 fi
367 }