summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-02-27 11:58:15 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2024-02-27 11:58:34 +0100
commit2054e1aeb16fa8dcc71cfe534ca48300537d6ebe (patch)
tree3d0c75dc6e7bfbca83097a8f35f10d7a9d49864e /app-portage
parentnet-analyzer/zabbix: bump to 6.4.12 (diff)
downloadgentoo-2054e1aeb16fa8dcc71cfe534ca48300537d6ebe.tar.gz
gentoo-2054e1aeb16fa8dcc71cfe534ca48300537d6ebe.tar.bz2
gentoo-2054e1aeb16fa8dcc71cfe534ca48300537d6ebe.zip
app-portage/command-not-found: new package, add 0.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/command-not-found/Manifest1
-rw-r--r--app-portage/command-not-found/command-not-found-0.0.2.ebuild40
-rw-r--r--app-portage/command-not-found/metadata.xml12
3 files changed, 53 insertions, 0 deletions
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>andrewammerlaan@gentoo.org</email>
+ <name>Andrew Ammerlaan</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">AndrewAmmerlaan/command-not-found-gentoo</remote-id>
+ </upstream>
+ <stabilize-allarches/>
+</pkgmetadata>