From 1be8890c6d5237188c87d3fdcf988c537d7f68b6 Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Mon, 28 Dec 2020 15:14:41 +0100 Subject: Move {dev-python → net-misc}/httpstat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/761478 Signed-off-by: Thomas Deutschmann --- net-misc/httpstat/Manifest | 1 + .../files/httpstat-1.2.1-gentoo-tests.patch | 31 ++++++++++++++++++++++ net-misc/httpstat/httpstat-1.3.0.ebuild | 28 +++++++++++++++++++ net-misc/httpstat/metadata.xml | 13 +++++++++ 4 files changed, 73 insertions(+) create mode 100644 net-misc/httpstat/Manifest create mode 100644 net-misc/httpstat/files/httpstat-1.2.1-gentoo-tests.patch create mode 100644 net-misc/httpstat/httpstat-1.3.0.ebuild create mode 100644 net-misc/httpstat/metadata.xml (limited to 'net-misc') diff --git a/net-misc/httpstat/Manifest b/net-misc/httpstat/Manifest new file mode 100644 index 000000000000..89394e69be18 --- /dev/null +++ b/net-misc/httpstat/Manifest @@ -0,0 +1 @@ +DIST httpstat-1.3.0.tar.gz 97358 BLAKE2B e80a3bd6a6bf7dec1e045e39e9b4491cb81623fa432e32f238fedb71a97fcbd3c362d3211b5cee85e8ed293bc7493d8eb262a0821e473f0a7c8df3f2b8c6fa3e SHA512 6620f7d2da8740da9febdc5d0a177890cc5e85a3a41445c3182f6a8906cad05a475b7547737e60331957a5f48e668194d9592f4e53005a5666ef99b704afbc91 diff --git a/net-misc/httpstat/files/httpstat-1.2.1-gentoo-tests.patch b/net-misc/httpstat/files/httpstat-1.2.1-gentoo-tests.patch new file mode 100644 index 000000000000..0fcb6523e6e1 --- /dev/null +++ b/net-misc/httpstat/files/httpstat-1.2.1-gentoo-tests.patch @@ -0,0 +1,31 @@ +- Testscript doesn't need to run tests for multiple python implementations, + PM will take care of that. + +- Disabling test which requires specific locales. + +--- a/httpstat_test.sh ++++ b/httpstat_test.sh +@@ -19,8 +19,7 @@ function title() { + http_url="google.com" + https_url="https://http2.akamai.com" + +-for pybin in python python3; do +-#for pybin in python; do ++for pybin in python; do + echo + echo "# Test in $pybin" + +@@ -40,9 +39,9 @@ for pybin in python python3; do + main_silent $https_url + assert_exit 0 + +- title "comma decimal language (ru_RU)" +- LC_ALL=ru_RU main_silent $http_url +- assert_exit 0 ++ #title "comma decimal language (ru_RU)" ++ #LC_ALL=ru_RU main_silent $http_url ++ #assert_exit 0 + + title "HTTPSTAT_DEBUG" + HTTPSTAT_DEBUG=true main $http_url | grep -q 'HTTPSTAT_DEBUG=true' + diff --git a/net-misc/httpstat/httpstat-1.3.0.ebuild b/net-misc/httpstat/httpstat-1.3.0.ebuild new file mode 100644 index 000000000000..975c753128f4 --- /dev/null +++ b/net-misc/httpstat/httpstat-1.3.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" +PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="httpstat visualizes cURL statistics in a way of beauty and clarity" +HOMEPAGE="https://github.com/reorx/httpstat" +SRC_URI="https://github.com/reorx/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="net-misc/curl:*" + +# Requires access to google.com and http2.akamai.com +RESTRICT="test" + +PATCHES=( "${FILESDIR}"/${PN}-1.2.1-gentoo-tests.patch ) + +python_test() { + ./httpstat_test.sh || die +} diff --git a/net-misc/httpstat/metadata.xml b/net-misc/httpstat/metadata.xml new file mode 100644 index 000000000000..6a6902f9156c --- /dev/null +++ b/net-misc/httpstat/metadata.xml @@ -0,0 +1,13 @@ + + + + + whissi@gentoo.org + Thomas Deutschmann + + + https://github.com/reorx/httpstat/issues + reorx/httpstat + httpstat + + -- cgit v1.2.3-65-gdbad