commit: 4b24d666c5dc6e6c0913c836d580a59e7b33bdf2 Author: Maciej Barć <xgqt <AT> protonmail <DOT> com> AuthorDate: Sun Sep 6 03:27:02 2020 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> CommitDate: Sun Sep 6 03:27:13 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4b24d666
app-admin/s-tui: new package; add version 1.0.2 and live 9999 Package-Manager: Portage-3.0.5, Repoman-2.3.23 Signed-off-by: Maciej Barć <xgqt <AT> protonmail.com> app-admin/s-tui/Manifest | 1 + app-admin/s-tui/metadata.xml | 12 ++++++++++++ app-admin/s-tui/s-tui-1.0.2.ebuild | 39 ++++++++++++++++++++++++++++++++++++++ app-admin/s-tui/s-tui-9999.ebuild | 39 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 91 insertions(+) diff --git a/app-admin/s-tui/Manifest b/app-admin/s-tui/Manifest new file mode 100644 index 0000000..d3eef48 --- /dev/null +++ b/app-admin/s-tui/Manifest @@ -0,0 +1 @@ +DIST s-tui-1.0.2.tar.gz 2607552 BLAKE2B 8ed54c44aeab0ccf5806e8fa1cb566b23d9f27f82a281882b36de85c4800515385c558da59b1ba8f039da15d08696865d5ac201c85c1b74316a7757fc2f02125 SHA512 7b475a4be69b702bd0a916e5c4fbec2dc9976e5033d6afb24af0583eba62292d5f7ab26779e1b55d8adaa113c32984a15311d050e9457d791778734b9236d530 diff --git a/app-admin/s-tui/metadata.xml b/app-admin/s-tui/metadata.xml new file mode 100644 index 0000000..4345ad7 --- /dev/null +++ b/app-admin/s-tui/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Maciej Barć</name> + </maintainer> + <upstream> + <remote-id type="github">PyCQA/redbaron</remote-id> + <remote-id type="pypi">redbaron</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-admin/s-tui/s-tui-1.0.2.ebuild b/app-admin/s-tui/s-tui-1.0.2.ebuild new file mode 100644 index 0000000..b9e969a --- /dev/null +++ b/app-admin/s-tui/s-tui-1.0.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit eutils distutils-r1 + +DESCRIPTION="Stress-Terminal UI monitoring tool" +HOMEPAGE="https://amanusk.github.io/s-tui/" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/amanusk/${PN}.git" + EGIT_SUBMODULES=() +else + # Pypi source doesn't include tests + SRC_URI="https://github.com/amanusk/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-2" +SLOT="0" + +RDEPEND=" + >=dev-python/urwid-2.0.1[${PYTHON_USEDEP}] + >=dev-python/psutil-5.6.0[${PYTHON_USEDEP}] +" + +distutils_enable_tests unittest + +pkg_postinst() { + elog "To get additional features, some optional runtime dependencies" + elog "may be installed:" + elog "" + optfeature "Stress options in program menu" app-benchmarks/stress +} diff --git a/app-admin/s-tui/s-tui-9999.ebuild b/app-admin/s-tui/s-tui-9999.ebuild new file mode 100644 index 0000000..69e4e74 --- /dev/null +++ b/app-admin/s-tui/s-tui-9999.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit eutils distutils-r1 + +DESCRIPTION="Stress-Terminal UI monitoring tool" +HOMEPAGE="https://amanusk.github.io/s-tui/" + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/amanusk/${PN}.git" + EGIT_SUBMODULES=() +else + # Pypi source doesn't include tests + SRC_URI="https://github.com/amanusk/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-2" +SLOT="0" + +RDEPEND=" + >=dev-python/psutil-5.6.0[${PYTHON_USEDEP}] + >=dev-python/urwid-2.0.1[${PYTHON_USEDEP}] +" + +distutils_enable_tests unittest + +pkg_postinst() { + elog "To get additional features, some optional runtime dependencies" + elog "may be installed:" + elog "" + optfeature "Stress options in program menu" app-benchmarks/stress +}
