blob: b9e65de22b0e4ce35619a07a1f6c78de2f785810 (
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-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/dnspython/dnspython-1.6.0.ebuild,v 1.6 2008/12/07 18:08:38 vapier Exp $
NEED_PYTHON=2.2
inherit distutils
DESCRIPTION="DNS toolkit for Python"
HOMEPAGE="http://www.dnspython.org/"
SRC_URI="http://www.dnspython.org/kits/${PV}/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE="examples"
DOCS="TODO"
src_install() {
distutils_src_install
if use examples; then
insinto /usr/share/doc/${PF}
doins -r examples
fi
insinto /usr/share/${PN}
doins -r tests
}
src_test() {
export PYTHONPATH="${S}/build/lib:${PYTHONPATH}"
cd tests
emake || die "Unit tests failed!"
}
pkg_postinst() {
elog "Documentation is sparse at the moment. Use pydoc,"
elog "or read the HTML documentation at the dnspython's home page."
}
|