From fa4e40c7a2acd75989ba614ce6870792e5c6e301 Mon Sep 17 00:00:00 2001 From: Joost Ruis Date: Sat, 8 Feb 2020 20:05:45 +0100 Subject: [PATCH] [dev-python/web*] Add 2 missing deps for dev-python/pylons These were recently dropped from the portage tree. --- dev-python/weberror/Manifest | 1 + dev-python/weberror/weberror-0.13.1.ebuild | 34 +++++++++++ dev-python/webhelpers/Manifest | 1 + .../webhelpers/webhelpers-1.3-r1.ebuild | 61 +++++++++++++++++++ 4 files changed, 97 insertions(+) create mode 100644 dev-python/weberror/Manifest create mode 100644 dev-python/weberror/weberror-0.13.1.ebuild create mode 100644 dev-python/webhelpers/Manifest create mode 100644 dev-python/webhelpers/webhelpers-1.3-r1.ebuild diff --git a/dev-python/weberror/Manifest b/dev-python/weberror/Manifest new file mode 100644 index 000000000..157171bc5 --- /dev/null +++ b/dev-python/weberror/Manifest @@ -0,0 +1 @@ +DIST WebError-0.13.1.tar.gz 85910 BLAKE2B d335511d9a7d6f4a4d68599547b1e610900026c50ca9fae733879daff4bda41b26ecfe2dadc8614c49427115f1c33ccb0e696f3445f2cc4327c1b656b03c3697 SHA512 eaf54ab27775ccb1bb7d58cbac29d2a8045070ab5c6aaf6b95899ec7d9a996f03df2b853ebb4ae39a816cde0985f04a45f2c0ce913b69229a1aef8adeb639a9f diff --git a/dev-python/weberror/weberror-0.13.1.ebuild b/dev-python/weberror/weberror-0.13.1.ebuild new file mode 100644 index 000000000..953c7a3a8 --- /dev/null +++ b/dev-python/weberror/weberror-0.13.1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +MY_PN="WebError" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Web Error handling and exception catching" +HOMEPAGE="https://pypi.python.org/pypi/WebError" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=">=dev-python/paste-1.7.1[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/tempita[${PYTHON_USEDEP}] + dev-python/webob[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( dev-python/webtest[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" + +python_test() { + nosetests -v || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/webhelpers/Manifest b/dev-python/webhelpers/Manifest new file mode 100644 index 000000000..2b3e85b22 --- /dev/null +++ b/dev-python/webhelpers/Manifest @@ -0,0 +1 @@ +DIST WebHelpers-1.3.tar.gz 729963 BLAKE2B 98a51d39f0ea8aaca894ffed1fb21fd05305fc70c9c07062231da16091b7b81fa425725b915fe36b09f7c2943633e9b0e6e326031b1e50c84676b567b2ffe762 SHA512 ff1f19c5b878bdcb05664523d16fce1abb012957f00a97c06b3b5db581c6a361a2db5516b47a0e2b107bc9ba73270ccb323afb240cc67a34d6f15ce9462fad77 diff --git a/dev-python/webhelpers/webhelpers-1.3-r1.ebuild b/dev-python/webhelpers/webhelpers-1.3-r1.ebuild new file mode 100644 index 000000000..5e0c9ea81 --- /dev/null +++ b/dev-python/webhelpers/webhelpers-1.3-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +MY_PN="WebHelpers" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Web Helpers" +HOMEPAGE="https://docs.pylonsproject.org/projects/webhelpers/en/latest/ + https://pypi.python.org/pypi/WebHelpers" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="doc test" + +RDEPEND=">=dev-python/markupsafe-0.9.2[${PYTHON_USEDEP}] + dev-python/webob[${PYTHON_USEDEP}] + dev-python/routes[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MY_P}" + +python_prepare_all() { + # https://bitbucket.org/bbangert/webhelpers/issue/67 + sed \ + -e '/import datetime/a import os' \ + -e 's:"/tmp/feed":os.environ.get("TMPDIR", "/tmp") + "/feed":' \ + -i tests/test_feedgenerator.py || die "sed failed" + + epatch "${FILESDIR}"/mime9ad434b.patch + + distutils-r1_python_prepare_all +} + +python_compile_all() { + use doc && emake html -C docs +} + +python_test() { + nosetests || die "Tests failed under ${EPYTHON}" +} + +python_install_all() { + if use doc; then + pushd docs/_build/html > /dev/null + docinto html + insinto /usr/share/doc/${PF}/html + doins -r [a-z]* _static || die "Installation of documentation failed" + popd > /dev/null + fi + distutils-r1_python_install_all +}