aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/cookiecutter/cookiecuter.ebuild')
-rw-r--r--dev-python/cookiecutter/cookiecuter.ebuild35
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/cookiecutter/cookiecuter.ebuild b/dev-python/cookiecutter/cookiecuter.ebuild
new file mode 100644
index 0000000..e674657
--- /dev/null
+++ b/dev-python/cookiecutter/cookiecuter.ebuild
@@ -0,0 +1,35 @@
+EAPI="5"
+
+PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
+
+inherit distutils-r1
+
+DESCRIPTION="A command-line utility that creates projects from cookiecutters (project templates)"
+HOMEPAGE="http://pypi.python.org/pypi/cookiecutter https://github.com/audreyr/cookiecutter"
+SRC_URI="https://github.com/audreyr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+SLOT="0"
+IUSE="doc test"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+
+DOCS=( docs/index.rst )
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ py.test || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( "${S}"/docs/_build/html/. )
+ distutils-r1_python_install_all
+}