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: ChangeLog enigmail-0.95.6-r3.ebuild
Date: Fri, 02 May 2008 11:48:26
Message-Id: E1JrtkU-0002Ln-8h@stork.gentoo.org
1 armin76 08/05/02 11:48:22
2
3 Modified: ChangeLog
4 Added: enigmail-0.95.6-r3.ebuild
5 Log:
6 Use 2.0.0.14
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.124 x11-plugins/enigmail/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?rev=1.124&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?rev=1.124&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?r1=1.123&r2=1.124
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/ChangeLog,v
19 retrieving revision 1.123
20 retrieving revision 1.124
21 diff -u -r1.123 -r1.124
22 --- ChangeLog 2 Mar 2008 10:33:19 -0000 1.123
23 +++ ChangeLog 2 May 2008 11:48:21 -0000 1.124
24 @@ -1,6 +1,11 @@
25 # ChangeLog for x11-plugins/enigmail
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/ChangeLog,v 1.123 2008/03/02 10:33:19 pylon Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/ChangeLog,v 1.124 2008/05/02 11:48:21 armin76 Exp $
29 +
30 +*enigmail-0.95.6-r3 (02 May 2008)
31 +
32 + 02 May 2008; Raúl Porcel <armin76@g.o> +enigmail-0.95.6-r3.ebuild:
33 + Use 2.0.0.14
34
35 02 Mar 2008; Lars Weiler <pylon@g.o> enigmail-0.95.6-r2.ebuild:
36 stable ppc, security bug 208128
37
38
39
40 1.1 x11-plugins/enigmail/enigmail-0.95.6-r3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/enigmail-0.95.6-r3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/enigmail-0.95.6-r3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: enigmail-0.95.6-r3.ebuild
46 ===================================================================
47 # Copyright 1999-2008 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.6-r3.ebuild,v 1.1 2008/05/02 11:48:21 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="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 sl-SI sv-SE tr-TR zh-TW"
57
58 EMVER=${PV}
59 TBVER="2.0.0.14"
60 TBPATCH="2.0.0.14-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/${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 RDEPEND="${DEPEND}
87 >=app-crypt/gnupg-1.4
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 ${NOSHORTLANGS}; 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 ${P}-${X}.xpi
131 done
132
133 # Apply our patches
134 cd "${S}" || die "cd failed"
135 EPATCH_SUFFIX="patch" \
136 EPATCH_FORCE="yes" \
137 epatch "${WORKDIR}"/patch
138
139 # Unpack the enigmail plugin
140 cd "${S}"/mailnews/extensions || die
141 unpack enigmail-${EMVER}.tar.gz
142 cd "${S}"/mailnews/extensions/enigmail || die "cd failed"
143 makemake2
144
145 cd "${S}"
146
147 # Use the right theme for thunderbird #45609
148 sed -i -ne '/^enigmail-skin.jar:$/ { :x; n; /^\t/bx; }; p' mailnews/extensions/enigmail/ui/jar.mn
149
150 # Fix installation of enigmail.js
151 epatch "${FILESDIR}"/70_enigmail-fix.patch
152 # Make replytolist work with >0.95.0
153 epatch "${FILESDIR}"/0.95.0-replytolist.patch
154
155 eautoreconf
156 }
157
158 src_compile() {
159 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird"
160
161 ####################################
162 #
163 # mozconfig, CFLAGS and CXXFLAGS setup
164 #
165 ####################################
166
167 mozconfig_init
168
169 # tb-specific settings
170 mozconfig_annotate '' \
171 --with-system-nspr \
172 --with-system-nss \
173 --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} \
174 --with-user-appdir=.thunderbird
175
176 # Finalize and report settings
177 mozconfig_final
178
179 # -fstack-protector breaks us
180 if gcc-version ge 4 1; then
181 gcc-specs-ssp && append-flags -fno-stack-protector
182 else
183 gcc-specs-ssp && append-flags -fno-stack-protector-all
184 fi
185 filter-flags -fstack-protector -fstack-protector-all
186
187 ####################################
188 #
189 # Configure and build Thunderbird
190 #
191 ####################################
192 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
193 econf || die
194
195 # This removes extraneous CFLAGS from the Makefiles to reduce RAM
196 # requirements while compiling
197 edit_makefiles
198
199 # Only build the parts necessary to support building enigmail
200 emake -j1 export || die "make export failed"
201 emake -C modules/libreg || die "make modules/libreg failed"
202 emake -C xpcom/string || die "make xpcom/string failed"
203 emake -C xpcom || die "make xpcom failed"
204 emake -C xpcom/obsolete || die "make xpcom/obsolete failed"
205
206 # Build the enigmail plugin
207 einfo "Building Enigmail plugin..."
208 emake -C "${S}"/mailnews/extensions/enigmail || die "make enigmail failed"
209
210 # Package the enigmail plugin; this may be the easiest way to collect the
211 # necessary files
212 emake -j1 -C "${S}"/mailnews/extensions/enigmail xpi || die "make xpi failed"
213 }
214
215 src_install() {
216 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird"
217 declare emid
218
219 cd "${T}"
220 unzip "${S}"/dist/bin/*.xpi install.rdf
221 emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
222
223 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
224 cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid}
225 unzip "${S}"/dist/bin/*.xpi
226
227 # these files will be picked up by mozilla-launcher -register
228 dodir ${MOZILLA_FIVE_HOME}/{chrome,extensions}.d
229 insinto ${MOZILLA_FIVE_HOME}/chrome.d
230 newins "${S}"/dist/bin/chrome/installed-chrome.txt ${PN}
231 echo "extension,${emid}" > "${D}"${MOZILLA_FIVE_HOME}/extensions.d/${PN}
232
233 linguas
234 for X in ${linguas}; do
235 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/${P}-${X}
236 done
237 }
238
239
240
241 --
242 gentoo-commits@l.g.o mailing list