summaryrefslogtreecommitdiff
path: root/dev-python/urlgrabber
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/urlgrabber
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/urlgrabber')
-rw-r--r--dev-python/urlgrabber/Manifest8
-rw-r--r--dev-python/urlgrabber/files/urlgrabber-3.9.1.patch26
-rw-r--r--dev-python/urlgrabber/metadata.xml36
-rw-r--r--dev-python/urlgrabber/urlgrabber-3.10.1.ebuild21
-rw-r--r--dev-python/urlgrabber/urlgrabber-3.9.1-r2.ebuild27
5 files changed, 118 insertions, 0 deletions
diff --git a/dev-python/urlgrabber/Manifest b/dev-python/urlgrabber/Manifest
new file mode 100644
index 000000000000..4b9c589737fa
--- /dev/null
+++ b/dev-python/urlgrabber/Manifest
@@ -0,0 +1,8 @@
+AUX urlgrabber-3.9.1.patch 1057 SHA256 adb6dfeae4f5bccd2bc69ee9fd948acb14ce3cba39ced222d435c6536c6fa75c SHA512 0a02512f871f525f4b3a0126e92e92d1393876f477fe3ae4ff3b0780ba30c21349fb770da59f2af7acd008fcda6bb3c2193204f8334c9f5476bc4e0188bc60ec WHIRLPOOL 33811d054994bfd2dce82b10f8bf5f2829802375cb5b76e9055cb9b4c769a90acf2fc8464a6077f2f0d96504f1f8dec810f0b797c3d5bdacb647378ca3d8e13f
+DIST urlgrabber-3.10.1.tar.gz 83735 SHA256 06b13ff8d527dba3aee04069681b2c09c03117592d5485a80ae4b807cdf33476 SHA512 c44d32b17c5f8984d09ed46ae36b3e05dc69d041820cf979029bc325d8407bbd7e324f264be5886286cd99e123f51affec26638cab6e525f85e2a1c4247462d7 WHIRLPOOL bed47171c6b12de78d430ebaef0f46e5ce166ffa526a19d5a986dc44da5d627f84cfb303b2e2299c8f5af1ee977aad5d9e41a5a886ef26c1986aa53f388f1164
+DIST urlgrabber-3.9.1.tar.gz 72343 SHA256 4437076c8708e5754ea04540e46c7f4f233734ee3590bb8a96389264fb0650d0 SHA512 897f0bd09485c207d735a814fda7cf053c71262e31e87f358c473da770abaf7fd339ae6802df978091889c5d6fe123f74d5386d79c47f93b36cefbc22f44db47 WHIRLPOOL e0fc55804e7565d392a74fc753fcdda1be61c85164fcc00f2acc20270c8c1171e0d49211c04c79ca4e6d056a966a3d8dc48530010201c7748a125dcf54c08544
+EBUILD urlgrabber-3.10.1.ebuild 531 SHA256 63c875d9968edcf0effb4c918540edc711dab8de1e9d87556c2e7b221ee706df SHA512 8cd3f5e53081fc0c9cd4e5d1634f1a259fd1eb33d24f7cdcf7571f8bbd0d17f233c5c87844d211815e58dc76a8ab87543a38c23b25909c5e0b71b7a701937206 WHIRLPOOL 398dbbba96828c4080f3757bfaa6b05caee3dbabeb63d7d9248f9020d5d660ac7db470608ee3f4be215f3de09d0fb07f80bf5284aba8a0512bf94ea111a201a4
+EBUILD urlgrabber-3.9.1-r2.ebuild 575 SHA256 bbf8c4ddace6ee38257bc6e9fa1b0cfa525bd7038438e8997523b83d6917a900 SHA512 c0e0bafd6423c3a04d5ff538e35ee5e3386ed9784ec1f30439edcc9f9d479fae0e3bef6e30700da88cad4516c468b7d835eb7f94f1cbe609905f80cf6168749c WHIRLPOOL e7598fb2eb92864312cdd71356dd91fb50edc26c5599d2c06b4e2753b020fbf86733ca712d74cfc0c98f3172ee14bd5292bdde3f072b087e4d093b631367a4fb
+MISC ChangeLog 2537 SHA256 5d545e74aa501bdf19b94ab9f6de60f99901fc72939bf8dfcb706fb16e7c43dc SHA512 5826867ee2be7b270995dc10fd132c5c43f4cdc71f4baabb89ede18720c1abd051f87409ae2ef50ad458c11be164ceacc92d1cd5b06a7027591d826650b4a574 WHIRLPOOL 4b7ce8e2b5f53b7764cd29f7b9644350d0fffe5f3bc3d049e3be640d6a8ec726b6dd6c961fa12e61bf6c09bcc541f23fde5d70f857666ebe19d4988ef583bff5
+MISC ChangeLog-2015 6039 SHA256 df6355a1210dc57a475b164884a6da6cb19d30e8c026d8bf0d0c421fa6e5e922 SHA512 8604468d3d8086209ca06c41d5ba0eb1b35e8927c4554baf5ddce4fcdcad9aeca0560172352e7909162f50fceb8e2ccded75ac9b8f9497518c6a5b1b269d5cb1 WHIRLPOOL 81ae8322c12a845f7dbaad54fb201ceec38252b513679bd2d55d1ae19fe00f8286d2e61ee19e5747102b1661c8b5fecbcebec9c878fd4fe276f45ba14dabdaab
+MISC metadata.xml 1485 SHA256 6e7a6f3c438ba62e13403a747a3179e6b1324019746dd875159e0b43e3bf3d42 SHA512 cb471d25797f7e39e9b27a6ad12131b2942e4f62128cdf02d53693b478c80a0cf3b48d0e562930149a98dcb2f71068e11475fe8c2bcddcbe010564beaa34df2b WHIRLPOOL 6441fab417f2338bcf5293c06f28c27b2aeee298f7f449fe4f86832fc98e1d226e17be0187bffc93e3edf33ea549f30e35a92a98609e0444c8386a739d644b02
diff --git a/dev-python/urlgrabber/files/urlgrabber-3.9.1.patch b/dev-python/urlgrabber/files/urlgrabber-3.9.1.patch
new file mode 100644
index 000000000000..bdcc9cb1d465
--- /dev/null
+++ b/dev-python/urlgrabber/files/urlgrabber-3.9.1.patch
@@ -0,0 +1,26 @@
+http://yum.baseurl.org/gitweb?p=urlgrabber.git;a=commitdiff;h=f4e57ece7ded0f7ad83c8a40fe8423fab7812264
+http://yum.baseurl.org/gitweb?p=urlgrabber.git;a=commitdiff;h=89cc380a2a251a1d2d8b91cf6df170fa546597aa
+
+diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
+index f98f423..7b7f979 100644
+--- a/urlgrabber/grabber.py
++++ b/urlgrabber/grabber.py
+@@ -1532,11 +1589,14 @@
+ def _over_max_size(self, cur, max_size=None):
+
+ if not max_size:
+- max_size = self.size
+- if self.opts.size: # if we set an opts size use that, no matter what
+- max_size = self.opts.size
++ if not self.opts.size:
++ max_size = self.size
++ else:
++ max_size = self.opts.size
++
+ if not max_size: return False # if we have None for all of the Max then this is dumb
+- if cur > max_size + max_size*.10:
++
++ if cur > int(float(max_size) * 1.10):
+
+ msg = _("Downloaded more than max size for %s: %s > %s") \
+ % (self.url, cur, max_size)
diff --git a/dev-python/urlgrabber/metadata.xml b/dev-python/urlgrabber/metadata.xml
new file mode 100644
index 000000000000..a1f005301924
--- /dev/null
+++ b/dev-python/urlgrabber/metadata.xml
@@ -0,0 +1,36 @@
+<?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>
+ A high-level cross-protocol url-grabber.
+
+ Using urlgrabber, data can be fetched in three basic ways:
+
+ urlgrab(url) copy the file to the local filesystem
+ urlopen(url) open the remote file and return a file object (like urllib2.urlopen)
+ urlread(url) return the contents of the file as a string
+
+
+ When using these functions (or methods), urlgrabber supports the following
+ features:
+
+ * identical behavior for http://, ftp://, and file:// urls
+ * http keepalive - faster downloads of many files by using only a single
+ connection
+ * byte ranges - fetch only a portion of the file
+ * reget - for a urlgrab, resume a partial download
+ * progress meters - the ability to report download progress automatically,
+ even when using urlopen!
+ * throttling - restrict bandwidth usage
+ * retries - automatically retry a download if it fails. The number of retries
+ and failure types are configurable.
+ * authenticated server access for http and ftp
+ * proxy support - support for authenticated http and ftp proxies
+ * mirror groups - treat a list of mirrors as a single source, automatically
+ switching mirrors if there is a failure.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-python/urlgrabber/urlgrabber-3.10.1.ebuild b/dev-python/urlgrabber/urlgrabber-3.10.1.ebuild
new file mode 100644
index 000000000000..0d7d1b75f99b
--- /dev/null
+++ b/dev-python/urlgrabber/urlgrabber-3.10.1.ebuild
@@ -0,0 +1,21 @@
+# 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="Python module for downloading files"
+HOMEPAGE="http://urlgrabber.baseurl.org"
+SRC_URI="http://urlgrabber.baseurl.org/download/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="dev-python/pycurl[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
+# Entire testsuite relies on connecting to the i'net
diff --git a/dev-python/urlgrabber/urlgrabber-3.9.1-r2.ebuild b/dev-python/urlgrabber/urlgrabber-3.9.1-r2.ebuild
new file mode 100644
index 000000000000..a6b4f900325a
--- /dev/null
+++ b/dev-python/urlgrabber/urlgrabber-3.9.1-r2.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="Python module for downloading files"
+HOMEPAGE="http://urlgrabber.baseurl.org"
+SRC_URI="http://urlgrabber.baseurl.org/download/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~ia64 ppc ppc64 x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="dev-python/pycurl[${PYTHON_USEDEP}]"
+RDEPEND="${DEPEND}"
+
+python_prepare_all() {
+ local PATCHES=(
+ "${FILESDIR}"/${P}.patch
+ )
+ distutils-r1_python_prepare_all
+}