# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/kid/kid-0.9.5.ebuild,v 1.1 2007/02/03 22:43:15 dev-zero Exp $ NEED_PYTHON=2.3 inherit distutils DESCRIPTION="A simple and Pythonic XML template language" SRC_URI="http://www.kid-templating.org/dist/${PV}/${P}.tar.gz" HOMEPAGE="http://www.kid-templating.org/" KEYWORDS="~amd64 ~ia64 ~x86" LICENSE="MIT" SLOT="0" IUSE="doc examples" RDEPEND="|| ( >=dev-lang/python-2.5 dev-python/elementtree )" DEPEND="${RDEPEND} dev-python/setuptools doc? ( dev-python/docutils )" src_unpack() { unpack ${A} cd "${S}" sed -i \ -e '/use_setuptools/d' \ setup.py || die "sed failed" } src_test() { # We have to move the build folder out of the way to make the tests work mv build build.bak PYTHONPATH="." "${python}" run_tests.py -x || die "tests failed" mv build.bak build } src_compile() { distutils_src_compile use doc && emake -C doc } src_install() { DOCS="HISTORY RELEASING" distutils_src_install dobin bin/* dodoc doc/*.txt use doc && dohtml doc/*.{html,css} if use examples ; then insinto /usr/share/doc/${PF} doins -r examples fi } pkg_postinst() { elog "Installing dev-python/celementtree may enhance performance." }