/[gentoo-x86]/net-mail/mailutils/mailutils-2.99.97.ebuild
Gentoo

Contents of /net-mail/mailutils/mailutils-2.99.97.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Oct 20 17:48:12 2012 UTC (2 years, 2 months ago) by jer
Branch: MAIN
Changes since 1.1: +2 -2 lines
Marked ~hppa (bug #439040).

(Portage version: 2.2.0_alpha141/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-mail/mailutils/mailutils-2.99.97.ebuild,v 1.1 2012/10/20 08:49:03 eras Exp $
4
5 EAPI=4
6 PYTHON_DEPEND="python? 2"
7
8 inherit eutils python
9
10 DESCRIPTION="A useful collection of mail servers, clients, and filters."
11 HOMEPAGE="http://www.gnu.org/software/mailutils/mailutils.html"
12 #SRC_URI="mirror://gnu/mailutils/${P}.tar.xz"
13 SRC_URI="mirror://gnu-alpha/mailutils/${P}.tar.xz"
14 LICENSE="GPL-2 LGPL-2.1"
15 SLOT="0"
16
17 KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~ppc-macos ~x64-macos ~x86-macos"
18 IUSE="berkdb bidi +clients gdbm sasl guile ipv6 kerberos ldap mysql nls pam postgres
19 python servers ssl static-libs +threads tcpd tokyocabinet"
20
21 RDEPEND="!mail-client/nmh
22 !mail-filter/libsieve
23 !mail-client/mailx
24 !mail-client/nail
25 sys-libs/ncurses
26 sys-libs/readline
27 sys-devel/libtool
28 virtual/mta
29 berkdb? ( sys-libs/db )
30 bidi? ( dev-libs/fribidi )
31 gdbm? ( sys-libs/gdbm )
32 guile? ( dev-scheme/guile )
33 kerberos? ( virtual/krb5 )
34 ldap? ( net-nds/openldap )
35 mysql? ( virtual/mysql )
36 nls? ( sys-devel/gettext )
37 pam? ( virtual/pam )
38 postgres? ( dev-db/postgresql-base )
39 sasl? ( virtual/gsasl )
40 ssl? ( net-libs/gnutls )
41 tcpd? ( sys-apps/tcp-wrappers )
42 tokyocabinet? ( dev-db/tokyocabinet )"
43
44 DEPEND="${RDEPEND}"
45
46 pkg_setup() {
47 if use python; then
48 python_set_active_version 2
49 python_pkg_setup
50 fi
51 }
52
53 src_prepare() {
54 # Disable bytecompilation of Python modules.
55 echo "#!/bin/sh" > build-aux/py-compile
56 }
57
58 src_configure() {
59 # maildir is the Gentoo default
60 # but fails tests. So set it in config file instead.
61 #econf MU_DEFAULT_SCHEME=maildir \
62 econf \
63 $(use_with berkdb berkeley-db) \
64 $(use_with bidi fribidi) \
65 $(use_enable ipv6) \
66 $(use_with gdbm) \
67 $(use_with sasl gsasl) \
68 $(use_with guile) \
69 $(use_with kerberos gssapi) \
70 $(use_with ldap) \
71 $(use_with mysql) \
72 $(use_enable nls) \
73 $(use_enable pam) \
74 $(use_with postgres) \
75 $(use_enable python) \
76 $(use_with ssl gnutls) \
77 $(use_enable static-libs static) \
78 $(use_enable threads pthread) \
79 $(use_with tokyocabinet) \
80 $(use_enable servers build-servers) \
81 $(use_enable clients build-clients) \
82 --with-mail-spool=/var/spool/mail \
83 --with-readline \
84 --enable-sendmail \
85 --disable-rpath
86 }
87
88 src_install() {
89 emake DESTDIR="${D}" install
90
91 insinto /etc
92 doins "${FILESDIR}/mailutils.rc"
93 keepdir /etc/mailutils.d/
94 insinto /etc/mailutils.d
95 doins "${FILESDIR}/mail"
96
97 if use python; then
98 python_clean_installation_image
99 rm -f "${ED}$(python_get_sitedir)/mailutils/c_api.a"
100 fi
101
102 if use servers; then
103 newinitd "${FILESDIR}"/imap4d.initd imap4d
104 newinitd "${FILESDIR}"/pop3d.initd pop3d
105 newinitd "${FILESDIR}"/comsatd.initd comsatd
106 fi
107
108 dodoc AUTHORS ChangeLog NEWS README* THANKS TODO
109
110 # compatibility link
111 use clients && dosym /usr/bin/mail /bin/mail
112
113 use static-libs || find "${D}" -name "*.la" -delete
114 }
115
116 pkg_postinst() {
117 if use python; then
118 python_mod_optimize mailutils
119 fi
120 }
121
122 pkg_postrm() {
123 if use python; then
124 python_mod_cleanup mailutils
125 fi
126 }

  ViewVC Help
Powered by ViewVC 1.1.20