public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-process/bpytop/, sys-process/bpytop/files/
@ 2020-12-21 20:20 Patrick McLean
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McLean @ 2020-12-21 20:20 UTC (permalink / raw
  To: gentoo-commits

commit:     0032389fbc8849685b4fc02965d4500dcba2d6c1
Author:     Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Mon Dec 21 18:54:36 2020 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Mon Dec 21 20:20:27 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0032389f

sys-process/bpytop: New package

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 sys-process/bpytop/Manifest                        |  1 +
 sys-process/bpytop/bpytop-1.0.51.ebuild            | 27 +++++++++++++
 sys-process/bpytop/files/bpytop-1.0.51-tests.patch | 45 ++++++++++++++++++++++
 sys-process/bpytop/metadata.xml                    |  8 ++++
 4 files changed, 81 insertions(+)

diff --git a/sys-process/bpytop/Manifest b/sys-process/bpytop/Manifest
new file mode 100644
index 00000000000..941d914f3f8
--- /dev/null
+++ b/sys-process/bpytop/Manifest
@@ -0,0 +1 @@
+DIST bpytop-1.0.51.tar.gz 616001 BLAKE2B 1155af6d25367b65064039bc46a5f8786d5107e12f9a1280da59f1fb696c3abe99f200126b2107ead4d9ca50ba6e6eeabe79d6e8e247aa4c0be87b952f142655 SHA512 a7157a3e33e5465e406f7930457a6821d8e2b45aca0f0283e7f2e3a8d29f3a6be8c7042380c66bd5ee227b067e6c643ac034b2d02168fe530d02f1eddece6e2d

diff --git a/sys-process/bpytop/bpytop-1.0.51.ebuild b/sys-process/bpytop/bpytop-1.0.51.ebuild
new file mode 100644
index 00000000000..0621a07dc62
--- /dev/null
+++ b/sys-process/bpytop/bpytop-1.0.51.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+DISTUTILS_USE_SETUPTOOLS=pyproject.toml
+inherit distutils-r1
+
+DESCRIPTION="Linux/OSX/FreeBSD resource monitor"
+HOMEPAGE="https://github.com/aristocratos/bpytop"
+SRC_URI="https://github.com/aristocratos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="
+	>=dev-python/psutil-5.7.1[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+PATCHES=(
+	"${FILESDIR}/bpytop-1.0.51-tests.patch"
+)

diff --git a/sys-process/bpytop/files/bpytop-1.0.51-tests.patch b/sys-process/bpytop/files/bpytop-1.0.51-tests.patch
new file mode 100644
index 00000000000..3e5de4751fd
--- /dev/null
+++ b/sys-process/bpytop/files/bpytop-1.0.51-tests.patch
@@ -0,0 +1,45 @@
+diff --git a/bpytop.py b/bpytop.py
+index a1c2b3a..b1cc28e 100755
+--- a/bpytop.py
++++ b/bpytop.py
+@@ -64,23 +64,27 @@ args.add_argument("-p" , "--proc"		,action="store_true" ,help ="Start in minimal
+ args.add_argument("-s" , "--stat"		,action="store_true" ,help ="Start in minimal mode without process box")
+ args.add_argument("-v" , "--version"	,action="store_true" ,help ="Show version info and exit")
+ args.add_argument("--debug"				,action="store_true" ,help ="Start with loglevel set to DEBUG overriding value set in config")
+-stdargs = args.parse_args()
+-
+-if stdargs.version:
+-	print(f'bpytop version: {VERSION}\n'
+-		f'psutil version: {".".join(str(x) for x in psutil.version_info)}')
+-	raise SystemExit(0)
+ 
+ ARG_MODE: str = ""
+ 
+-if stdargs.full:
+-	ARG_MODE = "full"
+-elif stdargs.proc:
+-	ARG_MODE = "proc"
+-elif stdargs.stat:
+-	ARG_MODE = "stat"
++if __name__ == "__main__":
++	stdargs = args.parse_args()
++
++	if stdargs.version:
++		print(f'bpytop version: {VERSION}\n'
++			f'psutil version: {".".join(str(x) for x in psutil.version_info)}')
++		raise SystemExit(0)
+ 
+-DEBUG = stdargs.debug
++	if stdargs.full:
++		ARG_MODE = "full"
++	elif stdargs.proc:
++		ARG_MODE = "proc"
++	elif stdargs.stat:
++		ARG_MODE = "stat"
++
++	DEBUG = stdargs.debug
++else:
++	DEBUG = False
+ 
+ #? Variables ------------------------------------------------------------------------------------->
+ 

diff --git a/sys-process/bpytop/metadata.xml b/sys-process/bpytop/metadata.xml
new file mode 100644
index 00000000000..cee379b1540
--- /dev/null
+++ b/sys-process/bpytop/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>chutzpah@gentoo.org</email>
+		<name>Patrick McLean</name>
+	</maintainer>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sys-process/bpytop/, sys-process/bpytop/files/
@ 2022-09-18 13:58 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2022-09-18 13:58 UTC (permalink / raw
  To: gentoo-commits

commit:     33fbc11b28ca785af65abbe7c393ccff168e419d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 18 13:54:16 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Sep 18 13:58:42 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33fbc11b

sys-process/bpytop: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-process/bpytop/Manifest                        |  3 --
 sys-process/bpytop/bpytop-1.0.61-r1.ebuild         | 33 ----------------------
 sys-process/bpytop/bpytop-1.0.63.ebuild            | 33 ----------------------
 sys-process/bpytop/bpytop-1.0.67.ebuild            | 33 ----------------------
 sys-process/bpytop/files/bpytop-1.0.61-tests.patch | 20 -------------
 5 files changed, 122 deletions(-)

diff --git a/sys-process/bpytop/Manifest b/sys-process/bpytop/Manifest
index 4bc16f0e6212..ab9ae84f6c50 100644
--- a/sys-process/bpytop/Manifest
+++ b/sys-process/bpytop/Manifest
@@ -1,4 +1 @@
-DIST bpytop-1.0.61.tar.gz 626468 BLAKE2B 84a9bbaec6af27b06af53acbe2e735421de3bc4567fcf7fb29d05f801f7414b4e035e67a2fecb27a45d4d91c1d6ef527a16775f44c2e5620ecf797794969a2d2 SHA512 639e0d94bd500477b8288400c6fa1769f1b7327733bec8292e72eb3024e26f6242901970dfc539d9fb309f69299ea934e02ab93226f907ddbbefb670bffb027c
-DIST bpytop-1.0.63.tar.gz 627729 BLAKE2B a61d7c101c05d8e706b5c89f3c52dd02cf99e126d73f4cdb58adf8e474774e618abce7184a6fcf1c1b69f4c491b088c4c715d7b803c56933e1a8eeb8efa77fec SHA512 85334a43137466992fe3003f7f29b6a66b41732d1953fd5653ce277d35735127eef97607599906c0d0cfc7323852da75541b2ae79db22f843892097a2d3398e4
-DIST bpytop-1.0.67.tar.gz 628491 BLAKE2B 9ce35332dde806d132fee42f04f787e9220f05644e938d83725369157032a556c89d216a393a52a26fa6c6841a2b91b8212ee122ba734e1aedc912f7a02d350b SHA512 bfd6b365d4d76521cb5d1edccfd858732143a1a9273dc0e17d348c824c125df904b1160d9e7f81d718f880c4f3eea33d045a684706039bceb7f95ed67df2b56b
 DIST bpytop-1.0.68.tar.gz 632649 BLAKE2B a32a3b583b31c2c2013f4d2bb8834cf02a8702d37f723e304691eecdebcf32e21f639428abe7f5251c075aa73ed46f610e47c4241092455351001c31b2a051b5 SHA512 88a8be5cb5bbf5516dbafeb4d513d6a489ae9a8a84de316e2331a428cd4f338f8e01ed2eedd92c610b722c06dd968d85baf27692316f905855aca3d8a67a731d

diff --git a/sys-process/bpytop/bpytop-1.0.61-r1.ebuild b/sys-process/bpytop/bpytop-1.0.61-r1.ebuild
deleted file mode 100644
index f6f0711dff40..000000000000
--- a/sys-process/bpytop/bpytop-1.0.61-r1.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 2020-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7..9} )
-DISTUTILS_USE_SETUPTOOLS=pyproject.toml
-inherit distutils-r1
-
-DESCRIPTION="Linux/OSX/FreeBSD resource monitor"
-HOMEPAGE="https://github.com/aristocratos/bpytop"
-SRC_URI="https://github.com/aristocratos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="test"
-
-RDEPEND="
-	>=dev-python/psutil-5.7.1[${PYTHON_USEDEP}]
-"
-
-distutils_enable_tests pytest
-
-PATCHES=(
-	"${FILESDIR}/bpytop-1.0.61-tests.patch"
-)
-
-src_install() {
-	insinto "/usr/share/${PN}/themes"
-	doins bpytop-themes/*.theme
-	distutils-r1_src_install
-}

diff --git a/sys-process/bpytop/bpytop-1.0.63.ebuild b/sys-process/bpytop/bpytop-1.0.63.ebuild
deleted file mode 100644
index ad730c667c56..000000000000
--- a/sys-process/bpytop/bpytop-1.0.63.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 2020-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7..9} )
-DISTUTILS_USE_SETUPTOOLS=pyproject.toml
-inherit distutils-r1
-
-DESCRIPTION="Linux/OSX/FreeBSD resource monitor"
-HOMEPAGE="https://github.com/aristocratos/bpytop"
-SRC_URI="https://github.com/aristocratos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="amd64 ~x86"
-IUSE="test"
-
-RDEPEND="
-	>=dev-python/psutil-5.7.1[${PYTHON_USEDEP}]
-"
-
-distutils_enable_tests pytest
-
-PATCHES=(
-	"${FILESDIR}/bpytop-1.0.63-tests.patch"
-)
-
-src_install() {
-	insinto "/usr/share/${PN}/themes"
-	doins bpytop-themes/*.theme
-	distutils-r1_src_install
-}

diff --git a/sys-process/bpytop/bpytop-1.0.67.ebuild b/sys-process/bpytop/bpytop-1.0.67.ebuild
deleted file mode 100644
index eab03f77eecc..000000000000
--- a/sys-process/bpytop/bpytop-1.0.67.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 2020-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{7..10} )
-DISTUTILS_USE_SETUPTOOLS=pyproject.toml
-inherit distutils-r1
-
-DESCRIPTION="Linux/OSX/FreeBSD resource monitor"
-HOMEPAGE="https://github.com/aristocratos/bpytop"
-SRC_URI="https://github.com/aristocratos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~x86"
-IUSE="test"
-
-RDEPEND="
-	>=dev-python/psutil-5.7.1[${PYTHON_USEDEP}]
-"
-
-distutils_enable_tests pytest
-
-PATCHES=(
-	"${FILESDIR}/bpytop-1.0.63-tests.patch"
-)
-
-src_install() {
-	insinto "/usr/share/${PN}/themes"
-	doins bpytop-themes/*.theme
-	distutils-r1_src_install
-}

diff --git a/sys-process/bpytop/files/bpytop-1.0.61-tests.patch b/sys-process/bpytop/files/bpytop-1.0.61-tests.patch
deleted file mode 100644
index 51cef1ce6394..000000000000
--- a/sys-process/bpytop/files/bpytop-1.0.61-tests.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-diff --git a/bpytop.py b/bpytop.py
-index 38d6e8b..12e4853 100755
---- a/bpytop.py
-+++ b/bpytop.py
-@@ -65,10 +65,11 @@ args.add_argument("-v", "--version",	action="store_true", 			help = "show versio
- args.add_argument("--debug",			action="store_true", 			help = "start with loglevel set to DEBUG overriding value set in config")
- stdargs = args.parse_args()
- 
--if stdargs.version:
--	print(f'bpytop version: {VERSION}\n'
--		f'psutil version: {".".join(str(x) for x in psutil.version_info)}')
--	raise SystemExit(0)
-+if __name__ == "__main__":
-+	if stdargs.version:
-+		print(f'bpytop version: {VERSION}\n'
-+			f'psutil version: {".".join(str(x) for x in psutil.version_info)}')
-+		raise SystemExit(0)
- 
- ARG_BOXES: str = stdargs.boxes
- LOW_COLOR: bool = stdargs.low_color


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-18 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-18 13:58 [gentoo-commits] repo/gentoo:master commit in: sys-process/bpytop/, sys-process/bpytop/files/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2020-12-21 20:20 Patrick McLean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox