blob: a50461ad615dfe4a6178099474a319d0d0da53a0 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libuser/libuser-0.56.8.ebuild,v 1.2 2008/03/19 07:29:15 dberkholz Exp $
inherit eutils rpm
# Revision of the RPM. Shouldn't affect us, as we're just grabbing the source
# tarball out of it
RPMREV="1"
DESCRIPTION="A user and group account administration library"
HOMEPAGE="https://fedorahosted.org/libuser/"
SRC_URI="mirror://fedora-dev/development/source/SRPMS/${P}-${RPMREV}.src.rpm"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="ldap sasl selinux quotas"
RDEPEND="=dev-libs/glib-2*
app-text/linuxdoc-tools
dev-libs/popt
sys-libs/pam
sys-libs/system-config-base
dev-lang/python
sys-apps/shadow
ldap? ( net-nds/openldap )
sasl? ( dev-libs/cyrus-sasl )"
DEPEND="${RDEPEND}"
src_unpack() {
rpm_src_unpack
cd "${S}"
epatch "${FILESDIR}"/0.54.6-raise-minimum-ids-to-1000.patch
}
src_compile() {
econf \
$(use_with ldap) \
$(use_with sasl) \
$(use_with selinux) \
$(use_enable quotas quota) \
|| die "econf failed"
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
}
|