app-shells/spark-fish: Make use of 'shell-completion' eclass

Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
Jonas Frei
2023-04-13 07:36:21 +02:00
parent d7e5f9e79d
commit 9c74fca64e

View File

@@ -1,10 +1,12 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MYPN="${PN/-/.}"
inherit shell-completion
DESCRIPTION="Sparklines for Fish"
HOMEPAGE="https://github.com/jorgebucaran/spark.fish"
SRC_URI="https://github.com/jorgebucaran/spark.fish/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
@@ -27,8 +29,7 @@ DOCS=( README.md )
RESTRICT="!test? ( test )"
src_install() {
insinto "/usr/share/fish/vendor_completions.d"
doins completions/*
dofishcomp completions/*
insinto "/usr/share/fish/vendor_functions.d"
doins functions/*
einstalldocs