summaryrefslogtreecommitdiff
path: root/dev-python/python-urljr
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/python-urljr
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/python-urljr')
-rw-r--r--dev-python/python-urljr/Manifest4
-rw-r--r--dev-python/python-urljr/files/python-urljr-1.0.1-gentoo-test_fetchers.patch11
-rw-r--r--dev-python/python-urljr/metadata.xml9
-rw-r--r--dev-python/python-urljr/python-urljr-1.0.1-r1.ebuild27
4 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/python-urljr/Manifest b/dev-python/python-urljr/Manifest
new file mode 100644
index 000000000000..7f18567db713
--- /dev/null
+++ b/dev-python/python-urljr/Manifest
@@ -0,0 +1,4 @@
+AUX python-urljr-1.0.1-gentoo-test_fetchers.patch 540 BLAKE2B 66d9ca4c965f900a7d02d4b934dae1ec5d402975bdef7afa9db7a7a28b232aaec25a66e3d4f0d260249446d692af31054480ef16a3873d47a5668fe92e6a8a5f SHA512 bb07e8adabdc9d03265d2f651c5c02d62227dddd85905daacc9986f119a7ea7db2743242d79df8cfc35f44ab1f90cbe9199c6457b110d97a8861d84aa92e5365
+DIST python-urljr-1.0.1.tar.gz 16570 BLAKE2B c1eab9bdda42a670b6c58fc21280c9904b6cf4786440b33693eb4154f6492f8f9438b2f88bbfce724281c51a7270707cfc948da7d35192cebc2f9b904540810c SHA512 fff9e5f557ff8fa88e122f535134320043f9a14fd8048234bef762af666f4c088d50c6bc8dd3d173154e80eb8e076f0fb6749e39dd9c6f88c7ab763314dad0ad
+EBUILD python-urljr-1.0.1-r1.ebuild 730 BLAKE2B 00a599dde9e7167449ef9f5f68e63b8698bdc2462977ded86d47e96eb3cc23a372dba076b1579c21d24f213d7b81c3ae110d004cbab2bcfca7e1fb96e57a949e SHA512 92643bf7047829ab154be59973ad41fbab0fc82b76b10fd122d402d59d3cb9c7e34527783a3856975fa577c23a0e7c1fca69ba1a5fdfb4f7854d34040cdf4491
+MISC metadata.xml 300 BLAKE2B 080ba19508bb68fa6b5ae7e6bc53066f7a7efe2dda7e8e3cd45eb4e67e8b58086da8991f16298a97b6c6659616bb521ed8be5232c41fc712413ef97d16d311d1 SHA512 6968c0889e20fc4e26fc8626d9dcc25a97e6c755b323c181291bafcb5186e519f48e52664e01b4e14cc49561af1fff365f90bcada9c876ae65487ce81639fc76
diff --git a/dev-python/python-urljr/files/python-urljr-1.0.1-gentoo-test_fetchers.patch b/dev-python/python-urljr/files/python-urljr-1.0.1-gentoo-test_fetchers.patch
new file mode 100644
index 000000000000..5a451e4a5600
--- /dev/null
+++ b/dev-python/python-urljr/files/python-urljr-1.0.1-gentoo-test_fetchers.patch
@@ -0,0 +1,11 @@
+--- urljr/test/test_fetchers.py.orig 2007-05-31 09:16:31.000000000 -0700
++++ urljr/test/test_fetchers.py 2007-05-31 09:17:47.000000000 -0700
+@@ -8,6 +8,8 @@
+ # XXX: make these separate test cases
+
+ def failUnlessResponseExpected(expected, actual):
++ expected.final_url = expected.final_url.replace("localhost", "127.0.0.1")
++ actual.final_url = actual.final_url.replace("localhost", "127.0.0.1")
+ assert expected.final_url == actual.final_url
+ assert expected.status == actual.status
+ assert expected.body == actual.body
diff --git a/dev-python/python-urljr/metadata.xml b/dev-python/python-urljr/metadata.xml
new file mode 100644
index 000000000000..7dddf61089b2
--- /dev/null
+++ b/dev-python/python-urljr/metadata.xml
@@ -0,0 +1,9 @@
+<?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>
+ <longdescription>JanRain's URL Utilities</longdescription>
+</pkgmetadata>
diff --git a/dev-python/python-urljr/python-urljr-1.0.1-r1.ebuild b/dev-python/python-urljr/python-urljr-1.0.1-r1.ebuild
new file mode 100644
index 000000000000..65ba00ef80e3
--- /dev/null
+++ b/dev-python/python-urljr/python-urljr-1.0.1-r1.ebuild
@@ -0,0 +1,27 @@
+# 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
+
+DESCRIPTION="JanRain's URL Utilities"
+HOMEPAGE="http://www.openidenabled.com/openid/libraries/python/"
+SRC_URI="http://www.openidenabled.com/resources/downloads/python-openid/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="curl test"
+
+RDEPEND="curl? ( >=dev-python/pycurl-7.15.1[${PYTHON_USEDEP}] )"
+DEPEND=""
+
+REQUIRED_USE="test? ( curl )"
+# test fails if it finds 'localhost' instead of '127.0.0.1'
+PATCHES=( "${FILESDIR}/${P}-gentoo-test_fetchers.patch" )
+
+python_test() {
+ PYTHONPATH=. "${PYTHON}" admin/runtests || die "tests failed"
+}