1 |
anarchy 12/03/01 13:36:44 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: seamonkey-2.7.1-r1.ebuild |
5 |
Log: |
6 |
Fix libvpx-1.0.0 support, bug #401985 |
7 |
|
8 |
(Portage version: 2.1.10.49/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.361 www-client/seamonkey/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.361&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.361&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?r1=1.360&r2=1.361 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v |
20 |
retrieving revision 1.360 |
21 |
retrieving revision 1.361 |
22 |
diff -u -r1.360 -r1.361 |
23 |
--- ChangeLog 20 Feb 2012 11:29:35 -0000 1.360 |
24 |
+++ ChangeLog 1 Mar 2012 13:36:44 -0000 1.361 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for www-client/seamonkey |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.360 2012/02/20 11:29:35 tomka Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.361 2012/03/01 13:36:44 anarchy Exp $ |
30 |
+ |
31 |
+*seamonkey-2.7.1-r1 (01 Mar 2012) |
32 |
+ |
33 |
+ 01 Mar 2012; Jory A. Pratt <anarchy@g.o> +seamonkey-2.7.1-r1.ebuild: |
34 |
+ Fix libvpx-1.0.0 support, bug #401985 |
35 |
|
36 |
20 Feb 2012; Thomas Kahle <tomka@g.o> seamonkey-2.7.1.ebuild: |
37 |
marked x86 per bug 403183 |
38 |
|
39 |
|
40 |
|
41 |
1.1 www-client/seamonkey/seamonkey-2.7.1-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.7.1-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.7.1-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: seamonkey-2.7.1-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 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.7.1-r1.ebuild,v 1.1 2012/03/01 13:36:44 anarchy Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
WANT_AUTOCONF="2.1" |
54 |
|
55 |
# This list can be updated with scripts/get_langs.sh from the mozilla overlay |
56 |
MOZ_LANGS=(be ca cs de en-GB en-US es-AR es-ES fi fr gl hu it ja lt nb-NO nl pl |
57 |
pt-PT ru sk sv-SE tr zh-CN) |
58 |
|
59 |
MOZ_PV="${PV/_pre*}" |
60 |
MOZ_PV="${MOZ_PV/_alpha/a}" |
61 |
MOZ_PV="${MOZ_PV/_beta/b}" |
62 |
MOZ_PV="${MOZ_PV/_rc/rc}" |
63 |
MOZ_P="${PN}-${MOZ_PV}" |
64 |
|
65 |
if [[ ${PV} == *_pre* ]] ; then |
66 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/nightly/${MOZ_PV}-candidates/build${PV##*_pre}" |
67 |
MOZ_LANGPACK_PREFIX="linux-i686/xpi/" |
68 |
# And the langpack stuff stays at eclass defaults |
69 |
else |
70 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/${MOZ_PV}" |
71 |
MOZ_LANGPACK_PREFIX="langpack/${MOZ_P}." |
72 |
MOZ_LANGPACK_SUFFIX=".langpack.xpi" |
73 |
fi |
74 |
|
75 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-3 multilib pax-utils fdo-mime autotools mozextension python nsplugins mozlinguas |
76 |
|
77 |
PATCHFF="firefox-10.0-patches-0.6" |
78 |
PATCH="${PN}-2.7-patches-03" |
79 |
EMVER="1.3.5" |
80 |
|
81 |
DESCRIPTION="Seamonkey Web Browser" |
82 |
HOMEPAGE="http://www.seamonkey-project.org" |
83 |
|
84 |
if [[ ${PV} == *_pre* ]] ; then |
85 |
# pre-releases. No need for arch teams to change KEYWORDS here. |
86 |
|
87 |
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 x86" |
88 |
else |
89 |
# This is where arch teams should change the KEYWORDS. |
90 |
|
91 |
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86" |
92 |
fi |
93 |
|
94 |
SLOT="0" |
95 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
96 |
IUSE="+alsa +chatzilla +crypt +ipc +roaming system-sqlite +webm" |
97 |
|
98 |
SRC_URI+="${SRC_URI} |
99 |
${MOZ_FTP_URI}/source/${MOZ_P}.source.tar.bz2 -> ${P}.source.tar.bz2 |
100 |
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz |
101 |
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.xz |
102 |
crypt? ( http://www.mozilla-enigmail.org/download/source/enigmail-${EMVER}.tar.gz )" |
103 |
|
104 |
ASM_DEPEND=">=dev-lang/yasm-1.1" |
105 |
|
106 |
# Mesa 7.10 needed for WebGL + bugfixes |
107 |
RDEPEND=">=sys-devel/binutils-2.16.1 |
108 |
>=dev-libs/nss-3.13.1 |
109 |
>=dev-libs/nspr-4.8.9 |
110 |
>=dev-libs/glib-2.26 |
111 |
>=media-libs/mesa-7.10 |
112 |
>=media-libs/libpng-1.4.1[apng] |
113 |
>=x11-libs/cairo-1.10 |
114 |
>=x11-libs/pango-1.14.0 |
115 |
>=x11-libs/gtk+-2.14 |
116 |
virtual/libffi |
117 |
system-sqlite? ( >=dev-db/sqlite-3.7.7.1[fts3,secure-delete,unlock-notify,debug=] ) |
118 |
crypt? ( >=app-crypt/gnupg-1.4 ) |
119 |
webm? ( >=media-libs/libvpx-1.0.0 |
120 |
media-libs/alsa-lib )" |
121 |
|
122 |
DEPEND="${RDEPEND} |
123 |
dev-util/pkgconfig |
124 |
webm? ( amd64? ( ${ASM_DEPEND} ) |
125 |
x86? ( ${ASM_DEPEND} ) )" |
126 |
|
127 |
if [[ ${PV} == *beta* ]] ; then |
128 |
S="${WORKDIR}/comm-beta" |
129 |
else |
130 |
S="${WORKDIR}/comm-release" |
131 |
fi |
132 |
|
133 |
src_unpack() { |
134 |
unpack ${A} |
135 |
|
136 |
# Unpack language packs |
137 |
mozlinguas_src_unpack |
138 |
} |
139 |
|
140 |
pkg_setup() { |
141 |
if [[ ${PV} == *_pre* ]] ; then |
142 |
ewarn "You're using an unofficial release of ${PN}. Don't file any bug in" |
143 |
ewarn "Gentoo's Bugtracker against this package in case it breaks for you." |
144 |
ewarn "Those belong to upstream: https://bugzilla.mozilla.org" |
145 |
fi |
146 |
|
147 |
moz_pkgsetup |
148 |
} |
149 |
|
150 |
src_prepare() { |
151 |
# Apply our patches |
152 |
EPATCH_SUFFIX="patch" \ |
153 |
EPATCH_FORCE="yes" \ |
154 |
epatch "${WORKDIR}/seamonkey" |
155 |
|
156 |
# browser patches go here |
157 |
pushd "${S}"/mozilla &>/dev/null || die |
158 |
EPATCH_EXCLUDE="2000-firefox_gentoo_install_dirs.patch" \ |
159 |
EPATCH_SUFFIX="patch" \ |
160 |
EPATCH_FORCE="yes" \ |
161 |
epatch "${WORKDIR}/firefox" |
162 |
popd &>/dev/null || die |
163 |
|
164 |
# Allow user to apply any additional patches without modifing ebuild |
165 |
epatch_user |
166 |
|
167 |
if use crypt ; then |
168 |
mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail |
169 |
cd "${S}" |
170 |
fi |
171 |
|
172 |
#Ensure we disable javaxpcom by default to prevent configure breakage |
173 |
sed -i -e s:MOZ_JAVAXPCOM\=1::g "${S}"/mozilla/xulrunner/confvars.sh \ |
174 |
|| die "sed javaxpcom" |
175 |
|
176 |
# Disable gnomevfs extension |
177 |
sed -i -e "s:gnomevfs::" "${S}/"suite/confvars.sh \ |
178 |
|| die "Failed to remove gnomevfs extension" |
179 |
|
180 |
eautoreconf |
181 |
cd "${S}"/mozilla |
182 |
eautoconf |
183 |
} |
184 |
|
185 |
src_configure() { |
186 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
187 |
MEXTENSIONS="" |
188 |
|
189 |
#################################### |
190 |
# |
191 |
# mozconfig, CFLAGS and CXXFLAGS setup |
192 |
# |
193 |
#################################### |
194 |
|
195 |
mozconfig_init |
196 |
mozconfig_config |
197 |
|
198 |
# It doesn't compile on alpha without this LDFLAGS |
199 |
use alpha && append-ldflags "-Wl,--no-relax" |
200 |
|
201 |
if use chatzilla ; then |
202 |
MEXTENSIONS+=",irc" |
203 |
else |
204 |
MEXTENSIONS+=",-irc" |
205 |
fi |
206 |
if ! use roaming ; then |
207 |
MEXTENSIONS+=",-sroaming" |
208 |
fi |
209 |
|
210 |
mozconfig_annotate '' --prefix="${EPREFIX}"/usr |
211 |
mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir) |
212 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
213 |
mozconfig_annotate '' --disable-gconf |
214 |
mozconfig_annotate '' --enable-jsd |
215 |
mozconfig_annotate '' --enable-canvas |
216 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
217 |
mozconfig_annotate '' --enable-system-ffi |
218 |
mozconfig_annotate '' --with-system-png |
219 |
mozconfig_annotate '' --target="${CTARGET:-${CHOST}}" |
220 |
|
221 |
mozconfig_use_enable system-sqlite |
222 |
mozconfig_use_enable methodjit |
223 |
|
224 |
# Use an objdir to keep things organized. |
225 |
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/seamonk" \ |
226 |
>> "${S}"/.mozconfig |
227 |
|
228 |
# Finalize and report settings |
229 |
mozconfig_final |
230 |
|
231 |
# Work around breakage in makeopts with --no-print-directory |
232 |
MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
233 |
|
234 |
if [[ $(gcc-major-version) -lt 4 ]] ; then |
235 |
append-cxxflags -fno-stack-protector |
236 |
elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then |
237 |
if use amd64 || use x86 ; then |
238 |
append-flags -mno-avx |
239 |
fi |
240 |
fi |
241 |
} |
242 |
|
243 |
src_compile() { |
244 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
245 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" \ |
246 |
emake -f client.mk || die |
247 |
|
248 |
# Only build enigmail extension if conditions are met. |
249 |
if use crypt ; then |
250 |
cd "${S}"/mailnews/extensions/enigmail || die |
251 |
./makemake -r 2&> /dev/null |
252 |
cd "${S}"/seamonk/mailnews/extensions/enigmail |
253 |
emake || die "make enigmail failed" |
254 |
emake xpi || die "make enigmail xpi failed" |
255 |
fi |
256 |
} |
257 |
|
258 |
src_install() { |
259 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
260 |
declare emid |
261 |
local obj_dir="seamonk" |
262 |
cd "${S}/${obj_dir}" |
263 |
|
264 |
# Copy our preference before omnijar is created. |
265 |
sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \ |
266 |
"${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \ |
267 |
|| die |
268 |
|
269 |
pax-mark m "${S}"/dist/bin/xpcshell |
270 |
|
271 |
emake DESTDIR="${D}" install || die "emake install failed" |
272 |
cp -f "${FILESDIR}"/icon/${PN}.desktop "${T}" || die |
273 |
|
274 |
if use crypt ; then |
275 |
cd "${T}" || die |
276 |
unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi install.rdf || die |
277 |
emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
278 |
|
279 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
280 |
cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
281 |
unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi || die |
282 |
|
283 |
cd "${S}" || die |
284 |
fi |
285 |
|
286 |
sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \ |
287 |
-i "${T}"/${PN}.desktop || die |
288 |
sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \ |
289 |
|| die |
290 |
|
291 |
# Install language packs |
292 |
mozlinguas_src_install |
293 |
|
294 |
# Add StartupNotify=true bug 290401 |
295 |
if use startup-notification ; then |
296 |
echo "StartupNotify=true" >> "${T}"/${PN}.desktop |
297 |
fi |
298 |
|
299 |
# Install icon and .desktop for menu entry |
300 |
newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png \ |
301 |
|| die |
302 |
domenu "${T}"/${PN}.desktop || die |
303 |
|
304 |
# Required in order to use plugins and even run seamonkey on hardened. |
305 |
pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container} |
306 |
|
307 |
# Handle plugins dir through nsplugins.eclass |
308 |
share_plugins_dir |
309 |
|
310 |
doman "${S}"/${obj_dir}/suite/app/${PN}.1 || die |
311 |
} |
312 |
|
313 |
pkg_preinst() { |
314 |
declare MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}" |
315 |
|
316 |
if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then |
317 |
rm ${MOZILLA_FIVE_HOME}/plugins -rf |
318 |
fi |
319 |
} |
320 |
|
321 |
pkg_postinst() { |
322 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
323 |
|
324 |
# Update mimedb for the new .desktop file |
325 |
fdo-mime_desktop_database_update |
326 |
|
327 |
if use chatzilla ; then |
328 |
elog "chatzilla is now an extension which can be en-/disabled and configured via" |
329 |
elog "the Add-on manager." |
330 |
fi |
331 |
} |