summaryrefslogtreecommitdiff
blob: 68cd50de96409e04b3a3d2ddeb3aa9a2d23a6adc (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailutils/mailutils-0.3.ebuild,v 1.4 2004/05/30 07:24:20 robbat2 Exp $

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="x86 ~ppc"
IUSE="nls pam mysql gdbm"
DEPEND="!mail-client/mailx
	!net-mail/nmh
	dev-util/guile
	gdbm? ( sys-libs/gdbm )
	mysql? ( dev-db/mysql )
	nls? ( sys-devel/gettext )"

S=${WORKDIR}/${P}

src_compile() {

	use nls || myconf="${myconf} --disable-nls"

	use pam || myconf="${myconf} --disable-pam"

	use mysql && myconf="${myconf} --enable-mysql"

	use gdbm && myconf="${myconf} --with-gdbm"

	./configure \
		--host=${CHOST} \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--infodir=/usr/share/info \
		--sharedstatedir=/var \
		--mandir=/usr/share/man \
		--disable-sendmail \
		${myconf} || die "./configure failed"
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die
}