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