summaryrefslogtreecommitdiff
blob: 57299cc9af583ad849a1019e418e66b3f340c4ce (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-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-python/ldaptor/ldaptor-0.0.6.ebuild,v 1.6 2003/06/22 12:15:59 liquidx Exp $

DESCRIPTION="set of LDAP utilities for use from the command line"
SRC_URI="http://twistedmatrix.com/users/tv/ldaptor/${PN}_${PV}.tar.gz"
HOMEPAGE="http://twistedmatrix.com/users/tv/ldaptor/"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86 ~alpha ~sparc"
IUSE=""

DEPEND=">=dev-python/twisted-1.0.1-r1"

src_compile() {
	python setup-ldaptor-utils.py build || \
	    die "compilation of ldaptor-utils failed"
	python setup-ldaptor-webui.py build || \
	    die "compilation of ldaptor-webui failed"
	python setup-python-ldaptor.py build || \
	    die "compilation of python-ldaptor failed"
}

src_install() {
	python setup-ldaptor-utils.py install --root=${D} || die
	python setup-ldaptor-webui.py install --root=${D} || die
	python setup-python-ldaptor.py install --root=${D} || die
	
	dodoc README TODO rfc2251-status.txt

	# install examples
	dodir /usr/share/doc/${PF}/examples
	insinto /usr/share/doc/${PF}/examples
	doins examples/*

	# install tests
	dodir /usr/share/doc/${PF}/tests
	insinto /usr/share/doc/${PF}/tests
       	doins tests/*
}