commit: 660a92985125f62e0b4afbb9156ca575652a3eac
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 17 08:02:53 2024 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Oct 17 08:02:53 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=660a9298
app-portage/command-not-found: add 0.0.7
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
app-portage/command-not-found/Manifest | 1 +
.../command-not-found-0.0.7.ebuild | 40 ++++++++++++++++++++++
app-portage/command-not-found/metadata.xml | 2 +-
3 files changed, 42 insertions(+), 1 deletion(-)
diff --git a/app-portage/command-not-found/Manifest
b/app-portage/command-not-found/Manifest
index 8a54bd2f432e..03cad8194a3e 100644
--- a/app-portage/command-not-found/Manifest
+++ b/app-portage/command-not-found/Manifest
@@ -1 +1,2 @@
DIST command-not-found-0.0.6.tar.gz 10290 BLAKE2B
352a77790539acca9d54902e8078b580a5f4a789d61c395944363b4a42f8750cd518e3d8a22f69c409c8ab090cf6345677c324f3faa1e67071439cd6f600c7a3
SHA512
9396b7cb1cbcbc53047928ede0f77613e7f5ad3d5855f6476c40642c52a419aa6227e9b329d8d73d267fbd946e36f21740420ea854555025ddd2ea7eb1dbcec2
+DIST command-not-found-0.0.7.tar.gz 10310 BLAKE2B
02ff8cd66f7aa39bc4990eb57cbf84a83fb37af72cf8c231e89e77b9859f1668edb8ac6be2d606643b7b54dda00b2df47de8c64afa933f208cd8bf6cc0245a1c
SHA512
95cc7a2237928fac0015f21529697d6f878c9c756800d30c435b1cd2116cb522020eb63896fcd1f32091944969f07c4811d8a2d7fa1f1c36d54728bd582c44a1
diff --git a/app-portage/command-not-found/command-not-found-0.0.7.ebuild
b/app-portage/command-not-found/command-not-found-0.0.7.ebuild
new file mode 100644
index 000000000000..acc0acee7cde
--- /dev/null
+++ b/app-portage/command-not-found/command-not-found-0.0.7.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/Nowa-Ammerlaan/command-not-found-gentoo"
+SRC_URI="https://github.com/Nowa-Ammerlaan/command-not-found-gentoo/archive/${PV}.tar.gz
+ -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-gentoo-${PV}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc
~x86"
+
+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 "${PN} is automatically setup for app-shells/bash, see"
+ elog " /usr/share/doc/${PF}/README.md"
+ elog "for instructions on how to set it up for various other shells."
+ 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
index 87d84e421471..16d7d6dca53f 100644
--- a/app-portage/command-not-found/metadata.xml
+++ b/app-portage/command-not-found/metadata.xml
@@ -6,7 +6,7 @@
<name>Andrew Ammerlaan</name>
</maintainer>
<upstream>
- <remote-id
type="github">AndrewAmmerlaan/command-not-found-gentoo</remote-id>
+ <remote-id
type="github">Nowa-Ammerlaan/command-not-found-gentoo</remote-id>
</upstream>
<stabilize-allarches/>
</pkgmetadata>