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.ebuild
Date: Tue, 08 Jan 2008 16:25:05
Message-Id: E1JCHGA-0002EX-8g@stork.gentoo.org
1 armin76 08/01/08 16:25:02
2
3 Modified: ChangeLog
4 Added: enigmail-0.95.6.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.111 x11-plugins/enigmail/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?rev=1.111&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?rev=1.111&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?r1=1.110&r2=1.111
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/ChangeLog,v
19 retrieving revision 1.110
20 retrieving revision 1.111
21 diff -u -r1.110 -r1.111
22 --- ChangeLog 15 Dec 2007 12:53:00 -0000 1.110
23 +++ ChangeLog 8 Jan 2008 16:25:01 -0000 1.111
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.110 2007/12/15 12:53:00 armin76 Exp $
28 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/ChangeLog,v 1.111 2008/01/08 16:25:01 armin76 Exp $
30 +
31 +*enigmail-0.95.6 (08 Jan 2008)
32 +
33 + 08 Jan 2008; Raúl Porcel <armin76@g.o> +enigmail-0.95.6.ebuild:
34 + Version bump
35
36 15 Dec 2007; Raúl Porcel <armin76@g.o> enigmail-0.94.4.ebuild,
37 enigmail-0.95.5-r1.ebuild:
38
39
40
41 1.1 x11-plugins/enigmail/enigmail-0.95.6.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/enigmail-0.95.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/enigmail-0.95.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: enigmail-0.95.6.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/enigmail-0.95.6.ebuild,v 1.1 2008/01/08 16:25:01 armin76 Exp $
51
52 WANT_AUTOCONF="2.1"
53
54 inherit flag-o-matic toolchain-funcs eutils nsplugins mozcoreconf mozextension makeedit multilib autotools
55
56 LANGS="de el es-ES nb-NO pt-BR zh-CN"
57 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"
58
59 EMVER=${PV}
60 TBVER="2.0.0.9"
61 TBPATCH="2.0.0.9-patches-0.1"
62
63 DESCRIPTION="GnuPG encryption plugin for thunderbird."
64 HOMEPAGE="http://enigmail.mozdev.org"
65 SRC_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${TBVER}/source/thunderbird-${TBVER}-source.tar.bz2
66 mirror://gentoo/mozilla-thunderbird-${TBPATCH}.tar.bz2
67 http://www.mozilla-enigmail.org/downloads/src/enigmail-${EMVER}.tar.gz"
68
69 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
70 SLOT="0"
71 LICENSE="MPL-1.1 GPL-2"
72 IUSE=""
73
74 for X in ${LANGS} ; do
75 SRC_URI="${SRC_URI} linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )"
76 IUSE="${IUSE} linguas_${X/-/_}"
77 done
78 # ( mirror://gentoo/${PN}-${X}-0.9x.xpi )"
79
80 for X in ${NOSHORTLANGS} ; do
81 SRC_URI="${SRC_URI} linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )"
82 IUSE="${IUSE} linguas_${X%%-*}"
83 done
84 #( mirror://gentoo/${PN}-${X}-0.9x.xpi )"
85
86 DEPEND=">=mail-client/mozilla-thunderbird-${TBVER}"
87 RDEPEND="${DEPEND}
88 >=app-crypt/gnupg-1.4.7
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 ${SHORTLANGS}; 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 src_unpack() {
127 unpack thunderbird-${TBVER}-source.tar.bz2 mozilla-thunderbird-${TBPATCH}.tar.bz2 || die "unpack failed"
128
129 linguas
130 for X in ${linguas}; do
131 [[ ${X} != en ]] && xpi_unpack ${P}-${X}.xpi
132 done
133
134 # Apply our patches
135 cd "${S}" || die "cd failed"
136 EPATCH_SUFFIX="patch" \
137 EPATCH_FORCE="yes" \
138 epatch "${WORKDIR}"/patch
139
140 # Unpack the enigmail plugin
141 cd "${S}"/mailnews/extensions || die
142 unpack enigmail-${EMVER}.tar.gz
143 cd "${S}"/mailnews/extensions/enigmail || die "cd failed"
144 makemake2
145
146 cd "${S}"
147
148 # Use the right theme for thunderbird #45609
149 sed -i -ne '/^enigmail-skin.jar:$/ { :x; n; /^\t/bx; }; p' mailnews/extensions/enigmail/ui/jar.mn
150
151 # Fix installation of enigmail.js
152 epatch "${FILESDIR}"/70_enigmail-fix.patch
153 # Make replytolist work with >0.95.0
154 epatch "${FILESDIR}"/0.95.0-replytolist.patch
155
156 eautoreconf
157 }
158
159 src_compile() {
160 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird"
161
162 ####################################
163 #
164 # mozconfig, CFLAGS and CXXFLAGS setup
165 #
166 ####################################
167
168 mozconfig_init
169
170 # tb-specific settings
171 mozconfig_annotate '' \
172 --with-system-nspr \
173 --with-system-nss \
174 --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} \
175 --with-user-appdir=.thunderbird
176
177 # Finalize and report settings
178 mozconfig_final
179
180 # -fstack-protector breaks us
181 if gcc-version ge 4 1; then
182 gcc-specs-ssp && append-flags -fno-stack-protector
183 else
184 gcc-specs-ssp && append-flags -fno-stack-protector-all
185 fi
186 filter-flags -fstack-protector -fstack-protector-all
187
188 ####################################
189 #
190 # Configure and build Thunderbird
191 #
192 ####################################
193 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
194 econf || die
195
196 # This removes extraneous CFLAGS from the Makefiles to reduce RAM
197 # requirements while compiling
198 edit_makefiles
199
200 # Only build the parts necessary to support building enigmail
201 emake -j1 export || die "make export failed"
202 emake -C modules/libreg || die "make modules/libreg failed"
203 emake -C xpcom/string || die "make xpcom/string failed"
204 emake -C xpcom || die "make xpcom failed"
205 emake -C xpcom/obsolete || die "make xpcom/obsolete failed"
206
207 # Build the enigmail plugin
208 einfo "Building Enigmail plugin..."
209 emake -C "${S}"/mailnews/extensions/enigmail || die "make enigmail failed"
210
211 # Package the enigmail plugin; this may be the easiest way to collect the
212 # necessary files
213 emake -j1 -C "${S}"/mailnews/extensions/enigmail xpi || die "make xpi failed"
214 }
215
216 src_install() {
217 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird"
218 declare emid
219
220 cd "${T}"
221 unzip "${S}"/dist/bin/*.xpi install.rdf
222 emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
223
224 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
225 cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid}
226 unzip "${S}"/dist/bin/*.xpi
227
228 # these files will be picked up by mozilla-launcher -register
229 dodir ${MOZILLA_FIVE_HOME}/{chrome,extensions}.d
230 insinto ${MOZILLA_FIVE_HOME}/chrome.d
231 newins "${S}"/dist/bin/chrome/installed-chrome.txt ${PN}
232 echo "extension,${emid}" > "${D}"${MOZILLA_FIVE_HOME}/extensions.d/${PN}
233
234 linguas
235 for X in ${linguas}; do
236 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/${P}-${X}
237 done
238 }
239
240
241
242 --
243 gentoo-commits@l.g.o mailing list