1 |
armin76 07/11/02 14:48:47 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: enigmail-0.95.5.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.1.3.16) |
8 |
|
9 |
Revision Changes Path |
10 |
1.102 x11-plugins/enigmail/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?rev=1.102&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?rev=1.102&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?r1=1.101&r2=1.102 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/ChangeLog,v |
19 |
retrieving revision 1.101 |
20 |
retrieving revision 1.102 |
21 |
diff -u -r1.101 -r1.102 |
22 |
--- ChangeLog 23 Oct 2007 17:39:53 -0000 1.101 |
23 |
+++ ChangeLog 2 Nov 2007 14:48:46 -0000 1.102 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for x11-plugins/enigmail |
26 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/ChangeLog,v 1.101 2007/10/23 17:39:53 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/ChangeLog,v 1.102 2007/11/02 14:48:46 armin76 Exp $ |
29 |
+ |
30 |
+*enigmail-0.95.5 (02 Nov 2007) |
31 |
+ |
32 |
+ 02 Nov 2007; Raúl Porcel <armin76@g.o> +enigmail-0.95.5.ebuild: |
33 |
+ Version bump |
34 |
|
35 |
*enigmail-0.95.4 (23 Oct 2007) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 x11-plugins/enigmail/enigmail-0.95.5.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/enigmail-0.95.5.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/enigmail-0.95.5.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: enigmail-0.95.5.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 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.5.ebuild,v 1.1 2007/11/02 14:48:47 armin76 Exp $ |
50 |
|
51 |
unset ALLOWED_FLAGS # stupid extra-functions.sh ... bug 49179 |
52 |
WANT_AUTOCONF=2.1 |
53 |
inherit flag-o-matic toolchain-funcs eutils nsplugins mozcoreconf mozextension makeedit multilib autotools |
54 |
|
55 |
LANGS="de el es-ES nb-NO pt-BR zh-CN" |
56 |
SHORTLANGS="ca-AD cs-CZ es-ES fi-FI fr-FR hu-HU it-IT ja-JP nb-NO pl-PL pt-PT ru-RU sl-SI sv-SE tr-TR zh-TW" |
57 |
|
58 |
EMVER=${PV} |
59 |
TBVER="2.0.0.6" |
60 |
TBPATCH="2.0.0.4-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/downloads/src/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/${PN}-${X}-${PV}.xpi )" |
75 |
IUSE="${IUSE} linguas_${X/-/_}" |
76 |
done |
77 |
# ( mirror://gentoo/${PN}-${X}-0.9x.xpi )" |
78 |
|
79 |
for X in ${SHORTLANGS} ; do |
80 |
SRC_URI="${SRC_URI} linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${PN}-${X}-${PV}.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 |
RDEPEND="${DEPEND} |
87 |
>=app-crypt/gnupg-1.4.7 |
88 |
>=www-client/mozilla-launcher-1.56" |
89 |
|
90 |
S=${WORKDIR}/mozilla |
91 |
|
92 |
# Needed by src_compile() and src_install(). |
93 |
# Would do in pkg_setup but that loses the export attribute, they |
94 |
# become pure shell variables. |
95 |
export BUILD_OFFICIAL=1 |
96 |
export MOZILLA_OFFICIAL=1 |
97 |
export MOZ_CO_PROJECT=mail |
98 |
|
99 |
linguas() { |
100 |
linguas= |
101 |
local LANG |
102 |
for LANG in ${LINGUAS}; do |
103 |
if hasq ${LANG} en en_US; then |
104 |
hasq en ${linguas} || \ |
105 |
linguas="${linguas:+"${linguas} "}en" |
106 |
continue |
107 |
elif hasq ${LANG} ${LANGS//-/_}; then |
108 |
hasq ${LANG//_/-} ${linguas} || \ |
109 |
linguas="${linguas:+"${linguas} "}${LANG//_/-}" |
110 |
continue |
111 |
else |
112 |
local SLANG |
113 |
for SLANG in ${SHORTLANGS}; do |
114 |
if [[ ${LANG} == ${SLANG%%-*} ]]; then |
115 |
hasq ${SLANG} ${linguas} || \ |
116 |
linguas="${linguas:+"${linguas} "}${SLANG}" |
117 |
continue 2 |
118 |
fi |
119 |
done |
120 |
fi |
121 |
ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" |
122 |
done |
123 |
} |
124 |
|
125 |
src_unpack() { |
126 |
unpack thunderbird-${TBVER}-source.tar.bz2 mozilla-thunderbird-${TBPATCH}.tar.bz2 || die "unpack failed" |
127 |
|
128 |
linguas |
129 |
for X in ${linguas}; do |
130 |
[[ ${X} != en ]] && xpi_unpack ${PN}-${X}-${PV}.xpi |
131 |
done |
132 |
|
133 |
cd ${S} || die "cd failed" |
134 |
|
135 |
# Apply our patches |
136 |
cd "${S}" || die "cd failed" |
137 |
EPATCH_SUFFIX="patch" \ |
138 |
EPATCH_FORCE="yes" \ |
139 |
epatch "${WORKDIR}"/patch |
140 |
|
141 |
# Unpack the enigmail plugin |
142 |
cd ${S}/mailnews/extensions || die |
143 |
unpack enigmail-${EMVER}.tar.gz |
144 |
cd ${S}/mailnews/extensions/enigmail || die "cd failed" |
145 |
makemake2 |
146 |
|
147 |
cd ${S} |
148 |
|
149 |
# Use the right theme for thunderbird #45609 |
150 |
sed -i -ne '/^enigmail-skin.jar:$/ { :x; n; /^\t/bx; }; p' mailnews/extensions/enigmail/ui/jar.mn |
151 |
|
152 |
# Fix installation of enigmail.js |
153 |
epatch ${FILESDIR}/70_enigmail-fix.patch |
154 |
# Make replytolist work with >0.95.0 |
155 |
epatch ${FILESDIR}/0.95.0-replytolist.patch |
156 |
|
157 |
# Fix for gcc-4.2 and amd64, bug 186089 |
158 |
rm -f ${S}/config/gcc_hidden.h |
159 |
touch ${S}/config/gcc_hidden.h |
160 |
|
161 |
eautoreconf || die "failed running autoreconf" |
162 |
} |
163 |
|
164 |
src_compile() { |
165 |
declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/mozilla-thunderbird |
166 |
|
167 |
#################################### |
168 |
# |
169 |
# mozconfig, CFLAGS and CXXFLAGS setup |
170 |
# |
171 |
#################################### |
172 |
|
173 |
mozconfig_init |
174 |
|
175 |
# tb-specific settings |
176 |
mozconfig_annotate '' \ |
177 |
--with-system-nspr \ |
178 |
--with-system-nss \ |
179 |
--with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} \ |
180 |
--with-user-appdir=.thunderbird |
181 |
|
182 |
# Finalize and report settings |
183 |
mozconfig_final |
184 |
|
185 |
# hardened GCC uses -fstack-protector-all by default, and this breaks |
186 |
# thunderbird |
187 |
gcc-specs-ssp && append-flags -fno-stack-protector-all |
188 |
replace-flags -fstack-protector-all -fstack-protector |
189 |
|
190 |
#################################### |
191 |
# |
192 |
# Configure and build Thunderbird |
193 |
# |
194 |
#################################### |
195 |
|
196 |
econf || die "econf failed" |
197 |
|
198 |
# This removes extraneous CFLAGS from the Makefiles to reduce RAM |
199 |
# requirements while compiling |
200 |
edit_makefiles |
201 |
|
202 |
# Doesn't like to build with CHOST-specific commands. |
203 |
MY_CC=$(tc-getCC) |
204 |
MY_CXX=$(tc-getCXX) |
205 |
|
206 |
# Only build the parts necessary to support building enigmail |
207 |
emake CC=$MY_CC CXX=$MY_CXX -j1 export || die "make export failed" |
208 |
emake CC=$MY_CC CXX=$MY_CXX -C modules/libreg || die "make modules/libreg failed" |
209 |
emake CC=$MY_CC CXX=$MY_CXX -C xpcom/string || die "make xpcom/string failed" |
210 |
emake CC=$MY_CC CXX=$MY_CXX -C xpcom || die "make xpcom failed" |
211 |
emake CC=$MY_CC CXX=$MY_CXX -C xpcom/obsolete || die "make xpcom/obsolete failed" |
212 |
|
213 |
# Build the enigmail plugin |
214 |
einfo "Building Enigmail plugin..." |
215 |
emake CC=$MY_CC CXX=$MY_CXX -C ${S}/mailnews/extensions/enigmail || die "make enigmail failed" |
216 |
|
217 |
# Package the enigmail plugin; this may be the easiest way to collect the |
218 |
# necessary files |
219 |
emake CC=$MY_CC CXX=$MY_CXX -j1 -C ${S}/mailnews/extensions/enigmail xpi || die "make xpi failed" |
220 |
} |
221 |
|
222 |
src_install() { |
223 |
declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/mozilla-thunderbird |
224 |
declare emid |
225 |
|
226 |
cd ${T} |
227 |
unzip ${S}/dist/bin/*.xpi install.rdf |
228 |
emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
229 |
|
230 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} |
231 |
cd ${D}${MOZILLA_FIVE_HOME}/extensions/${emid} |
232 |
unzip ${S}/dist/bin/*.xpi |
233 |
|
234 |
# Fix module to work with 2.0.0.* |
235 |
|
236 |
# these files will be picked up by mozilla-launcher -register |
237 |
dodir ${MOZILLA_FIVE_HOME}/{chrome,extensions}.d |
238 |
insinto ${MOZILLA_FIVE_HOME}/chrome.d |
239 |
newins ${S}/dist/bin/chrome/installed-chrome.txt ${PN} |
240 |
echo "extension,${emid}" > ${D}${MOZILLA_FIVE_HOME}/extensions.d/${PN} |
241 |
|
242 |
linguas |
243 |
for X in ${linguas}; do |
244 |
[[ ${X} != en ]] && xpi_install ${WORKDIR}/${PN}-${X}-${PV} |
245 |
done |
246 |
} |
247 |
|
248 |
|
249 |
|
250 |
-- |
251 |
gentoo-commits@g.o mailing list |