diff options
author | 2015-06-13 13:39:55 +0100 | |
---|---|---|
committer | 2015-06-13 13:39:55 +0100 | |
commit | 453e80afac84e9c39abae278230f4be29ab87b14 (patch) | |
tree | 7678e5bbfc712ff45a5291670dad46248274c206 | |
download | mklich-453e80afac84e9c39abae278230f4be29ab87b14.tar.gz mklich-453e80afac84e9c39abae278230f4be29ab87b14.tar.bz2 mklich-453e80afac84e9c39abae278230f4be29ab87b14.zip |
Create layout config, add ebuild
-rw-r--r-- | dev-python/cookiecutter/cookiecuter.ebuild | 35 | ||||
-rw-r--r-- | metadata/layout.conf | 3 |
2 files changed, 38 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 +} 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 |