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