diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-04 20:14:38 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-04 20:14:38 +0100 |
commit | 34f71cb8541190212fa250ceb3dafb53f383beea (patch) | |
tree | 75894a0bd212c9a6464b37d48f418fcb5cc3ff82 /app-portage/command-not-found/command-not-found-0.0.5.ebuild | |
parent | 18bf6672cbde96e8498ce4bfc974af9bb4f95613 (diff) |
gentoo auto-resync : 04:04:2024 - 20:14:38
Diffstat (limited to 'app-portage/command-not-found/command-not-found-0.0.5.ebuild')
-rw-r--r-- | app-portage/command-not-found/command-not-found-0.0.5.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/app-portage/command-not-found/command-not-found-0.0.5.ebuild b/app-portage/command-not-found/command-not-found-0.0.5.ebuild new file mode 100644 index 000000000000..1859d6690bfe --- /dev/null +++ b/app-portage/command-not-found/command-not-found-0.0.5.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 "${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" +} |