1 |
volkmar 09/10/28 18:19:42 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: seamonkey-2.0.ebuild |
5 |
Log: |
6 |
Add seamonkey-2.0 ebuild, moved from mozilla overlay. |
7 |
(Portage version: 14478-svn/cvs/Linux ppc) |
8 |
|
9 |
Revision Changes Path |
10 |
1.207 www-client/seamonkey/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.207&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/seamonkey/ChangeLog?rev=1.207&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/seamonkey/ChangeLog?r1=1.206&r2=1.207 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v |
19 |
retrieving revision 1.206 |
20 |
retrieving revision 1.207 |
21 |
diff -u -r1.206 -r1.207 |
22 |
--- ChangeLog 26 Oct 2009 00:35:30 -0000 1.206 |
23 |
+++ ChangeLog 28 Oct 2009 18:19:41 -0000 1.207 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for www-client/seamonkey |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.206 2009/10/26 00:35:30 anarchy Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/ChangeLog,v 1.207 2009/10/28 18:19:41 volkmar Exp $ |
29 |
+ |
30 |
+*seamonkey-2.0 (28 Oct 2009) |
31 |
+ |
32 |
+ 28 Oct 2009; Mounir Lamouri <volkmar@g.o> +seamonkey-2.0.ebuild: |
33 |
+ Add seamonkey-2.0 ebuild, moved from mozilla overlay. |
34 |
|
35 |
*seamonkey-2.0_rc2-r1 (26 Oct 2009) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 www-client/seamonkey/seamonkey-2.0.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/seamonkey/seamonkey-2.0.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/seamonkey/seamonkey-2.0.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: seamonkey-2.0.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2009 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/www-client/seamonkey/seamonkey-2.0.ebuild,v 1.1 2009/10/28 18:19:41 volkmar Exp $ |
50 |
|
51 |
EAPI="2" |
52 |
WANT_AUTOCONF="2.1" |
53 |
|
54 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib fdo-mime autotools mozextension java-pkg-opt-2 |
55 |
|
56 |
PATCH="${PN}-2.0-patches-0.1" |
57 |
EMVER="0.97a0" |
58 |
|
59 |
LANGS="be ca cs de en-US es-AR es-ES fr gl hu ka lt nb-NO nl pl pt-PT ru sk sv-SE tr" |
60 |
NOSHORTLANGS="es-AR es-ES nb-NO pt-PT sv-SE" |
61 |
|
62 |
MY_PV="${PV/_rc/rc}" |
63 |
MY_P="${PN}-${MY_PV}" |
64 |
|
65 |
DESCRIPTION="Seamonkey Web Browser" |
66 |
HOMEPAGE="http://www.seamonkey-project.org" |
67 |
|
68 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
69 |
SLOT="0" |
70 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
71 |
IUSE="+alsa +crypt java ldap mozdevelop moznocompose moznoirc moznomail moznoroaming sqlite restrict-javascript" |
72 |
|
73 |
REL_URI="http://releases.mozilla.org/pub/mozilla.org/${PN}/releases" |
74 |
SRC_URI="${REL_URI}/${MY_PV}/source/${MY_P}.source.tar.bz2 |
75 |
http://dev.gentoo.org/~anarchy/dist/${PATCH}.tar.bz2 |
76 |
crypt? ( !moznomail? ( http://dev.gentoo.org/~anarchy/dist/enigmail-${EMVER}-20091011.tar.gz ) )" |
77 |
|
78 |
for X in ${LANGS} ; do |
79 |
if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then |
80 |
SRC_URI="${SRC_URI} |
81 |
linguas_${X/-/_}? ( ${REL_URI}/${MY_PV}/langpack/${MY_P}.${X}.langpack.xpi -> ${MY_P}-${X}.xpi )" |
82 |
fi |
83 |
IUSE="${IUSE} linguas_${X/-/_}" |
84 |
# english is handled internally |
85 |
if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then |
86 |
if [ "${X}" != "en-US" ]; then |
87 |
SRC_URI="${SRC_URI} |
88 |
linguas_${X%%-*}? ( ${REL_URI}/${MY_PV}/langpack/${MY_P}.${X}.langpack.xpi -> ${MY_P}-${X}.xpi )" |
89 |
fi |
90 |
IUSE="${IUSE} linguas_${X%%-*}" |
91 |
fi |
92 |
done |
93 |
|
94 |
RDEPEND="java? ( virtual/jre ) |
95 |
>=sys-devel/binutils-2.16.1 |
96 |
>=dev-libs/nss-3.12.2 |
97 |
>=dev-libs/nspr-4.8 |
98 |
alsa? ( media-libs/alsa-lib ) |
99 |
sqlite? ( >=dev-db/sqlite-3.6.10 ) |
100 |
>=app-text/hunspell-1.2 |
101 |
x11-libs/cairo[X] |
102 |
x11-libs/pango[X] |
103 |
crypt? ( !moznomail? ( >=app-crypt/gnupg-1.4 ) )" |
104 |
|
105 |
DEPEND="${RDEPEND} |
106 |
dev-util/pkgconfig |
107 |
java? ( >=virtual/jdk-1.4 )" |
108 |
|
109 |
PDEPEND="restrict-javascript? ( www-plugins/noscript )" |
110 |
|
111 |
S="${WORKDIR}/comm-1.9.1" |
112 |
|
113 |
# Needed by src_compile() and src_install(). |
114 |
# Would do in pkg_setup but that loses the export attribute, |
115 |
# they become pure shell variables. |
116 |
export BUILD_OFFICIAL=1 |
117 |
export MOZILLA_OFFICIAL=1 |
118 |
|
119 |
linguas() { |
120 |
local LANG SLANG |
121 |
for LANG in ${LINGUAS}; do |
122 |
if has ${LANG} en en_US; then |
123 |
has en ${linguas} || linguas="${linguas:+"${linguas} "}en" |
124 |
continue |
125 |
elif has ${LANG} ${LANGS//-/_}; then |
126 |
has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" |
127 |
continue |
128 |
elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then |
129 |
for X in ${LANGS}; do |
130 |
if [[ "${X}" == "${LANG}-"* ]] && \ |
131 |
[[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then |
132 |
has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" |
133 |
continue 2 |
134 |
fi |
135 |
done |
136 |
fi |
137 |
ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" |
138 |
done |
139 |
} |
140 |
|
141 |
src_unpack() { |
142 |
unpack ${A} |
143 |
|
144 |
linguas |
145 |
for X in ${linguas}; do |
146 |
# FIXME: Add support for unpacking xpis to portage |
147 |
[[ ${X} != "en" ]] && xpi_unpack "${MY_P}-${X}.xpi" |
148 |
done |
149 |
if [[ ${linguas} != "" && ${linguas} != "en" ]]; then |
150 |
einfo "Selected language packs (first will be default): ${linguas}" |
151 |
fi |
152 |
} |
153 |
|
154 |
pkg_setup() { |
155 |
java-pkg-opt-2_pkg_setup |
156 |
|
157 |
if use sqlite ; then |
158 |
einfo |
159 |
elog "You are enabling system sqlite. Do not file a bug with gentoo if you have" |
160 |
elog "issues that arise from enabling system sqlite. All bugs will be concidered" |
161 |
elog "invalid. All patches are welcomed to fix any issues that might be found with" |
162 |
elog "system sqlite. If you are starting with a fresh profile you can enable sqlite" |
163 |
elog "without any major issues." |
164 |
epause 10 |
165 |
fi |
166 |
} |
167 |
|
168 |
src_prepare() { |
169 |
java-pkg-opt-2_src_prepare |
170 |
|
171 |
# Apply our patches |
172 |
EPATCH_SUFFIX="patch" \ |
173 |
EPATCH_FORCE="yes" \ |
174 |
epatch "${WORKDIR}" |
175 |
|
176 |
if use crypt && ! use moznomail; then |
177 |
mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail |
178 |
cd "${S}"/mailnews/extensions/enigmail || die |
179 |
epatch "${FILESDIR}"/enigmail/70_enigmail-fix.patch |
180 |
epatch "${FILESDIR}"/enigmail/0.95.0-replytolist.patch |
181 |
makemake2 |
182 |
cd "${S}" |
183 |
fi |
184 |
|
185 |
eautoreconf |
186 |
} |
187 |
|
188 |
src_configure() { |
189 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
190 |
MEXTENSIONS="" |
191 |
|
192 |
#################################### |
193 |
# |
194 |
# mozconfig, CFLAGS and CXXFLAGS setup |
195 |
# |
196 |
#################################### |
197 |
|
198 |
mozconfig_init |
199 |
mozconfig_config |
200 |
|
201 |
# It doesn't compile on alpha without this LDFLAGS |
202 |
use alpha && append-ldflags "-Wl,--no-relax" |
203 |
|
204 |
if use moznoirc ; then |
205 |
MEXTENSIONS="${MEXTENSIONS},-irc" |
206 |
fi |
207 |
if use moznoroaming ; then |
208 |
MEXTENSIONS="${MEXTENSIONS},-sroaming" |
209 |
fi |
210 |
|
211 |
if ! use gnome ; then |
212 |
MEXTENSIONS="${MEXTENSIONS},-gnomevfs" |
213 |
fi |
214 |
|
215 |
if use moznomail ; then |
216 |
mozconfig_annotate '+moznomail' --disable-mailnews |
217 |
fi |
218 |
|
219 |
if use moznocompose ; then |
220 |
if use moznoirc && use moznomail ; then |
221 |
mozconfig_annotate '+moznocompose' --disable-composer |
222 |
fi |
223 |
fi |
224 |
|
225 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
226 |
mozconfig_annotate '' --enable-application=suite |
227 |
mozconfig_annotate 'broken' --disable-mochitest |
228 |
mozconfig_annotate 'broken' --disable-crashreporter |
229 |
mozconfig_annotate '' --enable-system-hunspell |
230 |
mozconfig_annotate '' --enable-system-sqlite |
231 |
mozconfig_annotate '' --enable-image-encoder=all |
232 |
mozconfig_annotate '' --enable-canvas |
233 |
mozconfig_annotate '' --with-system-nspr |
234 |
mozconfig_annotate '' --with-system-nss |
235 |
mozconfig_annotate '' --enable-system-lcms |
236 |
mozconfig_annotate '' --enable-oji --enable-mathml |
237 |
mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks |
238 |
mozconfig_annotate '' --disable-installer |
239 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
240 |
|
241 |
# Enable/Disable based on USE flags |
242 |
mozconfig_use_enable alsa ogg |
243 |
mozconfig_use_enable alsa wave |
244 |
mozconfig_use_enable ldap |
245 |
mozconfig_use_enable ldap ldap-experimental |
246 |
mozconfig_use_enable sqlite system-sqlite |
247 |
mozconfig_use_enable java javaxpcom |
248 |
|
249 |
# Finalize and report settings |
250 |
mozconfig_final |
251 |
|
252 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
253 |
append-cxxflags -fno-stack-protector |
254 |
fi |
255 |
|
256 |
#################################### |
257 |
# |
258 |
# Configure and build |
259 |
# |
260 |
#################################### |
261 |
|
262 |
# Work around breakage in makeopts with --no-print-directory |
263 |
MAKEOPTS="${MAKEOPTS/--no-print-directory/}" |
264 |
|
265 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf |
266 |
} |
267 |
|
268 |
src_compile() { |
269 |
# Should the build use multiprocessing? Not enabled by default, as it tends to break. |
270 |
[ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1" |
271 |
emake ${jobs} || die |
272 |
|
273 |
# Only build enigmail extension if conditions are met. |
274 |
if use crypt && ! use moznomail; then |
275 |
emake -C "${S}"/mailnews/extensions/enigmail || die "make enigmail failed" |
276 |
emake -j1 -C "${S}"/mailnews/extensions/enigmail xpi || die "make enigmail xpi failed" |
277 |
fi |
278 |
} |
279 |
|
280 |
src_install() { |
281 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
282 |
declare emid |
283 |
|
284 |
emake DESTDIR="${D}" install || die "emake install failed" |
285 |
|
286 |
if use crypt && ! use moznomail; then |
287 |
cd "${T}" |
288 |
unzip "${S}"/mozilla/dist/bin/enigmail*.xpi install.rdf |
289 |
emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
290 |
|
291 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} |
292 |
cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} |
293 |
unzip "${S}"/mozilla/dist/bin/enigmail*.xpi |
294 |
fi |
295 |
|
296 |
linguas |
297 |
for X in ${linguas}; do |
298 |
[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${MY_P}-${X}" |
299 |
done |
300 |
|
301 |
local LANG=${linguas%% *} |
302 |
if [[ -n ${LANG} && ${LANG} != "en" ]]; then |
303 |
elog "Setting default locale to ${LANG}" |
304 |
dosed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" \ |
305 |
${MOZILLA_FIVE_HOME}/defaults/pref/suite-l10n.js || \ |
306 |
die "sed failed to change locale" |
307 |
fi |
308 |
|
309 |
# Install icon and .desktop for menu entry |
310 |
newicon "${S}"/suite/branding/content/icon64.png seamonkey.png |
311 |
domenu "${FILESDIR}"/icon/seamonkey.desktop |
312 |
|
313 |
# Add StartupNotify=true bug 290401 |
314 |
if use startup-notification ; then |
315 |
echo "StartupNotify=true" >> "${D}"/usr/share/applications/seamonkey.desktop |
316 |
fi |
317 |
|
318 |
# Add vendor |
319 |
echo "pref(\"general.useragent.vendor\",\"Gentoo\");" \ |
320 |
>> "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/vendor.js |
321 |
|
322 |
# Plugins dir |
323 |
rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins || die "failed to remove existing plugins dir" |
324 |
dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins |
325 |
|
326 |
# shiny new man page |
327 |
doman "${S}"/suite/app/${PN}.1 |
328 |
} |
329 |
|
330 |
pkg_preinst() { |
331 |
declare MOZILLA_FIVE_HOME="${ROOT}/usr/$(get_libdir)/${PN}" |
332 |
|
333 |
if [ -d ${MOZILLA_FIVE_HOME}/plugins ] ; then |
334 |
rm ${MOZILLA_FIVE_HOME}/plugins -rf |
335 |
fi |
336 |
} |
337 |
|
338 |
pkg_postinst() { |
339 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
340 |
|
341 |
# Update mimedb for the new .desktop file |
342 |
fdo-mime_desktop_database_update |
343 |
|
344 |
if ! use moznoirc ; then |
345 |
elog "chatzilla is now an extension which can be en-/disabled and configured via" |
346 |
elog "the Add-on manager." |
347 |
fi |
348 |
} |