--- /dev/null
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+
+PYTHON_DEPEND="*"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit distutils
+
+MY_PN="HTMLTemplate"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="HTML templating system."
+HOMEPAGE="http://py-templates.sourceforge.net"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+LICENSE="MIT"
+KEYWORDS="~x64-macos ~x86"
+SLOT="0"
+IUSE="doc"
+S="${WORKDIR}/${MY_P}"
+DEPEND="dev-python/setuptools"
+
+src_install() {
+ distutils_src_install
+ if use doc; then
+ dodoc "${S}"/doc/*
+ fi
+
+}