1 |
polynomial-c 14/10/04 20:04:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: seamonkey-2.29.1.ebuild |
5 |
Removed: seamonkey-2.29-r1.ebuild |
6 |
Log: |
7 |
Version bump. Removed old |
8 |
|
9 |
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
10 |
|
11 |
Revision Changes Path |
12 |
1.496 www-client/seamonkey/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.496&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.496&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/ChangeLog?r1=1.495&r2=1.496 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v |
21 |
retrieving revision 1.495 |
22 |
retrieving revision 1.496 |
23 |
diff -u -r1.495 -r1.496 |
24 |
--- ChangeLog 11 Sep 2014 11:01:13 -0000 1.495 |
25 |
+++ ChangeLog 4 Oct 2014 20:04:02 -0000 1.496 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for www-client/seamonkey |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.495 2014/09/11 11:01:13 polynomial-c Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.496 2014/10/04 20:04:02 polynomial-c Exp $ |
31 |
+ |
32 |
+*seamonkey-2.29.1 (04 Oct 2014) |
33 |
+ |
34 |
+ 04 Oct 2014; Lars Wendler <polynomial-c@g.o> |
35 |
+ -seamonkey-2.29-r1.ebuild, +seamonkey-2.29.1.ebuild: |
36 |
+ Version bump. Removed old. |
37 |
|
38 |
*seamonkey-2.29-r1 (11 Sep 2014) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 www-client/seamonkey/seamonkey-2.29.1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.29.1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/seamonkey/seamonkey-2.29.1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: seamonkey-2.29.1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 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.29.1.ebuild,v 1.1 2014/10/04 20:04:02 polynomial-c Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
WANT_AUTOCONF="2.1" |
56 |
|
57 |
# This list can be updated with scripts/get_langs.sh from the mozilla overlay |
58 |
MOZ_LANGS=(be ca cs de en en-GB en-US es-AR es-ES fi fr gl hu it ja lt nb-NO nl |
59 |
pl pt-PT ru sk sv-SE tr uk zh-CN zh-TW) |
60 |
|
61 |
MOZ_PV="${PV/_pre*}" |
62 |
MOZ_PV="${MOZ_PV/_alpha/a}" |
63 |
MOZ_PV="${MOZ_PV/_beta/b}" |
64 |
MOZ_PV="${MOZ_PV/_rc/rc}" |
65 |
MOZ_P="${P}" |
66 |
MY_MOZ_P="${PN}-${MOZ_PV}" |
67 |
|
68 |
if [[ ${PV} == *_pre* ]] ; then |
69 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/candidates/${MOZ_PV}-candidates/build${PV##*_pre}" |
70 |
MOZ_LANGPACK_PREFIX="linux-i686/xpi/" |
71 |
# And the langpack stuff stays at eclass defaults |
72 |
else |
73 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/${MOZ_PV}" |
74 |
MOZ_LANGPACK_PREFIX="langpack/${MY_MOZ_P}." |
75 |
MOZ_LANGPACK_SUFFIX=".langpack.xpi" |
76 |
fi |
77 |
|
78 |
MOZCONFIG_OPTIONAL_WIFI=1 |
79 |
MOZCONFIG_OPTIONAL_JIT="enabled" |
80 |
inherit check-reqs flag-o-matic toolchain-funcs eutils mozconfig-v4.31 multilib pax-utils fdo-mime autotools mozextension nsplugins mozlinguas |
81 |
|
82 |
PATCHFF="firefox-31.0-patches-0.2" |
83 |
PATCH="${PN}-2.23-patches-01" |
84 |
EMVER="1.7.2" |
85 |
|
86 |
DESCRIPTION="Seamonkey Web Browser" |
87 |
HOMEPAGE="http://www.seamonkey-project.org" |
88 |
|
89 |
if [[ ${PV} == *_pre* ]] ; then |
90 |
# pre-releases. No need for arch teams to change KEYWORDS here. |
91 |
|
92 |
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86" |
93 |
else |
94 |
# This is where arch teams should change the KEYWORDS. |
95 |
|
96 |
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86" |
97 |
fi |
98 |
|
99 |
SLOT="0" |
100 |
LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
101 |
IUSE="+chatzilla +crypt +ipc minimal pulseaudio +roaming selinux test" |
102 |
|
103 |
SRC_URI="${SRC_URI} |
104 |
${MOZ_FTP_URI}/source/${MY_MOZ_P}.source.tar.bz2 -> ${P}.source.tar.bz2 |
105 |
http://dev.gentoo.org/~axs/mozilla/patchsets/${PATCHFF}.tar.xz |
106 |
http://dev.gentoo.org/~polynomial-c/mozilla/patchsets/${PATCH}.tar.xz |
107 |
crypt? ( http://www.enigmail.net/download/source/enigmail-${EMVER}.tar.gz )" |
108 |
|
109 |
ASM_DEPEND=">=dev-lang/yasm-1.1" |
110 |
|
111 |
RDEPEND=">=dev-libs/nss-3.16.2 |
112 |
>=dev-libs/nspr-4.10.6 |
113 |
crypt? ( || ( |
114 |
( >=app-crypt/gnupg-2.0 |
115 |
|| ( |
116 |
app-crypt/pinentry[gtk] |
117 |
app-crypt/pinentry[qt4] |
118 |
) |
119 |
) |
120 |
=app-crypt/gnupg-1.4* ) ) |
121 |
selinux? ( sec-policy/selinux-mozilla )" |
122 |
|
123 |
DEPEND="${RDEPEND} |
124 |
!elibc_glibc? ( !elibc_uclibc? ( dev-libs/libexecinfo ) ) |
125 |
crypt? ( dev-lang/perl ) |
126 |
amd64? ( ${ASM_DEPEND} |
127 |
virtual/opengl ) |
128 |
x86? ( ${ASM_DEPEND} |
129 |
virtual/opengl )" |
130 |
|
131 |
if [[ ${PV} == *beta* ]] ; then |
132 |
S="${WORKDIR}/comm-beta" |
133 |
else |
134 |
S="${WORKDIR}/comm-release" |
135 |
fi |
136 |
|
137 |
BUILD_OBJ_DIR="${WORKDIR}/seamonk" |
138 |
|
139 |
pkg_setup() { |
140 |
if [[ ${PV} == *_pre* ]] ; then |
141 |
ewarn "You're using an unofficial release of ${PN}. Don't file any bug in" |
142 |
ewarn "Gentoo's Bugtracker against this package in case it breaks for you." |
143 |
ewarn "Those belong to upstream: https://bugzilla.mozilla.org" |
144 |
fi |
145 |
|
146 |
moz_pkgsetup |
147 |
} |
148 |
|
149 |
pkg_pretend() { |
150 |
# Ensure we have enough disk space to compile |
151 |
if use debug || use test ; then |
152 |
CHECKREQS_DISK_BUILD="8G" |
153 |
else |
154 |
CHECKREQS_DISK_BUILD="4G" |
155 |
fi |
156 |
check-reqs_pkg_setup |
157 |
} |
158 |
|
159 |
src_unpack() { |
160 |
unpack ${A} |
161 |
|
162 |
# Unpack language packs |
163 |
mozlinguas_src_unpack |
164 |
} |
165 |
|
166 |
src_prepare() { |
167 |
# Apply our patches |
168 |
EPATCH_SUFFIX="patch" \ |
169 |
EPATCH_FORCE="yes" \ |
170 |
epatch "${WORKDIR}/seamonkey" |
171 |
|
172 |
# browser patches go here |
173 |
pushd "${S}"/mozilla &>/dev/null || die |
174 |
EPATCH_EXCLUDE="2000-firefox_gentoo_install_dirs.patch |
175 |
8000_gcc49_mozbug999496_ff31.patch" \ |
176 |
EPATCH_SUFFIX="patch" \ |
177 |
EPATCH_FORCE="yes" \ |
178 |
epatch "${WORKDIR}/firefox" |
179 |
popd &>/dev/null || die |
180 |
# drop -Wl,--build-id from LDFLAGS, bug #465466 |
181 |
|
182 |
# Shell scripts sometimes contain DOS line endings; bug 391889 |
183 |
grep -rlZ --include="*.sh" $'\r$' . | |
184 |
while read -r -d $'\0' file ; do |
185 |
einfo edos2unix "${file}" |
186 |
edos2unix "${file}" |
187 |
done |
188 |
|
189 |
# Allow user to apply any additional patches without modifing ebuild |
190 |
epatch_user |
191 |
|
192 |
local ms="${S}/mozilla" |
193 |
|
194 |
# Enable gnomebreakpad |
195 |
if use debug ; then |
196 |
sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \ |
197 |
"${ms}"/build/unix/run-mozilla.sh || die "sed failed!" |
198 |
fi |
199 |
|
200 |
# Ensure that are plugins dir is enabled as default |
201 |
sed -i -e "s:/usr/lib/mozilla/plugins:/usr/lib/nsbrowser/plugins:" \ |
202 |
"${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 32bit!" |
203 |
sed -i -e "s:/usr/lib64/mozilla/plugins:/usr/lib64/nsbrowser/plugins:" \ |
204 |
"${ms}"/xpcom/io/nsAppFileLocationProvider.cpp || die "sed failed to replace plugin path for 64bit!" |
205 |
|
206 |
# Don't exit with error when some libs are missing which we have in |
207 |
# system. |
208 |
sed '/^MOZ_PKG_FATAL_WARNINGS/s@= 1@= 0@' \ |
209 |
-i "${S}"/suite/installer/Makefile.in || die |
210 |
# Don't error out when there's no files to be removed: |
211 |
sed 's@\(xargs rm\)$@\1 -f@' \ |
212 |
-i "${ms}"/toolkit/mozapps/installer/packager.mk || die |
213 |
|
214 |
eautoreconf |
215 |
cd "${S}"/mozilla || die |
216 |
eautoconf |
217 |
cd "${S}"/mozilla/js/src || die |
218 |
eautoconf |
219 |
} |
220 |
|
221 |
src_configure() { |
222 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
223 |
MEXTENSIONS="default" |
224 |
# Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) |
225 |
# Note: These are for Gentoo Linux use ONLY. For your own distribution, please |
226 |
# get your own set of keys. |
227 |
_google_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc |
228 |
|
229 |
#################################### |
230 |
# |
231 |
# mozconfig, CFLAGS and CXXFLAGS setup |
232 |
# |
233 |
#################################### |
234 |
|
235 |
mozconfig_init |
236 |
mozconfig_config |
237 |
|
238 |
# It doesn't compile on alpha without this LDFLAGS |
239 |
use alpha && append-ldflags "-Wl,--no-relax" |
240 |
|
241 |
if use chatzilla ; then |
242 |
MEXTENSIONS+=",irc" |
243 |
else |
244 |
MEXTENSIONS+=",-irc" |
245 |
fi |
246 |
if ! use roaming ; then |
247 |
MEXTENSIONS+=",-sroaming" |
248 |
fi |
249 |
|
250 |
# Setup api key for location services |
251 |
echo -n "${_google_api_key}" > "${S}"/google-api-key |
252 |
mozconfig_annotate '' --with-google-api-keyfile="${S}/google-api-key" |
253 |
|
254 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
255 |
mozconfig_annotate '' --enable-jsd |
256 |
mozconfig_annotate '' --enable-canvas |
257 |
|
258 |
# Other sm-specific settings |
259 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
260 |
|
261 |
mozconfig_annotate '' --enable-safe-browsing |
262 |
|
263 |
# Use an objdir to keep things organized. |
264 |
echo "mk_add_options MOZ_OBJDIR=${BUILD_OBJ_DIR}" \ |
265 |
>> "${S}"/.mozconfig |
266 |
|
267 |
# Finalize and report settings |
268 |
mozconfig_final |
269 |
|
270 |
if use crypt ; then |
271 |
pushd "${WORKDIR}"/enigmail &>/dev/null || die |
272 |
econf |
273 |
popd &>/dev/null || die |
274 |
fi |
275 |
|
276 |
|
277 |
# Work around breakage in makeopts with --no-print-directory |
278 |
MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
279 |
|
280 |
if [[ $(gcc-major-version) -lt 4 ]] ; then |
281 |
append-cxxflags -fno-stack-protector |
282 |
elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]] ; then |
283 |
if use amd64 || use x86 ; then |
284 |
append-flags -mno-avx |
285 |
fi |
286 |
fi |
287 |
} |
288 |
|
289 |
src_compile() { |
290 |
mkdir -p ${BUILD_OBJ_DIR} && cd ${BUILD_OBJ_DIR} || die |
291 |
|
292 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
293 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" SHELL="${SHELL}" \ |
294 |
emake V=1 -f "${S}/client.mk" |
295 |
|
296 |
# Only build enigmail extension if conditions are met. |
297 |
if use crypt ; then |
298 |
einfo "Building enigmail" |
299 |
pushd "${WORKDIR}"/enigmail &>/dev/null || die |
300 |
emake -j1 |
301 |
emake xpi |
302 |
popd &>/dev/null || die |
303 |
fi |
304 |
} |
305 |
|
306 |
src_install() { |
307 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
308 |
DICTPATH="\"${EPREFIX}/usr/share/myspell\"" |
309 |
|
310 |
local emid |
311 |
cd "${BUILD_OBJ_DIR}" || die |
312 |
|
313 |
# Pax mark xpcshell for hardened support, only used for startupcache creation. |
314 |
pax-mark m "${BUILD_OBJ_DIR}/mozilla/dist/bin/xpcshell" |
315 |
|
316 |
# Copy our preference before omnijar is created. |
317 |
sed "s|SEAMONKEY_PVR|${PVR}|" "${FILESDIR}"/all-gentoo-1.js > \ |
318 |
"${BUILD_OBJ_DIR}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \ |
319 |
|| die |
320 |
|
321 |
# Set default path to search for dictionaries. |
322 |
echo "pref(\"spellchecker.dictionary_path\", ${DICTPATH});" \ |
323 |
>> "${BUILD_OBJ_DIR}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \ |
324 |
|| die |
325 |
|
326 |
echo 'pref("extensions.autoDisableScopes", 3);' >> \ |
327 |
"${BUILD_OBJ_DIR}/mozilla/dist/bin/defaults/pref/all-gentoo.js" \ |
328 |
|| die |
329 |
|
330 |
MOZ_MAKE_FLAGS="${MAKEOPTS}" \ |
331 |
emake DESTDIR="${D}" install |
332 |
cp "${FILESDIR}"/icon/${PN}.desktop "${T}" || die |
333 |
|
334 |
if use crypt ; then |
335 |
local em_dir="${WORKDIR}/enigmail/build" |
336 |
pushd "${T}" &>/dev/null || die |
337 |
unzip "${em_dir}"/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} |
341 |
cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
342 |
unzip "${em_dir}"/enigmail*.xpi || die |
343 |
|
344 |
popd &>/dev/null || die |
345 |
fi |
346 |
|
347 |
sed 's|^\(MimeType=.*\)$|\1text/x-vcard;text/directory;application/mbox;message/rfc822;x-scheme-handler/mailto;|' \ |
348 |
-i "${T}"/${PN}.desktop || die |
349 |
sed 's|^\(Categories=.*\)$|\1Email;|' -i "${T}"/${PN}.desktop \ |
350 |
|| die |
351 |
|
352 |
# Install language packs |
353 |
mozlinguas_src_install |
354 |
|
355 |
# Add StartupNotify=true bug 290401 |
356 |
if use startup-notification ; then |
357 |
echo "StartupNotify=true" >> "${T}"/${PN}.desktop || die |
358 |
fi |
359 |
|
360 |
# Install icon and .desktop for menu entry |
361 |
newicon "${S}"/suite/branding/nightly/content/icon64.png ${PN}.png |
362 |
domenu "${T}"/${PN}.desktop |
363 |
|
364 |
# Required in order to use plugins and even run seamonkey on hardened. |
365 |
pax-mark m "${ED}"${MOZILLA_FIVE_HOME}/{seamonkey,seamonkey-bin,plugin-container} |
366 |
|
367 |
if use minimal ; then |
368 |
rm -rf "${ED}"/usr/include "${ED}${MOZILLA_FIVE_HOME}"/{idl,include,lib,sdk} |
369 |
fi |
370 |
|
371 |
# Handle plugins dir through nsplugins.eclass |
372 |
share_plugins_dir |
373 |
|
374 |
doman "${BUILD_OBJ_DIR}/suite/app/${PN}.1" |
375 |
|
376 |
# revdep-rebuild entry |
377 |
insinto /etc/revdep-rebuild |
378 |
echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}*" >> ${T}/11${PN} |
379 |
doins "${T}"/11${PN} |
380 |
} |
381 |
|
382 |
pkg_preinst() { |
383 |
MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}" |
384 |
|
385 |
if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then |
386 |
rm ${MOZILLA_FIVE_HOME}/plugins -rf |
387 |
fi |
388 |
} |
389 |
|
390 |
pkg_postinst() { |
391 |
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
392 |
|
393 |
# Update mimedb for the new .desktop file |
394 |
fdo-mime_desktop_database_update |
395 |
|
396 |
if use chatzilla ; then |
397 |
elog "chatzilla is now an extension which can be en-/disabled and configured via" |
398 |
elog "the Add-on manager." |
399 |
fi |
400 |
} |