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