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