diff options
author | Justin Lecher <jlec@gentoo.org> | 2015-09-11 08:47:44 +0200 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2015-09-11 09:53:11 +0200 |
commit | 56fcb82a3560f484661cbea4c8b2c20947ba33a6 (patch) | |
tree | c3fd929b5419f491b0b0c89065b6030a8a056b76 /dev-python/mako | |
parent | dev-python/path-py: Drop old (diff) | |
download | gentoo-56fcb82a3560f484661cbea4c8b2c20947ba33a6.tar.gz gentoo-56fcb82a3560f484661cbea4c8b2c20947ba33a6.tar.bz2 gentoo-56fcb82a3560f484661cbea4c8b2c20947ba33a6.zip |
dev-python/mako: Version Bump
Package-Manager: portage-2.2.20.1
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/mako')
-rw-r--r-- | dev-python/mako/Manifest | 1 | ||||
-rw-r--r-- | dev-python/mako/mako-1.0.2.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/mako/Manifest b/dev-python/mako/Manifest index 1569cd974ef7..5fb58e0a7352 100644 --- a/dev-python/mako/Manifest +++ b/dev-python/mako/Manifest @@ -1 +1,2 @@ DIST Mako-1.0.0.tar.gz 470006 SHA256 a3cd72cfef507204b50f74ffcbfcfde7e856437891d3f6cfe780866986d006fe SHA512 81a6b7637e26d561350a591e3490e7140db218ae7f6b43fec8fca5b767fc6e57d0e8cc901d28fecb9863b2170c824a35c578a94579f991359fa0873f62ec578a WHIRLPOOL aa27b63e3832f03120312fbfec939b05606081e67a5cb4c9a056c27259631c2e159cf7506292d44e2c17c5950d7e4255d19f4beba78502bdbb52fbf11e1a872c +DIST Mako-1.0.2.tar.gz 564592 SHA256 2550c2e4528820db68cbcbe668add5c71ab7fa332b7eada7919044bf8697679e SHA512 d297f9050049ac37612b10d61d3f1bb2cb7f6e238e7afdce092ba95d6117e064b4dfebaa3219093d88f75c6ef691fe3a0aaebd4188a5ba571867d3a3dfe986bc WHIRLPOOL 63f1b0a094dcbd5ab9fb86ba56764ad517b60c24d58b7e51b5220d2df4426e47d0c65d0409f9f7c499c7eaa0747b5bac06326718574038c2276b4b52147274fe diff --git a/dev-python/mako/mako-1.0.2.ebuild b/dev-python/mako/mako-1.0.2.ebuild new file mode 100644 index 000000000000..ec773ed18ca4 --- /dev/null +++ b/dev-python/mako/mako-1.0.2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit distutils-r1 eutils versionator + +MY_PN="Mako" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="A Python templating language" +HOMEPAGE="http://www.makotemplates.org/ https://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 test" + +RDEPEND=" + >=dev-python/markupsafe-0.9.2[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/nose[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7) + )" + +S="${WORKDIR}/${MY_P}" + +python_test() { + nosetests "${S}"/test || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + rm -rf doc/build || die + + use doc && local HTML_DOCS=( doc/. ) + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature dev-python/beaker "Caching support" + for v in ${REPLACING_VERSIONS}; do + if ! version_is_at_least 0.7.3-r2 $v; then + ewarn "dev-python/beaker is no longer hard dependency of ${P}" + ewarn "If you rely on it, you should add beaker to your world" + ewarn "file:" + ewarn "# emerge --noreplace beaker" + break + fi + done +} |