blob: f24d5e7975b23acf7c9860b327c90fb508a523da [file] [log] [blame]
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/dnspython/dnspython-1.7.1.ebuild,v 1.10 2009/11/14 17:10:16 arfrever Exp $
EAPI="2"
SUPPORT_PYTHON_ABIS="1"
inherit distutils
DESCRIPTION="DNS toolkit for Python"
HOMEPAGE="http://www.dnspython.org/ http://pypi.python.org/pypi/dnspython"
SRC_URI="http://www.dnspython.org/kits/${PV}/${P}.tar.gz"
LICENSE="ISC"
SLOT="0"
KEYWORDS="*"
IUSE="examples"
DEPEND=""
RDEPEND=""
RESTRICT_PYTHON_ABIS="3.*"
PYTHON_MODNAME="dns"
DOCS="TODO"
src_test() {
cd tests
testing() {
PYTHONPATH="../build-${PYTHON_ABI}/lib:${PYTHONPATH}" emake
}
python_execute_function testing
}
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
}
pkg_postinst() {
distutils_pkg_postinst
elog "Documentation is sparse at the moment. Use pydoc,"
elog "or read the HTML documentation at the dnspython's home page."
}