From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8C0E6158020 for ; Mon, 7 Nov 2022 11:33:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C77E1E07F9; Mon, 7 Nov 2022 11:33:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B34C8E07F9 for ; Mon, 7 Nov 2022 11:33:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 02E71340DBC for ; Mon, 7 Nov 2022 11:33:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6C2626EA for ; Mon, 7 Nov 2022 11:33:47 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1667820823.7acb1f9f858574a994c30c73f0c3edfbbd3f0700.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/btop/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/btop/Manifest sys-process/btop/btop-1.2.13.ebuild X-VCS-Directories: sys-process/btop/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 7acb1f9f858574a994c30c73f0c3edfbbd3f0700 X-VCS-Branch: master Date: Mon, 7 Nov 2022 11:33:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cdfdd53e-2b12-45b8-bfeb-425f8ce28f86 X-Archives-Hash: c8eb8653242eb31ee63e626f3ed40cd5 commit: 7acb1f9f858574a994c30c73f0c3edfbbd3f0700 Author: Adrian Schollmeyer nexadn de> AuthorDate: Sun Nov 6 21:58:59 2022 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Mon Nov 7 11:33:43 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7acb1f9f sys-process/btop: add 1.2.13 Signed-off-by: Adrian Schollmeyer nexadn.de> Closes: https://github.com/gentoo/gentoo/pull/28161 Signed-off-by: Florian Schmaus gentoo.org> sys-process/btop/Manifest | 1 + sys-process/btop/btop-1.2.13.ebuild | 57 +++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/sys-process/btop/Manifest b/sys-process/btop/Manifest index c01df74cd1ce..b772e97b9196 100644 --- a/sys-process/btop/Manifest +++ b/sys-process/btop/Manifest @@ -1,2 +1,3 @@ DIST btop-1.2.12.tar.gz 980406 BLAKE2B ddaa023b85a00edfb27b55e574950934cce578ad7bbf0ea03b2780a511078638c14cd2316ebce8701be76c13ed3af8f0ded703071b363fddc14bcbea040279dd SHA512 36bf329a7b9922ff5cae990f5528625280b6b3fcb83d0af2e502876a2a8f4864c3a6ecbc6cb5aaa885f637859eef66470ff0cc86036f76b499b23a7c4086ea60 +DIST btop-1.2.13.tar.gz 982660 BLAKE2B 053c1ef87203b894c2cbe6007c3b5962dca232733d28f97d82a2f70e771d4cc92fe4c49d3582c80cb79974d65329d3e95e758b9e8a7fa51a2ff0cdbf6cbd9a75 SHA512 324e572d43e57e5e65e646aa743f7730e6d535fdc52e848aeb55d60c8d73945850c5b89fe0b541e98495ddf2bae71427a6ec8fe8a495b41cef885c535d01019b DIST btop-1.2.9.tar.gz 978265 BLAKE2B ff80079a393342a2cf3aefad6ead8be8b786fbc2b9445e8e2a8b37386f65f4060c801a6f59d216cd611783f4135a60d64b95ff2b5e1a3d62bb2d40030bde8974 SHA512 424573c8f82d0daf748cba7c82e72232773f145af9792ac78a5f5f18d98a8695f11452de106c72cf685ecb8cc89729471a494f9ea6b4300bdb2fa6acdbf4ac60 diff --git a/sys-process/btop/btop-1.2.13.ebuild b/sys-process/btop/btop-1.2.13.ebuild new file mode 100644 index 000000000000..77749296de4f --- /dev/null +++ b/sys-process/btop/btop-1.2.13.ebuild @@ -0,0 +1,57 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs xdg-utils + +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 ~arm64 ~ppc64 ~riscv ~x86" + +BDEPEND=" + >=sys-devel/gcc-8 +" + +pkg_setup() { + if [[ "${MERGE_TYPE}" != "binary" ]]; then + if ! tc-is-gcc ; then + # https://bugs.gentoo.org/839318 + die "$(tc-getCXX) is not a supported compiler. Please use sys-devel/gcc instead." + fi + fi +} + +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 VERBOSE=true OPTFLAGS="" CXX="$(tc-getCXX)" +} + +src_install() { + emake \ + PREFIX="${EPREFIX}/usr" \ + DESTDIR="${D}" \ + install + + dodoc README.md CHANGELOG.md +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +}