commit:     f95334beb5ec91c6f1356161415ce5691f76b6b3
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Fri Jun  3 10:49:33 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Jun  3 10:51:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f95334be

sys-process/btop: new package, add 1.2.7, migrate from ::guru

Closes: https://bugs.gentoo.org/849050
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 sys-process/btop/Manifest          |  1 +
 sys-process/btop/btop-1.2.7.ebuild | 32 ++++++++++++++++++++++++++++++++
 sys-process/btop/metadata.xml      | 16 ++++++++++++++++
 3 files changed, 49 insertions(+)

diff --git a/sys-process/btop/Manifest b/sys-process/btop/Manifest
new file mode 100644
index 000000000000..7ac2b8e4e579
--- /dev/null
+++ b/sys-process/btop/Manifest
@@ -0,0 +1 @@
+DIST btop-1.2.7.tar.gz 974883 BLAKE2B 
c23c0b13ee6749e30ca8a7624f27bac8dc81466ff957a042c9c5e4f7c31b81fc6c15d6b214186e4baed474263ea96a3ffc584783cd098f3ebcae9e34bd75a955
 SHA512 
c29e1e3d098ef29c710bf76c1ef20e54feceb490aa59d20475a7083a276d422a32f4b4ff423a121aa4aa7f83389980e553e1f78c165f111fe00ccac693d96447

diff --git a/sys-process/btop/btop-1.2.7.ebuild 
b/sys-process/btop/btop-1.2.7.ebuild
new file mode 100644
index 000000000000..44d1c8204f7d
--- /dev/null
+++ b/sys-process/btop/btop-1.2.7.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2021-2022 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"
+
+src_prepare() {
+       default
+       # btop installs README.md to /usr/share/btop by default
+       sed -i '/^.*cp -p README.md.*$/d' Makefile || die
+}
+
+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 000000000000..39c49a66a7e1
--- /dev/null
+++ b/sys-process/btop/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person" proxied="yes">
+               <email>[email protected]</email>
+               <name>Adrian Schollmeyer</name>
+       </maintainer>
+       <maintainer type="project" proxied="proxy">
+               <email>[email protected]</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">aristocratos/btop</remote-id>
+               <bugs-to>https://github.com/aristocratos/btop/issues</bugs-to>
+       </upstream>
+</pkgmetadata>

Reply via email to