summaryrefslogtreecommitdiff
blob: 981c97772c5c0678d4134b148f940afba8a8d3c7 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-client/xfmail/xfmail-1.5.5.ebuild,v 1.6 2007/07/22 10:30:44 dberkholz Exp $

IUSE="ldap"
DESCRIPTION="A full-featured mail program using XForms"
SRC_URI="ftp://ftp.welcomes-you.com/pub/${PN}/release/${PV}/source/${P}.tar.bz2"
HOMEPAGE="http://www.xfmail.org"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="ppc ~sparc x86"
RDEPEND="x11-libs/libXpm
		x11-libs/libSM
		=dev-libs/glib-1.2*
		sys-libs/gdbm
		>=x11-libs/xforms-1.0_rc4
		ldap? ( >=net-nds/openldap-2.0.11 )"
DEPEND="${RDEPEND}
		x11-proto/xextproto
		x11-libs/libXt
		sys-apps/sed"

src_compile() {
	local myconf
	use ldap && myconf="$myconf --with-ldap"
	sed -i -e "s:@datadir@:${D}@datadir@:" data/Makefile.in
	sed -i -e "s:@mandir@:${D}@mandir@:" man/Makefile.in
#	./autogen.sh \
#		--host=${CHOST}  \
#		--prefix=/usr \
#		--with-faces $myconf || die
	econf ${myconf} || die
	emake || die
}

src_install () {
	make prefix=${D}/usr \
		manualdir=${D}/usr/share/doc/${PF}/html \
		install || die
	dodoc AUTHORS ChangeLog* NEWS README* TODO*
}