diff options
Diffstat (limited to 'net-analyzer/speedtest-cli')
6 files changed, 142 insertions, 0 deletions
diff --git a/net-analyzer/speedtest-cli/Manifest b/net-analyzer/speedtest-cli/Manifest new file mode 100644 index 000000000000..b78c110d5d11 --- /dev/null +++ b/net-analyzer/speedtest-cli/Manifest @@ -0,0 +1,10 @@ +AUX speedtest-cli-0.3.4-fix-unicode-py3.patch 1253 SHA256 58ff93e2152aa513e2446c1f1ab9fc6ce7efdef8d02960fea30b06b02849ab86 SHA512 d071aa76158334c5184766b8c6f0cee0dd789df433a633461cff834f91cc87cf717bf57449c8417ff793708e521ad2ad7f5db43808252393066b2181a378790d WHIRLPOOL 7dc0f605df2102a03081281697cba8c99ce49d17aeef2b671362099dd70238974d88e71053b1df0d9b37889be38ff6edaad5d0610ec5d4df72a5e764f8c2795d +DIST speedtest-cli-0.3.4.tar.gz 14452 SHA256 e50646e245ea3c80c9653a532db0dbaef72f1c439330bcc22c381074c17b719d SHA512 fb22ba9e17a30c172b8f751020d7117caf8b573dee112506917f24c5173e2901e0f0198b4946798daf3a27839519025f4a7f8f8942034bc19356b32d6a0f6851 WHIRLPOOL c5700ec9bc513274056b870c781782ceeea4441282564d18d8ed9fbc7f7c9d3d7099ffcfc5193efec37b823e8da10a953391919c8330f454540dc24ae9e517ea +DIST speedtest-cli-1.0.1.tar.gz 20114 SHA256 3ec2e6444e309f03d5f56526e6a66e4d556bd95e470abab605ac9c71d8231bc8 SHA512 f6e78945f47779dfdadc0328468f3fb20999a011da3c832cca58a4703c083f9d73ea3bd06bc85aba5cce5b63db70a6d3b496ef1037ca377e7699a6cd1e42ed24 WHIRLPOOL 1bba7786bf225b608febd81c2f7fd66aa0fe2ff3e0a4c3524a4814478bd9d09788eb5cce67bd8e187895651955cf01fbb7333939b32cc86bede04b160b05ca17 +DIST speedtest-cli-1.0.2.tar.gz 20251 SHA256 41f50ffb082322eedcfa8b33d0354fc5f1d9fcdc09be76b09b89b293397629c7 SHA512 aa2dad2d9c1246af332c63437be171c0c0d138f16604d246f9f5b8b36b456fbb02376b166c75491211369d6b61220be7669f0b0487235f74dc2db95014e8d349 WHIRLPOOL b27fbfad709bb45b9d70328b4384a220e80b62a6b2b77d9ad98907a8de4907de2d6bca516ac517710c5fbe0c2509899e0fa652c08f598cc0b28a10a51a02f164 +EBUILD speedtest-cli-0.3.4-r1.ebuild 699 SHA256 c9cde0a9f52fab7284257651826af6246fbc8f635e4cecf1b85e7ae3456bc1dd SHA512 7e551453dd1db6ca4ff3497c2f123c2798329f692a983d05b7c16bcf44e27ddae7743f01e791bba743149c389570e11f534cc5a582db5ac495aa8e05647c20d6 WHIRLPOOL 583e165593612fd91c78a45a374d88b90e67104f72e602207e83938e8eef283bf584c5e6c7f75f6c3e28be49cf3dbee9577e4c83eaf31996e17fe5d66c1e6b67 +EBUILD speedtest-cli-1.0.1.ebuild 660 SHA256 e55e15723725986f8b0c11173195dc0fa34d9c58d887d2ce695476354b0414ec SHA512 fde1118057c3d36b660ade21cb0821b62c4a39d7d797a206f76ae096f7c7ab093e62c1779a97a93d7725682baf11dff3ec698844297597227c511721faf75237 WHIRLPOOL 94a889f570d39eb2c278c56124844856e70e810945be95afcb520b17e4e63fac0a65e09e5b1a5e5c72098cfb556104f0fbfd290e9f05332a6439bb20cc050f99 +EBUILD speedtest-cli-1.0.2.ebuild 660 SHA256 e55e15723725986f8b0c11173195dc0fa34d9c58d887d2ce695476354b0414ec SHA512 fde1118057c3d36b660ade21cb0821b62c4a39d7d797a206f76ae096f7c7ab093e62c1779a97a93d7725682baf11dff3ec698844297597227c511721faf75237 WHIRLPOOL 94a889f570d39eb2c278c56124844856e70e810945be95afcb520b17e4e63fac0a65e09e5b1a5e5c72098cfb556104f0fbfd290e9f05332a6439bb20cc050f99 +MISC ChangeLog 3301 SHA256 f44c86306c80c21e282385fa4046e2c3978453df1be1d6e0b147f5b3e8fa0060 SHA512 db7b43b0c369ddcc5ab5fbe1197150e4805f1225feb734f0beb924741afbf6fa29efdd4ba4ffaefdad90fb5743fcff8d77e1a1b82014fb1bc499efaf8e333c95 WHIRLPOOL baa61b5010600a773d866c4525b1ae350a25d7522da1e6abc12a5be15d0701d24a6a519780ca5c54e76e46484b8bc59b99616403d0f84cc09edb6c06024178cc +MISC ChangeLog-2015 1263 SHA256 d45520f9ab1d9770bb9abe4db480fdb821a5cf56871fae365e90208a46def3ee SHA512 b6bc4b78dab9cf13f41c04030c8ae609d1ce332f60f52f7eaeb92960ee3c41382452408fd1859cf4b892326f371e09726a1d21e618b34f9523449741989b029c WHIRLPOOL 886da52d1d97077e0a47bd1343b8f2966849033bfa610a7aa489c58e55b68b71b0c4b44ead7308148e761e101b1c0ad2debb0b33f498b51035e327ab84de6f0f +MISC metadata.xml 460 SHA256 688416e092b47dbc1b9c51e1c786aa564c13166312e0a06eab77349a572c1ff9 SHA512 6e911380a7bc75a4f5726f4bb8f864a2660e93cb07be2cdf55b428fe8615e9e31c7a78f978064ed73fdc1133d6611b3bc3a39966439bb249e4f8a69dbae88f1c WHIRLPOOL b5008973a1533598a595bfb393c59a493ac12c5788cdacfac027f1697859efecf9ddbf5a4e8068b8adc4392ef2b06b0f17c0dc05b9bf286ebeaa7bdf443ea925 diff --git a/net-analyzer/speedtest-cli/files/speedtest-cli-0.3.4-fix-unicode-py3.patch b/net-analyzer/speedtest-cli/files/speedtest-cli-0.3.4-fix-unicode-py3.patch new file mode 100644 index 000000000000..2bd809f9bf67 --- /dev/null +++ b/net-analyzer/speedtest-cli/files/speedtest-cli-0.3.4-fix-unicode-py3.patch @@ -0,0 +1,36 @@ +diff --git a/speedtest_cli.py b/speedtest_cli.py +index d93d5c3..930e42b 100755 +--- a/speedtest_cli.py ++++ b/speedtest_cli.py +@@ -108,6 +108,8 @@ except ImportError: + def write(data): + if not isinstance(data, basestring): + data = str(data) ++ if isinstance(data, unicode): ++ data = data.encode('utf-8', 'ignore') + fp.write(data) + + want_unicode = False +@@ -635,7 +637,7 @@ def speedtest(): + line = ('%(id)4s) %(sponsor)s (%(name)s, %(country)s) ' + '[%(d)0.2f km]' % server) + serverList.append(line) +- print_('\n'.join(serverList).encode('utf-8', 'ignore')) ++ print_('\n'.join(serverList)) + sys.exit(0) + else: + servers = closestServers(config['client']) +@@ -703,8 +705,8 @@ def speedtest(): + best = getBestServer(servers) + + if not args.simple: +- print_(('Hosted by %(sponsor)s (%(name)s) [%(d)0.2f km]: ' +- '%(latency)s ms' % best).encode('utf-8', 'ignore')) ++ print_('Hosted by %(sponsor)s (%(name)s) [%(d)0.2f km]: ' ++ '%(latency)s ms' % best) + else: + print_('Ping: %(latency)s ms' % best) + +-- +2.7.1 + diff --git a/net-analyzer/speedtest-cli/metadata.xml b/net-analyzer/speedtest-cli/metadata.xml new file mode 100644 index 000000000000..718c71bda885 --- /dev/null +++ b/net-analyzer/speedtest-cli/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zx2c4@gentoo.org</email> + <name>Jason A. Donenfeld</name> + </maintainer> + <longdescription lang="en"> + Command line interface for testing internet bandwidth using speedtest.net. + </longdescription> + <upstream> + <remote-id type="github">sivel/speedtest-cli</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-analyzer/speedtest-cli/speedtest-cli-0.3.4-r1.ebuild b/net-analyzer/speedtest-cli/speedtest-cli-0.3.4-r1.ebuild new file mode 100644 index 000000000000..9d15ffc0b7d4 --- /dev/null +++ b/net-analyzer/speedtest-cli/speedtest-cli-0.3.4-r1.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit distutils-r1 + +DESCRIPTION="Command line interface for testing internet bandwidth using speedtest.net" +HOMEPAGE="https://github.com/sivel/speedtest-cli" +SRC_URI="https://github.com/sivel/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 x86 ~arm ~arm64" +IUSE="" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +DOCS=( CONTRIBUTING.md README.rst ) + +PATCHES=( "${FILESDIR}/${PN}-0.3.4-fix-unicode-py3.patch" ) + +python_install_all() { + doman ${PN}.1 + distutils-r1_python_install_all +} diff --git a/net-analyzer/speedtest-cli/speedtest-cli-1.0.1.ebuild b/net-analyzer/speedtest-cli/speedtest-cli-1.0.1.ebuild new file mode 100644 index 000000000000..0ddf1db51517 --- /dev/null +++ b/net-analyzer/speedtest-cli/speedtest-cli-1.0.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit distutils-r1 + +DESCRIPTION="Command line interface for testing internet bandwidth using speedtest.net" +HOMEPAGE="https://github.com/sivel/speedtest-cli" +SRC_URI="https://github.com/sivel/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +DOCS=( CONTRIBUTING.md README.rst ) + +python_install_all() { + doman ${PN}.1 + distutils-r1_python_install_all +} diff --git a/net-analyzer/speedtest-cli/speedtest-cli-1.0.2.ebuild b/net-analyzer/speedtest-cli/speedtest-cli-1.0.2.ebuild new file mode 100644 index 000000000000..0ddf1db51517 --- /dev/null +++ b/net-analyzer/speedtest-cli/speedtest-cli-1.0.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit distutils-r1 + +DESCRIPTION="Command line interface for testing internet bandwidth using speedtest.net" +HOMEPAGE="https://github.com/sivel/speedtest-cli" +SRC_URI="https://github.com/sivel/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +IUSE="" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +DOCS=( CONTRIBUTING.md README.rst ) + +python_install_all() { + doman ${PN}.1 + distutils-r1_python_install_all +} |