blob: 2e30b0f6f585cf8bb322e5bd343928504526f5b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 2019-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
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"
}
|