1 |
armin76 09/06/24 15:47:37 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: enigmail-0.95.7-r5.ebuild |
5 |
Log: |
6 |
Revision bump |
7 |
(Portage version: 2.1.6.13/cvs/Linux ia64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.159 x11-plugins/enigmail/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?rev=1.159&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?rev=1.159&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?r1=1.158&r2=1.159 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/ChangeLog,v |
19 |
retrieving revision 1.158 |
20 |
retrieving revision 1.159 |
21 |
diff -u -r1.158 -r1.159 |
22 |
--- ChangeLog 22 Mar 2009 15:28:20 -0000 1.158 |
23 |
+++ ChangeLog 24 Jun 2009 15:47:37 -0000 1.159 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for x11-plugins/enigmail |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/ChangeLog,v 1.158 2009/03/22 15:28:20 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/ChangeLog,v 1.159 2009/06/24 15:47:37 armin76 Exp $ |
29 |
+ |
30 |
+*enigmail-0.95.7-r5 (24 Jun 2009) |
31 |
+ |
32 |
+ 24 Jun 2009; Raúl Porcel <armin76@g.o> +enigmail-0.95.7-r5.ebuild: |
33 |
+ Revision bump |
34 |
|
35 |
22 Mar 2009; Raúl Porcel <armin76@g.o> enigmail-0.95.7-r4.ebuild: |
36 |
Bump patchset to fix #263215 |
37 |
|
38 |
|
39 |
|
40 |
1.1 x11-plugins/enigmail/enigmail-0.95.7-r5.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/enigmail-0.95.7-r5.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/enigmail-0.95.7-r5.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: enigmail-0.95.7-r5.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/x11-plugins/enigmail/enigmail-0.95.7-r5.ebuild,v 1.1 2009/06/24 15:47:37 armin76 Exp $ |
50 |
|
51 |
WANT_AUTOCONF="2.1" |
52 |
|
53 |
inherit flag-o-matic toolchain-funcs eutils nsplugins mozcoreconf mozextension makeedit multilib autotools |
54 |
|
55 |
LANGS="ar de el es-ES nb-NO pt-BR zh-CN" |
56 |
NOSHORTLANGS="ca-AD cs-CZ es-ES fi-FI fr-FR hu-HU it-IT ja-JP ko-KR nb-NO pl-PL pt-PT ro-RO ru-RU sk-SK sl-SI sv-SE tr-TR zh-TW" |
57 |
|
58 |
EMVER=${PV} |
59 |
TBVER="2.0.0.22" |
60 |
TBPATCH="2.0.0.21-patches-0.1" |
61 |
|
62 |
DESCRIPTION="GnuPG encryption plugin for thunderbird." |
63 |
HOMEPAGE="http://enigmail.mozdev.org" |
64 |
SRC_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${TBVER}/source/thunderbird-${TBVER}-source.tar.bz2 |
65 |
mirror://gentoo/mozilla-thunderbird-${TBPATCH}.tar.bz2 |
66 |
http://www.mozilla-enigmail.org/download/source/enigmail-${EMVER}.tar.gz" |
67 |
|
68 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
69 |
SLOT="0" |
70 |
LICENSE="MPL-1.1 GPL-2" |
71 |
IUSE="" |
72 |
|
73 |
for X in ${LANGS} ; do |
74 |
SRC_URI="${SRC_URI} linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )" |
75 |
IUSE="${IUSE} linguas_${X/-/_}" |
76 |
done |
77 |
# ( mirror://gentoo/${PN}-${X}-0.9x.xpi )" |
78 |
|
79 |
for X in ${NOSHORTLANGS} ; do |
80 |
SRC_URI="${SRC_URI} linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )" |
81 |
IUSE="${IUSE} linguas_${X%%-*}" |
82 |
done |
83 |
#( mirror://gentoo/${PN}-${X}-0.9x.xpi )" |
84 |
|
85 |
DEPEND=">=mail-client/mozilla-thunderbird-${TBVER} |
86 |
!>=mail-client/mozilla-thunderbird-3" |
87 |
RDEPEND="${DEPEND} |
88 |
>=app-crypt/gnupg-1.4 |
89 |
>=www-client/mozilla-launcher-1.56" |
90 |
|
91 |
S="${WORKDIR}/mozilla" |
92 |
|
93 |
# Needed by src_compile() and src_install(). |
94 |
# Would do in pkg_setup but that loses the export attribute, they |
95 |
# become pure shell variables. |
96 |
export BUILD_OFFICIAL=1 |
97 |
export MOZILLA_OFFICIAL=1 |
98 |
export MOZ_CO_PROJECT=mail |
99 |
|
100 |
linguas() { |
101 |
linguas= |
102 |
local LANG |
103 |
for LANG in ${LINGUAS}; do |
104 |
if hasq ${LANG} en en_US; then |
105 |
hasq en ${linguas} || \ |
106 |
linguas="${linguas:+"${linguas} "}en" |
107 |
continue |
108 |
elif hasq ${LANG} ${LANGS//-/_}; then |
109 |
hasq ${LANG//_/-} ${linguas} || \ |
110 |
linguas="${linguas:+"${linguas} "}${LANG//_/-}" |
111 |
continue |
112 |
else |
113 |
local SLANG |
114 |
for SLANG in ${NOSHORTLANGS}; do |
115 |
if [[ ${LANG} == ${SLANG%%-*} ]]; then |
116 |
hasq ${SLANG} ${linguas} || \ |
117 |
linguas="${linguas:+"${linguas} "}${SLANG}" |
118 |
continue 2 |
119 |
fi |
120 |
done |
121 |
fi |
122 |
ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" |
123 |
done |
124 |
} |
125 |
|
126 |
pkg_setup() { |
127 |
if has_version '>=app-crypt/gnupg-2.0.1-r2'; then |
128 |
if ! built_with_use -o app-crypt/pinentry gtk qt3; then |
129 |
die "You must build app-crypt/pinentry with GTK or QT3 support" |
130 |
fi |
131 |
fi |
132 |
} |
133 |
|
134 |
src_unpack() { |
135 |
unpack thunderbird-${TBVER}-source.tar.bz2 mozilla-thunderbird-${TBPATCH}.tar.bz2 || die "unpack failed" |
136 |
|
137 |
linguas |
138 |
for X in ${linguas}; do |
139 |
[[ ${X} != en ]] && xpi_unpack ${P}-${X}.xpi |
140 |
done |
141 |
|
142 |
# Apply our patches |
143 |
cd "${S}" || die "cd failed" |
144 |
EPATCH_SUFFIX="patch" \ |
145 |
EPATCH_FORCE="yes" \ |
146 |
epatch "${WORKDIR}"/patch |
147 |
|
148 |
# Unpack the enigmail plugin |
149 |
cd "${S}"/mailnews/extensions || die |
150 |
unpack enigmail-${EMVER}.tar.gz |
151 |
cd "${S}"/mailnews/extensions/enigmail || die "cd failed" |
152 |
makemake2 |
153 |
|
154 |
cd "${S}" |
155 |
|
156 |
# Use the right theme for thunderbird #45609 |
157 |
sed -i -ne '/^enigmail-skin.jar:$/ { :x; n; /^\t/bx; }; p' mailnews/extensions/enigmail/ui/jar.mn |
158 |
|
159 |
# Fix installation of enigmail.js |
160 |
epatch "${FILESDIR}"/70_enigmail-fix.patch |
161 |
# Make replytolist work with >0.95.0 |
162 |
epatch "${FILESDIR}"/0.95.0-replytolist.patch |
163 |
|
164 |
eautoreconf |
165 |
} |
166 |
|
167 |
src_compile() { |
168 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird" |
169 |
|
170 |
#################################### |
171 |
# |
172 |
# mozconfig, CFLAGS and CXXFLAGS setup |
173 |
# |
174 |
#################################### |
175 |
|
176 |
mozconfig_init |
177 |
|
178 |
# tb-specific settings |
179 |
mozconfig_annotate '' \ |
180 |
--with-system-nspr \ |
181 |
--with-system-nss \ |
182 |
--with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} \ |
183 |
--with-user-appdir=.thunderbird |
184 |
|
185 |
# Bug 246421 |
186 |
# Breaks builds with gcc-4.3 on amd64 |
187 |
if use amd64 && [[ $(gcc-version) == "4.3" ]]; then |
188 |
mozconfig_annotate 'gcc-4.3 breaks build on amd64 with -O2+' --enable-optimize=-Os |
189 |
fi |
190 |
|
191 |
# Finalize and report settings |
192 |
mozconfig_final |
193 |
|
194 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
195 |
append-cxxflags -fno-stack-protector |
196 |
fi |
197 |
|
198 |
#################################### |
199 |
# |
200 |
# Configure and build Thunderbird |
201 |
# |
202 |
#################################### |
203 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
204 |
econf || die |
205 |
|
206 |
# This removes extraneous CFLAGS from the Makefiles to reduce RAM |
207 |
# requirements while compiling |
208 |
edit_makefiles |
209 |
|
210 |
# Only build the parts necessary to support building enigmail |
211 |
emake -j1 export || die "make export failed" |
212 |
emake -C modules/libreg || die "make modules/libreg failed" |
213 |
emake -C xpcom/string || die "make xpcom/string failed" |
214 |
emake -C xpcom || die "make xpcom failed" |
215 |
emake -C xpcom/obsolete || die "make xpcom/obsolete failed" |
216 |
|
217 |
# Build the enigmail plugin |
218 |
einfo "Building Enigmail plugin..." |
219 |
emake -C "${S}"/mailnews/extensions/enigmail || die "make enigmail failed" |
220 |
|
221 |
# Package the enigmail plugin; this may be the easiest way to collect the |
222 |
# necessary files |
223 |
emake -j1 -C "${S}"/mailnews/extensions/enigmail xpi || die "make xpi failed" |
224 |
} |
225 |
|
226 |
src_install() { |
227 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird" |
228 |
declare emid |
229 |
|
230 |
cd "${T}" |
231 |
unzip "${S}"/dist/bin/*.xpi install.rdf |
232 |
emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
233 |
|
234 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} |
235 |
cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} |
236 |
unzip "${S}"/dist/bin/*.xpi |
237 |
|
238 |
# these files will be picked up by mozilla-launcher -register |
239 |
dodir ${MOZILLA_FIVE_HOME}/{chrome,extensions}.d |
240 |
insinto ${MOZILLA_FIVE_HOME}/chrome.d |
241 |
newins "${S}"/dist/bin/chrome/installed-chrome.txt ${PN} |
242 |
echo "extension,${emid}" > "${D}"${MOZILLA_FIVE_HOME}/extensions.d/${PN} |
243 |
|
244 |
linguas |
245 |
for X in ${linguas}; do |
246 |
[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/${P}-${X} |
247 |
done |
248 |
} |