commit:     349d01e087504cd5d10f95731e7375fa8fc2b861
Author:     Adrian Schollmeyer <nex+b-g-o <AT> nexadn <DOT> de>
AuthorDate: Sat Sep 18 19:48:31 2021 +0000
Commit:     Adrian Schollmeyer <nex+b-g-o <AT> nexadn <DOT> de>
CommitDate: Sat Sep 18 19:48:31 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=349d01e0

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 <AT> nexadn.de>

 sys-process/btop/Manifest          |  1 +
 sys-process/btop/btop-1.0.1.ebuild | 39 ++++++++++++++++++++++++++++++++++++++
 sys-process/btop/metadata.xml      |  8 ++++++++
 3 files changed, 48 insertions(+)

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>[email protected]</email>
+               <name>Adrian Schollmeyer</name>
+       </maintainer>
+</pkgmetadata>

Reply via email to