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