Gentoo Archives: gentoo-commits

From: "Jason Donenfeld (zx2c4)" <zx2c4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-mta/msmtp: msmtp-1.4.31-r1.ebuild ChangeLog
Date: Mon, 27 May 2013 15:56:23
Message-Id: 20130527155617.3C89E2171D@flycatcher.gentoo.org
1 zx2c4 13/05/27 15:56:17
2
3 Modified: ChangeLog
4 Added: msmtp-1.4.31-r1.ebuild
5 Log:
6 ssmtp puts it in bin too, and so we'll follow suit.
7
8 (Portage version: 2.2.0_alpha176/cvs/Linux x86_64, signed Manifest commit with key A5DE03AE)
9
10 Revision Changes Path
11 1.161 mail-mta/msmtp/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/msmtp/ChangeLog?rev=1.161&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/msmtp/ChangeLog?rev=1.161&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/msmtp/ChangeLog?r1=1.160&r2=1.161
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-mta/msmtp/ChangeLog,v
20 retrieving revision 1.160
21 retrieving revision 1.161
22 diff -u -r1.160 -r1.161
23 --- ChangeLog 23 Apr 2013 00:03:39 -0000 1.160
24 +++ ChangeLog 27 May 2013 15:56:17 -0000 1.161
25 @@ -1,6 +1,11 @@
26 # ChangeLog for mail-mta/msmtp
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/msmtp/ChangeLog,v 1.160 2013/04/23 00:03:39 radhermit Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/msmtp/ChangeLog,v 1.161 2013/05/27 15:56:17 zx2c4 Exp $
30 +
31 +*msmtp-1.4.31-r1 (27 May 2013)
32 +
33 + 27 May 2013; Jason A. Donenfeld <zx2c4@g.o> +msmtp-1.4.31-r1.ebuild:
34 + ssmtp puts it in bin too, and so we'll follow suit.
35
36 23 Apr 2013; Tim Harder <radhermit@g.o> -msmtp-1.4.30.ebuild:
37 Remove old.
38
39
40
41 1.1 mail-mta/msmtp/msmtp-1.4.31-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/msmtp/msmtp-1.4.31-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/msmtp/msmtp-1.4.31-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: msmtp-1.4.31-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/mail-mta/msmtp/msmtp-1.4.31-r1.ebuild,v 1.1 2013/05/27 15:56:17 zx2c4 Exp $
51
52 EAPI=5
53 inherit multilib python eutils
54
55 DESCRIPTION="An SMTP client and SMTP plugin for mail user agents such as Mutt"
56 HOMEPAGE="http://msmtp.sourceforge.net/"
57 SRC_URI="mirror://sourceforge/msmtp/${P}.tar.bz2"
58
59 LICENSE="GPL-3"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos"
62 IUSE="doc gnome-keyring gnutls idn +mta nls sasl ssl vim-syntax"
63
64 CDEPEND="
65 gnome-keyring? (
66 dev-python/gnome-keyring-python
67 gnome-base/libgnome-keyring
68 )
69 idn? ( net-dns/libidn )
70 nls? ( virtual/libintl )
71 sasl? ( virtual/gsasl )
72 ssl? (
73 gnutls? ( net-libs/gnutls )
74 !gnutls? ( dev-libs/openssl )
75 )"
76
77 RDEPEND="${CDEPEND}
78 net-mail/mailbase
79 mta? ( !mail-mta/courier
80 !mail-mta/esmtp
81 !mail-mta/exim
82 !mail-mta/mini-qmail
83 !mail-mta/netqmail
84 !mail-mta/nullmailer
85 !mail-mta/postfix
86 !mail-mta/qmail-ldap
87 !mail-mta/sendmail
88 !mail-mta/opensmtpd
89 !<mail-mta/ssmtp-2.64-r2
90 !>=mail-mta/ssmtp-2.64-r2[mta] )"
91
92 DEPEND="${CDEPEND}
93 doc? ( virtual/texi2dvi )
94 nls? ( sys-devel/gettext )
95 virtual/pkgconfig"
96
97 REQUIRED_USE="gnutls? ( ssl )"
98
99 src_prepare() {
100 # Use default Gentoo location for mail aliases
101 sed -i -e 's:/etc/aliases:/etc/mail/aliases:' scripts/find_alias/find_alias_for_msmtp.sh || die
102
103 python_convert_shebangs 2 scripts/msmtp-gnome-tool/msmtp-gnome-tool.py
104 }
105
106 src_configure() {
107 econf \
108 --disable-silent-rules \
109 $(use_with gnome-keyring ) \
110 $(use_with idn libidn) \
111 $(use_enable nls) \
112 $(use_with sasl libgsasl) \
113 $(use_with ssl ssl $(usex gnutls gnutls openssl))
114 }
115
116 src_compile() {
117 default
118
119 if use doc ; then
120 cd doc || die
121 emake html pdf
122 fi
123 }
124
125 src_install() {
126 emake DESTDIR="${D}" install
127 dodoc AUTHORS ChangeLog NEWS README THANKS doc/{Mutt+msmtp.txt,msmtprc*}
128
129 if use doc ; then
130 dohtml doc/msmtp.html
131 dodoc doc/msmtp.pdf
132 fi
133
134 if use gnome-keyring ; then
135 src_install_contrib msmtp-gnome-tool msmtp-gnome-tool.py README
136 fi
137
138 if use mta ; then
139 dodir /usr/sbin
140 dosym /usr/bin/msmtp /usr/sbin/sendmail
141 dosym /usr/bin/msmtp /usr/bin/sendmail
142 dosym /usr/bin/msmtp /usr/$(get_libdir)/sendmail
143 fi
144
145 if use vim-syntax ; then
146 insinto /usr/share/vim/vimfiles/syntax
147 doins scripts/vim/msmtp.vim
148 fi
149
150 insinto /etc
151 newins doc/msmtprc-system.example msmtprc
152
153 src_install_contrib find_alias find_alias_for_msmtp.sh
154 src_install_contrib msmtpqueue "*.sh" "README ChangeLog"
155 src_install_contrib msmtpq "msmtpq msmtp-queue" README.msmtpq
156 src_install_contrib set_sendmail set_sendmail.sh set_sendmail.conf
157 }
158
159 pkg_postinst() {
160 if [[ -z ${REPLACING_VERSIONS} ]]; then
161 einfo "Please edit ${ROOT}etc/msmtprc before first use."
162 einfo "In addition, per user configuration files can be placed"
163 einfo "as '~/.msmtprc'. See the msmtprc-user.example file under"
164 einfo "/usr/share/doc/${PF}/ for an example."
165 fi
166 }
167
168 src_install_contrib() {
169 subdir="$1"
170 bins="$2"
171 docs="$3"
172 local dir=/usr/share/${PN}/$subdir
173 insinto ${dir}
174 exeinto ${dir}
175 for i in $bins ; do
176 doexe scripts/$subdir/$i
177 done
178 for i in $docs ; do
179 newdoc scripts/$subdir/$i $subdir.$i
180 done
181 }