Gentoo Archives: gentoo-commits

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