blob: 8dc2131a8363d66d518a6bca427c0292d7336151 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailutils/mailutils-2.2.ebuild,v 1.1 2010/09/10 00:06:56 jer Exp $
EAPI="2"
inherit eutils flag-o-matic python
DESCRIPTION="A useful collection of mail servers, clients, and filters."
HOMEPAGE="http://www.gnu.org/software/mailutils/mailutils.html"
SRC_URI="http://ftp.gnu.org/gnu/mailutils/${P}.tar.bz2"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
IUSE="bidi gdbm guile ldap mysql nls pam postgres python test tokyocabinet"
PROVIDE="virtual/mailx"
RDEPEND="!virtual/mailx
!mail-client/nmh
!mail-filter/libsieve
bidi? ( dev-libs/fribidi )
guile? ( dev-scheme/guile )
gdbm? ( sys-libs/gdbm )
ldap? ( net-nds/openldap )
mysql? ( virtual/mysql )
nls? ( sys-devel/gettext )
postgres? ( dev-db/postgresql-base )
tokyocabinet? ( dev-db/tokyocabinet )
virtual/mta"
DEPEND="${RDEPEND}
test? ( dev-util/dejagnu )"
src_prepare() {
epatch "${FILESDIR}"/${PN}-2.1-python.patch
}
src_configure() {
# TODO: Fix this breakage, starting in examples/cpp/
append-ldflags $(no-as-needed)
local myconf="--localstatedir=/var --sharedstatedir=/var"
myconf="${myconf} --enable-mh"
# We need sendmail or compiling will fail
myconf="${myconf} --enable-sendmail"
econf ${myconf} \
$(use_with bidi fribidi) \
$(use_with gdbm) \
$(use_with guile) \
$(use_with ldap) \
$(use_with mysql) \
$(use_enable nls) \
$(use_enable pam) \
$(use_with postgres) \
$(use_with python) \
$(use_with tokyocabinet) \
|| die "configure failed"
}
src_install() {
emake DESTDIR="${D}" install || die
# mail.rc stolen from mailx, resolve bug #37302.
insinto /etc
doins "${FILESDIR}/mail.rc"
}
pkg_postinst() {
python_mod_optimize "$(python_get_libdir)/site-packages/mailutils"
}
|