Gentoo Archives: gentoo-commits

From: "Jory Pratt (anarchy)" <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-plugins/enigmail: enigmail-1.0.1.ebuild ChangeLog enigmail-1.0.0.ebuild
Date: Fri, 05 Feb 2010 12:43:47
Message-Id: E1NdNXC-0004Dp-R2@stork.gentoo.org
1 anarchy 10/02/05 12:43:42
2
3 Modified: ChangeLog
4 Added: enigmail-1.0.1.ebuild
5 Removed: enigmail-1.0.0.ebuild
6 Log:
7 Version bump, includes fix for termination
8 (Portage version: 2.1.7.17/cvs/Linux x86_64, RepoMan options: --force)
9
10 Revision Changes Path
11 1.168 x11-plugins/enigmail/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?rev=1.168&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?rev=1.168&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/ChangeLog?r1=1.167&r2=1.168
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/ChangeLog,v
20 retrieving revision 1.167
21 retrieving revision 1.168
22 diff -u -r1.167 -r1.168
23 --- ChangeLog 15 Dec 2009 15:03:45 -0000 1.167
24 +++ ChangeLog 5 Feb 2010 12:43:42 -0000 1.168
25 @@ -1,6 +1,12 @@
26 # ChangeLog for x11-plugins/enigmail
27 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/ChangeLog,v 1.167 2009/12/15 15:03:45 anarchy Exp $
29 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/ChangeLog,v 1.168 2010/02/05 12:43:42 anarchy Exp $
31 +
32 +*enigmail-1.0.1 (05 Feb 2010)
33 +
34 + 05 Feb 2010; <anarchy@g.o> -enigmail-1.0.0.ebuild,
35 + +enigmail-1.0.1.ebuild:
36 + Version bump with bug fix for gpg-agent termination.
37
38 15 Dec 2009; Jory A. Pratt <anarchy@g.o> enigmail-1.0.0.ebuild:
39 update patchset for sparc users, bug #296883
40
41
42
43 1.1 x11-plugins/enigmail/enigmail-1.0.1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/enigmail-1.0.1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/enigmail/enigmail-1.0.1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: enigmail-1.0.1.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/x11-plugins/enigmail/enigmail-1.0.1.ebuild,v 1.1 2010/02/05 12:43:42 anarchy Exp $
53
54 WANT_AUTOCONF="2.1"
55 EAPI="2"
56
57 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib mozextension autotools
58 MY_P="${P/_beta/b}"
59 EMVER="${PV}"
60 TBVER="3.0.1"
61 PATCH="mozilla-thunderbird-3.0-patches-0.3"
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 http://www.mozilla-enigmail.org/download/source/${PN}-${EMVER}.tar.gz
67 http://dev.gentoo.org/~anarchy/dist/${PATCH}.tar.bz2"
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 DEPEND=">=mail-client/mozilla-thunderbird-3.0"
75 RDEPEND="${DEPEND}
76 || (
77 (
78 >=app-crypt/gnupg-2.0
79 || (
80 app-crypt/pinentry[gtk]
81 app-crypt/pinentry[qt4]
82 app-crypt/pinentry[qt3]
83 )
84 )
85 =app-crypt/gnupg-1.4*
86 )"
87
88 S="${WORKDIR}"/comm-1.9.1
89
90 pkg_setup() {
91 # EAPI=2 ensures they are set properly.
92 export BUILD_OFFICIAL=1
93 export MOZILLA_OFFICIAL=1
94 export MOZ_CO_PROJECT=mail
95 }
96
97 src_unpack() {
98 unpack thunderbird-${TBVER}.source.tar.bz2 ${PATCH}.tar.bz2 || die "unpack failed"
99 }
100
101 src_prepare(){
102 # Apply our patches
103 EPATCH_EXCLUDE="106-bz466250_att349521_fix_ftbfs_with_cairo_fb.patch" \
104 EPATCH_SUFFIX="patch" \
105 EPATCH_FORCE="yes" \
106 epatch "${WORKDIR}"
107
108 cd mozilla
109 eautoreconf
110 cd js/src
111 eautoreconf
112
113 # Unpack the enigmail plugin
114 cd "${S}"/mailnews/extensions || die
115 unpack enigmail-${EMVER}.tar.gz
116 cd "${S}"/mailnews/extensions/enigmail || die "cd failed"
117 makemake2
118
119 cd "${S}"
120
121 # Fix installation of enigmail.js
122 epatch "${FILESDIR}"/70_enigmail-fix.patch
123
124 eautoreconf
125 }
126
127 src_configure() {
128 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird"
129
130 ####################################
131 #
132 # mozconfig, CFLAGS and CXXFLAGS setup
133 #
134 ####################################
135
136 touch mail/config/mozconfig
137 mozconfig_init
138 mozconfig_config
139
140 # tb-specific settings
141 mozconfig_annotate '' \
142 --with-system-nspr \
143 --with-system-nss \
144 --enable-system-sqlite \
145 --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} \
146 --with-user-appdir=.thunderbird \
147 --enable-application=mail
148
149 # Finalize and report settings
150 mozconfig_final
151
152 # Disable no-print-directory
153 MAKEOPTS=${MAKEOPTS/--no-print-directory/}
154
155 if [[ $(gcc-major-version) -lt 4 ]]; then
156 append-cxxflags -fno-stack-protector
157 fi
158
159 ####################################
160 #
161 # Configure and build Thunderbird
162 #
163 ####################################
164 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
165 econf || die
166
167 # This removes extraneous CFLAGS from the Makefiles to reduce RAM
168 # requirements while compiling
169 edit_makefiles
170 }
171
172 src_compile() {
173 # Only build the parts necessary to support building enigmail
174 emake -j1 export || die "make export failed"
175 emake -C mozilla/modules/libreg || die "make modules/libreg failed"
176 emake -C mozilla/xpcom/string || die "make xpcom/string failed"
177 emake -C mozilla/xpcom || die "make xpcom failed"
178 emake -C mozilla/xpcom/obsolete || die "make xpcom/obsolete failed"
179
180 # Build the enigmail plugin
181 einfo "Building Enigmail plugin..."
182 emake -C "${S}"/mailnews/extensions/enigmail || die "make enigmail failed"
183
184 # Package the enigmail plugin; this may be the easiest way to collect the
185 # necessary files
186 emake -j1 -C "${S}"/mailnews/extensions/enigmail xpi || die "make xpi failed"
187 }
188
189 src_install() {
190 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-thunderbird"
191 declare emid
192
193 cd "${T}"
194 unzip "${S}"/mozilla/dist/bin/*.xpi install.rdf
195 emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
196
197 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
198 cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid}
199 unzip "${S}"/mozilla/dist/bin/*.xpi
200 }