commit: e168d020c520476234a7a5121718b01ce34dac21 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> AuthorDate: Sun Oct 21 20:37:59 2018 +0000 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> CommitDate: Sun Oct 28 22:36:52 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e168d020
dev-python/peppercorn: version bump. Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> Package-Manager: Portage-2.3.49, Repoman-2.3.10 dev-python/peppercorn/Manifest | 1 + dev-python/peppercorn/peppercorn-0.6.ebuild | 47 +++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/dev-python/peppercorn/Manifest b/dev-python/peppercorn/Manifest index d0b688fd5c7..efa42f0aeb1 100644 --- a/dev-python/peppercorn/Manifest +++ b/dev-python/peppercorn/Manifest @@ -1 +1,2 @@ DIST peppercorn-0.5.tar.gz 19637 BLAKE2B 13a94c3bc09b5cdf75cf44b40111b1d5cfbc79b8cfe97bceb9f1cbcbac2983a912dd25676d1e68366e471cc86ec8832cb55c105d3fd3332cafb80e5f086a8e9c SHA512 37f9df282872b0c664780f5e27caf81cc379b05009756cf6c79290b09893d88427f3619916688412dabf20e99f264da8832d959563943e2910b1fcac696edc31 +DIST peppercorn-0.6.tar.gz 16386 BLAKE2B fe72e6585f8fc6e0dc23d9bae321482ec1b2c50e7d13faff11c8a3beedb645a99b1e90852896ac6807938d7e23e1cbb5bc80cb10fd11d657d6574172e61a71d4 SHA512 6363c22cec2c6bdca7a4520d8bd81aae02a74ca473733b22d2557ee7299dbc1bafc77c04808c6e9520f23ac6e1c6bd8acbb8e8dba0deebdac55a170ed0396a60 diff --git a/dev-python/peppercorn/peppercorn-0.6.ebuild b/dev-python/peppercorn/peppercorn-0.6.ebuild new file mode 100644 index 00000000000..f1d39fb4bfe --- /dev/null +++ b/dev-python/peppercorn/peppercorn-0.6.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Convert a token stream into a web form data structure" +HOMEPAGE="https://github.com/Pylons/peppercorn https://pypi.org/project/peppercorn/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="repoze" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +RDEPEND="" + +# Include COPYRIGHT.txt because the license seems to require it +#DOCS=( CHANGES.txt README.txt COPYRIGHT.txt ) + +python_prepare_all() { + # Fix Sphinx theme. courtesy of Arfrever + sed -e "/# Add and use Pylons theme/,+36d" -i docs/conf.py || die "sed failed" + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + esetup.py test +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + + distutils-r1_python_install_all +}