dev-python/peppercorn: version bump.
authorPatrice Clement <monsieurp@gentoo.org>
Sun, 21 Oct 2018 20:37:59 +0000 (22:37 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Sun, 28 Oct 2018 22:36:52 +0000 (23:36 +0100)
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.10

dev-python/peppercorn/Manifest
dev-python/peppercorn/peppercorn-0.6.ebuild [new file with mode: 0644]

index d0b688fd5c775fb09200233b8cc30ddd5d494388..efa42f0aeb1a32716ccd1e9a06916420a696b48b 100644 (file)
@@ -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 (file)
index 0000000..f1d39fb
--- /dev/null
@@ -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
+}