blob: a6154130a62d0b903ffbd14c0fd2a6bce9f02339 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libhome/libhome-0.10.1.ebuild,v 1.1 2007/09/09 09:02:13 hollow Exp $
inherit autotools db-use eutils
DESCRIPTION="libhome is a library providing a getpwnam() emulation"
HOMEPAGE="http://pll.sourceforge.net"
SRC_URI="mirror://sourceforge/pll/${P}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="berkdb ldap mysql pam postgres"
DEPEND="berkdb? ( =sys-libs/db-4* )
ldap? ( net-nds/openldap )
mysql? ( virtual/mysql )
pam? ( sys-libs/pam )
postgres? ( dev-db/postgresql )"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-Makefile.patch
eautoreconf
}
src_compile() {
econf --without-db3 \
$(use_with berkdb db4 $(db_includedir)) \
$(use_with ldap) \
$(use_with mysql) \
$(use_with pam) \
$(use_with postgres pgsql) \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
}
|