diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/urlgrabber | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/urlgrabber')
| -rw-r--r-- | dev-python/urlgrabber/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/urlgrabber/metadata.xml | 37 | ||||
| -rw-r--r-- | dev-python/urlgrabber/urlgrabber-3.10.1-r1.ebuild | 29 |
3 files changed, 67 insertions, 0 deletions
diff --git a/dev-python/urlgrabber/Manifest b/dev-python/urlgrabber/Manifest new file mode 100644 index 000000000000..11c8d8797e8d --- /dev/null +++ b/dev-python/urlgrabber/Manifest @@ -0,0 +1 @@ +DIST urlgrabber-3.10.1.tar.gz 83735 BLAKE2B ea0b3c071f968b2632e89cf225906740685b0f1134d41cf8aaf7e6361110780f6c998b06e4d79527be7e7953c5c4a617d039477135135cc7fc13a0426f0d9ee0 SHA512 c44d32b17c5f8984d09ed46ae36b3e05dc69d041820cf979029bc325d8407bbd7e324f264be5886286cd99e123f51affec26638cab6e525f85e2a1c4247462d7 diff --git a/dev-python/urlgrabber/metadata.xml b/dev-python/urlgrabber/metadata.xml new file mode 100644 index 000000000000..f3d4b02458d8 --- /dev/null +++ b/dev-python/urlgrabber/metadata.xml @@ -0,0 +1,37 @@ +<?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> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/urlgrabber/urlgrabber-3.10.1-r1.ebuild b/dev-python/urlgrabber/urlgrabber-3.10.1-r1.ebuild new file mode 100644 index 000000000000..d66088a5f87d --- /dev/null +++ b/dev-python/urlgrabber/urlgrabber-3.10.1-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" +IUSE="" + +DEPEND="dev-python/pycurl[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" +# Entire testsuite relies on connecting to the i'net + +src_install() { + distutils-r1_src_install + + # Fix "#! /usr/bin/python" to not end up with Python 3 + python_setup + python_fix_shebang "${ED}"/usr/libexec/urlgrabber-ext-down +} |
