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 1D0CE158020 for ; Tue, 22 Nov 2022 06:20:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82993E0CBF; Tue, 22 Nov 2022 06:20:14 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 68055E0CBF for ; Tue, 22 Nov 2022 06:20:14 +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 9660B341284 for ; Tue, 22 Nov 2022 06:20:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6540F77D for ; Tue, 22 Nov 2022 06:20:10 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1669097972.ef84e0919788ca69ea7cfc8cc769c89ce46d030d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/wgetpaste/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/wgetpaste/wgetpaste-2.33-r1.ebuild app-text/wgetpaste/wgetpaste-2.33.ebuild X-VCS-Directories: app-text/wgetpaste/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ef84e0919788ca69ea7cfc8cc769c89ce46d030d X-VCS-Branch: master Date: Tue, 22 Nov 2022 06:20:10 +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: 487a1542-f41b-4ef0-b88c-7d165c05491b X-Archives-Hash: 317cd3b2fdabb441f368396f36d11b2c commit: ef84e0919788ca69ea7cfc8cc769c89ce46d030d Author: Oskari Pirhonen gmail com> AuthorDate: Tue Nov 22 05:47:33 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Nov 22 06:19:32 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef84e091 app-text/wgetpaste: use optfeature.eclass Use optfeature.eclass to notify users about support for stripping ANSI codes and xclip integration if app-text/ansifilter and/or x11-misc/xclip are not installed, respectively. Signed-off-by: Oskari Pirhonen gmail.com> Closes: https://github.com/gentoo/gentoo/pull/28379 Signed-off-by: Sam James gentoo.org> .../wgetpaste/{wgetpaste-2.33.ebuild => wgetpaste-2.33-r1.ebuild} | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app-text/wgetpaste/wgetpaste-2.33.ebuild b/app-text/wgetpaste/wgetpaste-2.33-r1.ebuild similarity index 83% rename from app-text/wgetpaste/wgetpaste-2.33.ebuild rename to app-text/wgetpaste/wgetpaste-2.33-r1.ebuild index f6662506f9ae..c8592f26415d 100644 --- a/app-text/wgetpaste/wgetpaste-2.33.ebuild +++ b/app-text/wgetpaste/wgetpaste-2.33-r1.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit optfeature + DESCRIPTION="Command-line interface to various pastebins" HOMEPAGE="https://wgetpaste.zlin.dk/" SRC_URI="https://github.com/zlin/wgetpaste/releases/download/${PV}/${P}.tar.xz" @@ -36,3 +38,8 @@ src_install() { insinto /usr/share/zsh/site-functions doins _wgetpaste } + +pkg_postinst() { + optfeature "ANSI (color code) stripping support" app-text/ansifilter + optfeature "xclip support" x11-misc/xclip +}