aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Frei <freijon@pm.me>2023-04-12 06:01:01 +0200
committerJonas Frei <freijon@pm.me>2023-04-12 06:01:19 +0200
commitfd0073e7dc032159387d2e7c64e99c99904b9914 (patch)
tree57e8364e495a97e820f11a08d8fa086c613874a9 /sys-power
parentsys-devel/just: Make use of 'shell-completion' eclass (diff)
downloadguru-fd0073e7dc032159387d2e7c64e99c99904b9914.tar.gz
guru-fd0073e7dc032159387d2e7c64e99c99904b9914.tar.bz2
guru-fd0073e7dc032159387d2e7c64e99c99904b9914.zip
sys-power/fan2go: Make use of 'shell-completion' eclass
Signed-off-by: Jonas Frei <freijon@pm.me>
Diffstat (limited to 'sys-power')
-rw-r--r--sys-power/fan2go/fan2go-0.6.2-r1.ebuild10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys-power/fan2go/fan2go-0.6.2-r1.ebuild b/sys-power/fan2go/fan2go-0.6.2-r1.ebuild
index e871b8947..f61009955 100644
--- a/sys-power/fan2go/fan2go-0.6.2-r1.ebuild
+++ b/sys-power/fan2go/fan2go-0.6.2-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit bash-completion-r1 go-module systemd
+inherit go-module shell-completion systemd
EGO_SUM=(
"cloud.google.com/go v0.26.0/go.mod"
@@ -629,11 +629,9 @@ src_install() {
systemd_dounit fan2go.service
insinto /etc/fan2go
doins fan2go.yaml
- newbashcomp fan2go.bash fan2go
- insinto "/usr/share/fish/vendor_completions.d"
- doins fan2go.fish
- insinto "/usr/share/zsh/site-functions"
- newins fan2go.zsh _fan2go
+ newbashcomp "${PN}.bash" "${PN}"
+ dofishcomp "${PN}.fish"
+ newzshcomp "${PN}.zsh" "_${PN}"
}
src_test() {