aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Schollmeyer <nex+b-g-o@nexadn.de>2021-09-18 21:48:31 +0200
committerAdrian Schollmeyer <nex+b-g-o@nexadn.de>2021-09-18 21:48:31 +0200
commit349d01e087504cd5d10f95731e7375fa8fc2b861 (patch)
treea1ea6fe6e95b001cba397d3375f4938a73677604 /sys-process
parentapp-shells/zsh-silver: add package (diff)
downloadguru-349d01e087504cd5d10f95731e7375fa8fc2b861.tar.gz
guru-349d01e087504cd5d10f95731e7375fa8fc2b861.tar.bz2
guru-349d01e087504cd5d10f95731e7375fa8fc2b861.zip
sys-process/btop: Add new package
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Adrian Schollmeyer <nex+b-g-o@nexadn.de>
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/btop/Manifest1
-rw-r--r--sys-process/btop/btop-1.0.1.ebuild39
-rw-r--r--sys-process/btop/metadata.xml8
3 files changed, 48 insertions, 0 deletions
diff --git a/sys-process/btop/Manifest b/sys-process/btop/Manifest
new file mode 100644
index 000000000..f66957449
--- /dev/null
+++ b/sys-process/btop/Manifest
@@ -0,0 +1 @@
+DIST btop-1.0.1.tar.gz 921264 BLAKE2B a272e9479dbffe18e0000632f9697c5ed59707503c836eafd36f62db55787e56ad4d79a81e699a1821d3630052373daf4568a7096e31385075b1f0db00ed40b4 SHA512 dcbd2daeebf7238e3724f75d1be5a5bc1abf554a938b3a35179d65523098cd74df38cf5d26eea58532ad412805302c6681045ec92df4a860a12c91d7280202ce
diff --git a/sys-process/btop/btop-1.0.1.ebuild b/sys-process/btop/btop-1.0.1.ebuild
new file mode 100644
index 000000000..d3a559b42
--- /dev/null
+++ b/sys-process/btop/btop-1.0.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A monitor of resources"
+HOMEPAGE="https://github.com/aristocratos/btop"
+SRC_URI="https://github.com/aristocratos/btop/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+BDEPEND="
+ >=sys-devel/gcc-10
+"
+
+src_prepare() {
+ default
+ # btop installs README.md to /usr/share/btop by default
+ sed -i 's/^.*cp -p README.md.*$//' Makefile
+}
+
+src_compile() {
+ # Disable btop optimization flags, since we have our flags in CXXFLAGS
+ emake \
+ OPTFLAGS=""
+}
+
+src_install() {
+ emake \
+ PREFIX="${EPREFIX}/usr" \
+ DESTDIR="${D}" \
+ install
+
+ dodoc README.md CHANGELOG.md
+}
diff --git a/sys-process/btop/metadata.xml b/sys-process/btop/metadata.xml
new file mode 100644
index 000000000..9997c2e86
--- /dev/null
+++ b/sys-process/btop/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>nex+b-g-o@nexadn.de</email>
+ <name>Adrian Schollmeyer</name>
+ </maintainer>
+</pkgmetadata>