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