From f92fa7820b35b50d486cf436bd8b99a232fb8c35 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 19 Apr 2023 09:27:36 +0200 Subject: [PATCH] sys-apps/dool: add 1.1.0 Signed-off-by: Florian Schmaus --- sys-apps/dool/Manifest | 2 + sys-apps/dool/dool-1.1.0.ebuild | 67 +++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 sys-apps/dool/dool-1.1.0.ebuild diff --git a/sys-apps/dool/Manifest b/sys-apps/dool/Manifest index cce2385ed9..ca8c528044 100644 --- a/sys-apps/dool/Manifest +++ b/sys-apps/dool/Manifest @@ -1 +1,3 @@ +DIST dool-1.0.0-fix-proc-diskstats-parsing.patch 7784 BLAKE2B 0c819c124ad5ec66800f2b8700f1b6d533311e91f978c0db16909ef089997605fe4660de8042533f3a8130db521671fbbe7c9064f1a08f108f39f4472d4720ce SHA512 8611cfc39eb1b3b7353c72234b28d13501f9bff544815ae7d939f37b2c1c18ec8b26f7e72db592d6c55481397b31ba0cd5929e0ad80547d3457dca685e9b589d DIST dool-1.0.0.tar.gz 141224 BLAKE2B 9c1d733b340b3f1d51798ce85698e7fc526aea349b500431d348d413c1fd93d07d8ccb8241e671a40363275b8c4025ed2f4983b4dfc70f5e166178635935337e SHA512 5204eb1c0a37b225d447830048e5f2372dd3973d50cbd3fbc42972782a4853b809e566550e752c857502f86ceed7ea31620ea27059f9f334d27f28cc61abd968 +DIST dool-1.1.0.tar.gz 141224 BLAKE2B 9c1d733b340b3f1d51798ce85698e7fc526aea349b500431d348d413c1fd93d07d8ccb8241e671a40363275b8c4025ed2f4983b4dfc70f5e166178635935337e SHA512 5204eb1c0a37b225d447830048e5f2372dd3973d50cbd3fbc42972782a4853b809e566550e752c857502f86ceed7ea31620ea27059f9f334d27f28cc61abd968 diff --git a/sys-apps/dool/dool-1.1.0.ebuild b/sys-apps/dool/dool-1.1.0.ebuild new file mode 100644 index 0000000000..67fc995a6f --- /dev/null +++ b/sys-apps/dool/dool-1.1.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) + +inherit python-r1 + +DESCRIPTION="Versatile replacement for vmstat, iostat and ifstat (clone of dstat)" +HOMEPAGE="https://github.com/scottchiefbaker/dool" + +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://github.com/scottchiefbaker/dool.git" + inherit git-r3 +else + DOOL_COMMIT_ID="6b89f2d0b6e38e1c8d706e88a12e020367f5100d" + SRC_URI=" + https://github.com/scottchiefbaker/dool/archive/${DOOL_COMMIT_ID}.tar.gz -> ${P}.tar.gz + https://github.com/stanford-rc/dool/commit/fa079a43c97f772a4809304386dbed5f4afa9a54.patch + -> ${PN}-1.0.0-fix-proc-diskstats-parsing.patch + " + S="${WORKDIR}/${PN}-${DOOL_COMMIT_ID}" +fi + +if [[ "${PV}" != "9999" ]]; then + KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-linux" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="doc examples" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS}" +DEPEND="${RDEPEND}" + +PATCHES=( + "${DISTDIR}"/${PN}-1.0.0-fix-proc-diskstats-parsing.patch +) + +src_compile() { + : +} + +src_install() { + python_foreach_impl python_doscript "${PN}" + + insinto "/usr/share/${PN}" + newins "${PN}" "${PN}.py" + doins plugins/${PN}_*.py + + doman "docs/${PN}.1" + + einstalldocs + + if use examples; then + dodoc examples/{mstat,read}.py + fi + if use doc; then + dodoc docs/*.html + fi +} + +src_test() { + python_foreach_impl emake test +}