Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-mta/msmtp: ChangeLog msmtp-1.4.26.ebuild
Date: Mon, 28 Nov 2011 02:55:54
Message-Id: 20111128025543.9FB252004C@flycatcher.gentoo.org
1 radhermit 11/11/28 02:55:43
2
3 Modified: ChangeLog
4 Added: msmtp-1.4.26.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha77/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.117 mail-mta/msmtp/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/msmtp/ChangeLog?rev=1.117&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/msmtp/ChangeLog?rev=1.117&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/msmtp/ChangeLog?r1=1.116&r2=1.117
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-mta/msmtp/ChangeLog,v
20 retrieving revision 1.116
21 retrieving revision 1.117
22 diff -u -r1.116 -r1.117
23 --- ChangeLog 8 Nov 2011 00:43:29 -0000 1.116
24 +++ ChangeLog 28 Nov 2011 02:55:43 -0000 1.117
25 @@ -1,6 +1,11 @@
26 # ChangeLog for mail-mta/msmtp
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/msmtp/ChangeLog,v 1.116 2011/11/08 00:43:29 radhermit Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/msmtp/ChangeLog,v 1.117 2011/11/28 02:55:43 radhermit Exp $
30 +
31 +*msmtp-1.4.26 (28 Nov 2011)
32 +
33 + 28 Nov 2011; Tim Harder <radhermit@g.o> +msmtp-1.4.26.ebuild:
34 + Version bump.
35
36 08 Nov 2011; Tim Harder <radhermit@g.o> msmtp-1.4.25.ebuild:
37 Add rdep on net-mail/mailbase (bug #389797 by Tiziano Müller).
38
39
40
41 1.1 mail-mta/msmtp/msmtp-1.4.26.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/msmtp/msmtp-1.4.26.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-mta/msmtp/msmtp-1.4.26.ebuild?rev=1.1&content-type=text/plain
45
46 Index: msmtp-1.4.26.ebuild
47 ===================================================================
48 # Copyright 1999-2011 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.26.ebuild,v 1.1 2011/11/28 02:55:43 radhermit Exp $
51
52 EAPI=4
53 inherit multilib python
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 ~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/nbsmtp
84 !mail-mta/netqmail
85 !mail-mta/nullmailer
86 !mail-mta/postfix
87 !mail-mta/qmail-ldap
88 !mail-mta/sendmail
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 dev-util/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
102
103 python_convert_shebangs 2 scripts/msmtp-gnome-tool/msmtp-gnome-tool.py
104 }
105
106 src_configure() {
107 econf \
108 $(use_with gnome-keyring ) \
109 $(use_with idn libidn) \
110 $(use_enable nls) \
111 $(use_with sasl libgsasl) \
112 $(use_with ssl ssl $(use gnutls && echo "gnutls" || echo "openssl"))
113 }
114
115 src_compile() {
116 default
117
118 if use doc ; then
119 cd doc || die
120 emake html pdf
121 fi
122 }
123
124 src_install() {
125 emake DESTDIR="${D}" install
126 dodoc AUTHORS ChangeLog NEWS README THANKS doc/{Mutt+msmtp.txt,msmtprc*}
127
128 if use doc ; then
129 dohtml doc/msmtp.html
130 dodoc doc/msmtp.pdf
131 fi
132
133 if use gnome-keyring ; then
134 src_install_contrib msmtp-gnome-tool msmtp-gnome-tool.py README
135 fi
136
137 if use mta ; then
138 dodir /usr/sbin
139 dosym /usr/bin/msmtp /usr/sbin/sendmail
140 dosym /usr/bin/msmtp /usr/$(get_libdir)/sendmail
141 fi
142
143 if use vim-syntax ; then
144 insinto /usr/share/vim/vimfiles/syntax
145 doins scripts/vim/msmtp.vim
146 fi
147
148 src_install_contrib find_alias find_alias_for_msmtp.sh
149 src_install_contrib msmtpqueue "*.sh" "README ChangeLog"
150 src_install_contrib msmtpq "msmtpq msmtp-queue" README.msmtpq
151 src_install_contrib set_sendmail set_sendmail.sh set_sendmail.conf
152 }
153
154 src_install_contrib() {
155 subdir="$1"
156 bins="$2"
157 docs="$3"
158 local dir=/usr/share/${PN}/$subdir
159 insinto ${dir}
160 exeinto ${dir}
161 for i in $bins ; do
162 doexe scripts/$subdir/$i
163 done
164 for i in $docs ; do
165 newdoc scripts/$subdir/$i $subdir.$i
166 done
167 }