app-shells/spark-fish: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-02-08 21:04:08 +01:00
parent 2492d2b670
commit f7ab642834
3 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST spark-fish-1.2.0.tar.gz 3478 BLAKE2B 21823da494e13f92d8cfe8db802aa0734ddce8c5db47dbfc634aaab4425ae49b22ef000882454a880da502d14d4bdb0ed91ab941d21d7550ae686e2af056b7b6 SHA512 24e80faae6595de4a114d15823064de428d68c3d7ef778db49ed3bac88716a44f8eeaff86558f37570f4932f6755dedeee968177ab3dafc8c25c8bfc3469d291

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<upstream>
<remote-id type="github">jorgebucaran/spark.fish</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,39 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MYPN="${PN/-/.}"
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"
S="${WORKDIR}/${MYPN}-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RDEPEND="app-shells/fish"
DEPEND="
test? (
${RDEPEND}
app-shells/fishtape
app-shells/spark-fish
)
"
DOCS=( README.md )
RESTRICT="!test? ( test )"
src_install() {
insinto "/usr/share/fish/vendor_completions.d"
doins completions/*
insinto "/usr/share/fish/vendor_functions.d"
doins functions/*
einstalldocs
}
src_test() {
fish -c 'fishtape ./test/spark.fish' || die
}