guru/app-shells/zsh-async/zsh-async-1.8.6.ebuild
Ronny (tastytea) Gutbrod 5c308ceaa0
app-shells/zsh-async: add 1.8.6
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
2023-01-11 23:59:10 +01:00

48 lines
955 B
Bash

# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit readme.gentoo-r1
DESCRIPTION="Run multiple asynchronous jobs with callbacks"
HOMEPAGE="https://github.com/mafredri/zsh-async"
SRC_URI="https://github.com/mafredri/zsh-async/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RDEPEND="app-shells/zsh"
BDEPEND="
test? (
app-shells/zsh
dev-vcs/git
)
"
RESTRICT="!test? ( test )"
DISABLE_AUTOFORMATTING="true"
DOC_CONTENTS="In order to use ${CATEGORY}/${PN} add
. /usr/share/zsh/site-functions/async.zsh
at the end of your ~/.zshrc"
src_test() {
git init || die "git repository initialization for testing failed"
./test.zsh -v || die "One or more tests failed"
}
src_install() {
insinto /usr/share/zsh/site-functions
doins async.zsh
readme.gentoo_create_doc
einstalldocs
}
pkg_postinst() {
readme.gentoo_print_elog
}