commit:     2054e1aeb16fa8dcc71cfe534ca48300537d6ebe
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 27 10:58:15 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> 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 <andrewammerlaan <AT> 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Andrew Ammerlaan</name>
+       </maintainer>
+       <upstream>
+               <remote-id 
type="github">AndrewAmmerlaan/command-not-found-gentoo</remote-id>
+       </upstream>
+       <stabilize-allarches/>
+</pkgmetadata>

Reply via email to