From 453e80afac84e9c39abae278230f4be29ab87b14 Mon Sep 17 00:00:00 2001 From: Michael Klich Date: Sat, 13 Jun 2015 13:39:55 +0100 Subject: Create layout config, add ebuild --- dev-python/cookiecutter/cookiecuter.ebuild | 35 ++++++++++++++++++++++++++++++ metadata/layout.conf | 3 +++ 2 files changed, 38 insertions(+) create mode 100644 dev-python/cookiecutter/cookiecuter.ebuild create mode 100644 metadata/layout.conf 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 +} diff --git a/metadata/layout.conf b/metadata/layout.conf new file mode 100644 index 0000000..8c35b0f --- /dev/null +++ b/metadata/layout.conf @@ -0,0 +1,3 @@ +masters = gentoo +eapis-deprecated = 1 2 3 4 +repo-name = mklich -- cgit v1.2.3-65-gdbad