# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/dnspython/dnspython-1.4.0.ebuild,v 1.2 2006/09/30 18:55:19 vapier Exp $ inherit distutils DESCRIPTION="DNS toolkit for Python" HOMEPAGE="http://www.dnspython.org/" SRC_URI="http://www.dnspython.org/kits/stable/${P}.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" IUSE="" DEPEND="virtual/python" DOCS="TODO" src_install() { distutils_src_install insinto /usr/share/doc/${PF} doins -r examples insinto /usr/share/${PN} doins -r tests } pkg_postinst() { einfo einfo "Documentation is sparse at the moment. Use pydoc," einfo "or read the HTML documentation at the dnspython's home page." einfo } src_test() { export PYTHONPATH="${S}/build/lib:${PYTHONPATH}" cd tests make || die "Unit tests failed!" }