Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/nail: metadata.xml ChangeLog nail-12.4-r1.ebuild
Date: Mon, 26 Jul 2010 22:50:51
Message-Id: 20100726225028.451132CE15@corvid.gentoo.org
1 flameeyes 10/07/26 22:50:28
2
3 Modified: metadata.xml ChangeLog
4 Added: nail-12.4-r1.ebuild
5 Log:
6 Make ssl and kerberos USE flags to be dependent on net; make sure that kerberos is disabled (to avoid automagic dependencies); describe the USE flags better.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.3 mail-client/nail/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/nail/metadata.xml?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/nail/metadata.xml?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/nail/metadata.xml?r1=1.2&r2=1.3
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-client/nail/metadata.xml,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- metadata.xml 23 Aug 2008 01:42:24 -0000 1.2
23 +++ metadata.xml 26 Jul 2010 22:50:28 -0000 1.3
24 @@ -3,7 +3,20 @@
25 <pkgmetadata>
26 <herd>net-mail</herd>
27 <use>
28 - <flag name='net'>Enable network support (thus enabling POP, IMAP and
29 - SMTP)</flag>
30 + <flag name='net'>
31 + Enable support for network protocols (POP, IMAP and SMTP). If you
32 + only need to send mail with the local Transport Agent, disabling
33 + this will get you support for only /usr/sbin/sendmail call.
34 + </flag>
35 +
36 + <flag name='ssl'>
37 + If network is enabled, this adds support for S/MIME and
38 + SSL/TLS-powered protocols through <pkg>dev-libs/openssl</pkg>.
39 + </flag>
40 +
41 + <flag name='kerberos'>
42 + If network is enabled, this adds support for GSSAPI login on IMAP
43 + through <pkg>virtual/kerberos</pkg>.
44 + </flag>
45 </use>
46 </pkgmetadata>
47
48
49
50 1.70 mail-client/nail/ChangeLog
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/nail/ChangeLog?rev=1.70&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/nail/ChangeLog?rev=1.70&content-type=text/plain
54 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/nail/ChangeLog?r1=1.69&r2=1.70
55
56 Index: ChangeLog
57 ===================================================================
58 RCS file: /var/cvsroot/gentoo-x86/mail-client/nail/ChangeLog,v
59 retrieving revision 1.69
60 retrieving revision 1.70
61 diff -u -r1.69 -r1.70
62 --- ChangeLog 25 Jul 2010 15:24:17 -0000 1.69
63 +++ ChangeLog 26 Jul 2010 22:50:28 -0000 1.70
64 @@ -1,6 +1,14 @@
65 # ChangeLog for mail-client/nail
66 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
67 -# $Header: /var/cvsroot/gentoo-x86/mail-client/nail/ChangeLog,v 1.69 2010/07/25 15:24:17 ssuominen Exp $
68 +# $Header: /var/cvsroot/gentoo-x86/mail-client/nail/ChangeLog,v 1.70 2010/07/26 22:50:28 flameeyes Exp $
69 +
70 +*nail-12.4-r1 (26 Jul 2010)
71 +
72 + 26 Jul 2010; Diego E. Pettenò <flameeyes@g.o>
73 + +nail-12.4-r1.ebuild, metadata.xml:
74 + Make ssl and kerberos USE flags to be dependent on net; make sure that
75 + kerberos is disabled (to avoid automagic dependencies); describe the USE
76 + flags better.
77
78 25 Jul 2010; Samuli Suominen <ssuominen@g.o> nail-12.4.ebuild:
79 ppc64 stable wrt #324127
80
81
82
83 1.1 mail-client/nail/nail-12.4-r1.ebuild
84
85 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/nail/nail-12.4-r1.ebuild?rev=1.1&view=markup
86 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/nail/nail-12.4-r1.ebuild?rev=1.1&content-type=text/plain
87
88 Index: nail-12.4-r1.ebuild
89 ===================================================================
90 # Copyright 1999-2010 Gentoo Foundation
91 # Distributed under the terms of the GNU General Public License v2
92 # $Header: /var/cvsroot/gentoo-x86/mail-client/nail/nail-12.4-r1.ebuild,v 1.1 2010/07/26 22:50:28 flameeyes Exp $
93
94 EAPI="3"
95
96 inherit eutils toolchain-funcs
97
98 HOMEPAGE="http://heirloom.sourceforge.net/"
99 DESCRIPTION="an enhanced mailx-compatible mail client"
100 LICENSE="BSD"
101
102 MY_PN="mailx"
103 MY_P="${MY_PN}-${PV}"
104 SRC_URI="mirror://sourceforge/project/heirloom/heirloom-${MY_PN}/${PV}/${MY_P}.tar.bz2"
105 SLOT="0"
106 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-freebsd ~x86-interix"
107 IUSE="ssl net kerberos"
108
109 PROVIDE="virtual/mailx"
110 RDEPEND="
111 net? (
112 ssl? ( dev-libs/openssl )
113 kerberos? ( virtual/krb5 )
114 )
115 !virtual/mailx
116 "
117 DEPEND="${RDEPEND}"
118
119 S=${WORKDIR}/${MY_P}
120
121 undef() {
122 sed -i -e "/$1/s:#define:#undef:" config.h || die
123 }
124
125 droplib() {
126 sed -i -e "/$1/s:^:#:" LIBS || die
127 }
128
129 src_prepare() {
130 epatch "${FILESDIR}"/${P}-debian.patch \
131 "${FILESDIR}"/${P}-openssl-1.patch
132 # Do not strip the binary
133 sed -i -e '/STRIP/d' Makefile
134 }
135
136 src_configure() {
137 # Build config.h and LIBS, neccesary to tweak the config
138 make config.h LIBS
139
140 # Logic to 'configure' the package
141
142 if ! use ssl || ! use net ; then
143 undef 'USE_\(OPEN\)\?SSL'
144 droplib -lssl
145 fi
146
147 if ! use kerberos || ! use net ; then
148 undef 'USE_GSSAPI'
149 droplib -lgssapi_krb5
150 fi
151
152 if ! use net ; then
153 undef 'HAVE_SOCKETS'
154 fi
155 }
156
157 src_compile() {
158 # No configure script to check for and set this
159 tc-export CC
160
161 emake \
162 CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
163 PREFIX="${EPREFIX}"/usr SYSCONFDIR="${EPREFIX}"/etc \
164 MAILSPOOL='/var/spool/mail' \
165 || die "emake failed"
166 }
167
168 src_install () {
169 # Use /usr/lib/sendmail by default and provide an example
170 cat <<- EOSMTP >> nail.rc
171
172 # Use the local sendmail (/usr/lib/sendmail) binary by default.
173 # (Uncomment the following line to use a SMTP server)
174 #set smtp=localhost
175 EOSMTP
176
177 make DESTDIR="${D}" \
178 UCBINSTALL=$(type -p install) \
179 PREFIX="${EPREFIX}"/usr SYSCONFDIR="${EPREFIX}"/etc install \
180 || die
181 dodoc AUTHORS README
182 dodir /bin
183 dosym /usr/bin/mailx /bin/mail
184 dosym /usr/bin/mailx /usr/bin/mail
185 dosym /usr/bin/mailx /usr/bin/Mail
186 }