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 F0413158004 for ; Tue, 27 Feb 2024 10:59:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4410FE2AE4; Tue, 27 Feb 2024 10:59:20 +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 295F0E2AE4 for ; Tue, 27 Feb 2024 10:59:20 +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 65BDF335D72 for ; Tue, 27 Feb 2024 10:59:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D47C7E95 for ; Tue, 27 Feb 2024 10:59:17 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1709031514.2054e1aeb16fa8dcc71cfe534ca48300537d6ebe.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-portage/command-not-found/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-portage/command-not-found/Manifest app-portage/command-not-found/command-not-found-0.0.2.ebuild app-portage/command-not-found/metadata.xml X-VCS-Directories: app-portage/command-not-found/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 2054e1aeb16fa8dcc71cfe534ca48300537d6ebe X-VCS-Branch: master Date: Tue, 27 Feb 2024 10:59:17 +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: 77ca9a2e-2602-4966-b4db-ee24480ad518 X-Archives-Hash: 5c7f2f65d30114b18a77baf570a65562 commit: 2054e1aeb16fa8dcc71cfe534ca48300537d6ebe Author: Andrew Ammerlaan gentoo org> AuthorDate: Tue Feb 27 10:58:15 2024 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Tue Feb 27 10:58:34 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2054e1ae app-portage/command-not-found: new package, add 0.0.2 Signed-off-by: Andrew Ammerlaan gentoo.org> app-portage/command-not-found/Manifest | 1 + .../command-not-found-0.0.2.ebuild | 40 ++++++++++++++++++++++ app-portage/command-not-found/metadata.xml | 12 +++++++ 3 files changed, 53 insertions(+) diff --git a/app-portage/command-not-found/Manifest b/app-portage/command-not-found/Manifest new file mode 100644 index 000000000000..38833a3443ee --- /dev/null +++ b/app-portage/command-not-found/Manifest @@ -0,0 +1 @@ +DIST command-not-found-0.0.2.tar.gz 9039 BLAKE2B 9781ce588e3e90868dc35745d5f4b24586dd365a0bd2a37a15d973e942ebbd0710675268fe3875be621be51ee7e4b9800865de3d99d58927588d2f05cfe6b789 SHA512 b2b81b754d96364e58d8f71d7024c2c4bc635aff7bd17df4bbc14791f9d7cbd266b2d4ab369ccaaed7b4aca5bb41622c3ce5d7a81795221c5dae3bed001447e4 diff --git a/app-portage/command-not-found/command-not-found-0.0.2.ebuild b/app-portage/command-not-found/command-not-found-0.0.2.ebuild new file mode 100644 index 000000000000..b0007e526a58 --- /dev/null +++ b/app-portage/command-not-found/command-not-found-0.0.2.ebuild @@ -0,0 +1,40 @@ +# Copyright 2019-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) + +inherit optfeature python-r1 + +DESCRIPTION="Command-not-found handler for Gentoo" +HOMEPAGE="https://github.com/AndrewAmmerlaan/command-not-found-gentoo" +SRC_URI="https://github.com/AndrewAmmerlaan/command-not-found-gentoo/archive/${PV}.tar.gz + -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-gentoo-${PV}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS}" + +src_install() { + python_foreach_impl python_doscript command-not-found + + insinto /etc/bash/bashrc.d + doins command-not-found.sh + + einstalldocs +} + +pkg_postinst() { + elog "command-not-found is automatically setup with bash, to use it with zsh add" + elog " \"source /etc/bash/bashrc.d/command-not-found.sh\"" + elog "anywhere in your /etc/zsh/zshrc or ~/.zshrc" + elog + optfeature "suggesting snaps providing the missing command" "app-containers/snapd" + optfeature "suggesting ebuilds providing the missing command" "app-portage/pfl" +} diff --git a/app-portage/command-not-found/metadata.xml b/app-portage/command-not-found/metadata.xml new file mode 100644 index 000000000000..87d84e421471 --- /dev/null +++ b/app-portage/command-not-found/metadata.xml @@ -0,0 +1,12 @@ + + + + + andrewammerlaan@gentoo.org + Andrew Ammerlaan + + + AndrewAmmerlaan/command-not-found-gentoo + + +