diff options
-rw-r--r-- | dev-python/mako/Manifest | 1 | ||||
-rw-r--r-- | dev-python/mako/mako-0.9.1.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/mako/Manifest b/dev-python/mako/Manifest index b6736ec..2872a53 100644 --- a/dev-python/mako/Manifest +++ b/dev-python/mako/Manifest @@ -1 +1,2 @@ DIST Mako-0.9.0.tar.gz 420354 SHA256 c090ae3d775f714c572583f2bb7ace591847eab0d86accd81d17005411b10027 SHA512 ca583313afd37220bf47f9fd9fc50b5a140122bf9b3b7cdbf380455ffe8f16391a0873980eac8ca4f3fa17842ed7b021c72d712aa03774e4ef00ab3a149b2415 WHIRLPOOL 9dff2b9fa8ed5f63953621e0d6d2bc6adfe3d34ea9d6d5b0b40dbcbadb7be4b14a12a50b556ad2524a6443d127a178b6f6a5cf29fb3fabf6dcb55c2d9fec9996 +DIST Mako-0.9.1.tar.gz 421071 SHA256 ed74d72b720a97a51590dfa839f2048ceeb76cc80d1d9ea5731a5262384316ae SHA512 762affad80f804a7d71030deba65e8153e3c7fcd26c34cfb2f546804ec12e092a3eabdb8b0d12430e35b15220c39653be57ed80e3cbb314067d8b35f39834c63 WHIRLPOOL 7a861bcef3ed5fc64dac3ede9e7396d6f6bb28ceb6eb0b225ac265b1073254216746cce4b5dd3bc2f75b5a5edd043a05e0d53626efd506d1b9524d6ad65e8471 diff --git a/dev-python/mako/mako-0.9.1.ebuild b/dev-python/mako/mako-0.9.1.ebuild new file mode 100644 index 0000000..8f5c7e5 --- /dev/null +++ b/dev-python/mako/mako-0.9.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1998-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} ) + +inherit distutils-r1 + +MY_PN=Mako +MY_P=${MY_PN}-${PV} + +DESCRIPTION="A Python templating language" +HOMEPAGE="http://www.makotemplates.org/ http://pypi.python.org/pypi/Mako" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="doc +cache test" +REQUIRED_USE="cache? ( !python_targets_python3_2 !python_targets_python3_3 )" + +RDEPEND="cache? ( >=dev-python/beaker-1.1[$(python_gen_usedep python2\*)] ) + >=dev-python/markupsafe-0.9.2[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" + +python_test() { + cp -r -l test "${BUILD_DIR}"/ || die + + cd "${BUILD_DIR}"/test || die + nosetests || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + rm -rf doc/build + + use doc && local HTML_DOCS=( doc/. ) + distutils-r1_python_install_all +} |