diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/webhelpers |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/webhelpers')
-rw-r--r-- | dev-python/webhelpers/Manifest | 6 | ||||
-rw-r--r-- | dev-python/webhelpers/files/mime9ad434b.patch | 14 | ||||
-rw-r--r-- | dev-python/webhelpers/metadata.xml | 11 | ||||
-rw-r--r-- | dev-python/webhelpers/webhelpers-1.3-r1.ebuild | 60 |
4 files changed, 91 insertions, 0 deletions
diff --git a/dev-python/webhelpers/Manifest b/dev-python/webhelpers/Manifest new file mode 100644 index 000000000000..65a8ee592a5e --- /dev/null +++ b/dev-python/webhelpers/Manifest @@ -0,0 +1,6 @@ +AUX mime9ad434b.patch 827 SHA256 1e1f6a1cd93750e8d8c255a40c49e035be0595ad28568e6f23a265f42001a486 SHA512 98ee96b72152d1c644ce398c9bd52e6e1ba45de1c93c739fbbc0e81fafb5387dfb41551c7752c251e24003abeaba1ff16b6d3367a5e441a1a864b698638c4af5 WHIRLPOOL 588a026ddd7d98d058cd5201c6aef16480447b27b0e2d2abeab70cb86b68e21f4f744a3c3598d407da8507afed850a92ae2d20060977f715ef9e49a80bb2b19f +DIST WebHelpers-1.3.tar.gz 729963 SHA256 ea86f284e929366b77424ba9a89341f43ae8dee3cbeb8702f73bcf86058aa583 SHA512 ff1f19c5b878bdcb05664523d16fce1abb012957f00a97c06b3b5db581c6a361a2db5516b47a0e2b107bc9ba73270ccb323afb240cc67a34d6f15ce9462fad77 WHIRLPOOL dfc67dd1c8ac955bf9cc7584db9b629a3d7525a98e8f75e2f8fe5042c5d2cd2d5f70f694ce69aba8eaa87571ead558ef31501768b1515e0af931a6c9c145437f +EBUILD webhelpers-1.3-r1.ebuild 1511 SHA256 ad0a8ec11b0b7ae14802101a7a9d5a676fda700f459efd58655ba4427c570b24 SHA512 0ecc8011d2c35d153a3d35b13d91fe41e9408954ff11e9903deb3b437d52496b4030817bf0788b6e181310e7686572779a092fb75400be5553eb370aa1e202d1 WHIRLPOOL dc6736c1eb7b32ba6bf3a16500f183c8a7fe4a380c6809e26a43bb3349db7bcffb33ed91246445eba6c949b852954a30517cba4ea5c511d5276e0e2b1f3544c4 +MISC ChangeLog 2613 SHA256 a4aa920d9714c2d7f2b25205c6c6614e981fda038ea84d67ca1be6626fa54245 SHA512 5b326a4ab711a3816f9407b0b065f41efa931c2bb5e2a32cf75b11f8a2f448209ba02909f505041f43441476cb482f8ca359c15e1f64ebd5da7252a02361f328 WHIRLPOOL e6b98a30467afbf892e3343de90548632592590a08635f7827d1730bedba24c1186a6c3e5f8dc431ab309052d63901c9a9251581168f60dcee6653c3b0dee923 +MISC ChangeLog-2015 2948 SHA256 416365f75e229f5a710dcea91454ea91cbd26be00633161fb3e61a92b083b6f1 SHA512 715234cc2f242bc3badb8ee007045073c0d700e4e52319a4e7fcac4d20ea3c5719827959e0e7d9642348559a520d394ce6564687fc6acad8c73217c024cb515a WHIRLPOOL de2257773abd87ad9181e18b7de3da6323d68063081ff1ab71966ab23d529fd9326d1d8b9b560453a29e40257a9e0b13e511be933f5fd6214499356a9f9ac573 +MISC metadata.xml 313 SHA256 e3b331a288c741972b74be79543f05a4015d294964e1fedb3c6622a9c178059b SHA512 d3f3cb56d4fbc3690545df372cd447b9f34a613044372211037b9366dd0ae91168d0c465c80008b0d1e9ca78384d186b3a8dfa2516ccc7ddfa5b09b4e14009ec WHIRLPOOL 3e5f6e08687d333bada4ca9fc9ce3707e04d7ea10ba77a426e0031e9b2ce6554d5cb5d33c9cb75d16b210734c87828718cc15b52632aa5fbc37d489c59cad763 diff --git a/dev-python/webhelpers/files/mime9ad434b.patch b/dev-python/webhelpers/files/mime9ad434b.patch new file mode 100644 index 000000000000..5e37216f3847 --- /dev/null +++ b/dev-python/webhelpers/files/mime9ad434b.patch @@ -0,0 +1,14 @@ +https://bitbucket.org/bbangert/webhelpers/commits/9ad434bec9a16c06c1cfeed38cde02f00a95685d +diff -ur WebHelpers-1.3.orig/webhelpers/mimehelper.py WebHelpers-1.3/webhelpers/mimehelper.py +--- webhelpers/mimehelper.py 2010-11-18 12:34:33.000000000 +0800 ++++ webhelpers/mimehelper.py 2013-06-17 15:45:40.603257640 +0800 +@@ -110,8 +110,7 @@ + if '.' in last_part: + has_extension = True + if 'HTTP_ACCEPT' in self.env: +- possible_from_accept_header = webob.acceptparse.MIMEAccept('ACCEPT', +- self.env['HTTP_ACCEPT']) ++ possible_from_accept_header = webob.acceptparse.MIMEAccept(self.env['HTTP_ACCEPT']) + if has_extension == False: + if possible_from_accept_header is None: + return self._set_response_content_type(content_type) diff --git a/dev-python/webhelpers/metadata.xml b/dev-python/webhelpers/metadata.xml new file mode 100644 index 000000000000..f6028f47fc7b --- /dev/null +++ b/dev-python/webhelpers/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">WebHelpers</remote-id> + </upstream> +</pkgmetadata> 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 000000000000..2a3ebb4d71d4 --- /dev/null +++ b/dev-python/webhelpers/webhelpers-1.3-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 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="http://webhelpers.groovie.org/ 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 +} |