app-shells/zsh-async: add 1.8.5_p20211005

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
Ronny (tastytea) Gutbrod
2022-04-08 00:25:24 +02:00
parent a86f1050ea
commit 9b63bb1d8c
2 changed files with 50 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST zsh-async-1.8.5.tar.gz 18346 BLAKE2B 9ac98ca71caa569ca5ede093f9a4c690ac2aa4266b8a0b4ded9304ee241269ca7d3a3c6eb7e0aaa55a0da372725f65d66eb627fe7cae0c9c59f09c867d498038 SHA512 ad9139330c57cbfb115c0ee58763db19578279e9834593f06ab97857fd416bd40a0be3215e35b5d58e212f58f46359fe3b6c2caf9820cf946efeb541cccb7d0c
DIST zsh-async-1.8.5_p20211005.tar.gz 18508 BLAKE2B 25fe3dc647679571e7baeef4f92138062b9d658bc45aec8110736a1b186a7fe07d54660159bd85cb6c89ec793457ea453a833b656fb406d768c7f25329d085c7 SHA512 8a65a150772aa3e0b6ba1308affc2e008705430d46825803d029c8f4bee6eda7ee657239b3cfe7b87ba829aba929e8921912aa405f9707a9ae623e7b1e17fbff

View File

@@ -0,0 +1,49 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit readme.gentoo-r1
MY_COMMIT="3ba6e2d1ea874bfb6badb8522ab86c1ae272923d"
DESCRIPTION="Run multiple asynchronous jobs with callbacks"
HOMEPAGE="https://github.com/mafredri/zsh-async"
SRC_URI="https://github.com/mafredri/zsh-async/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_COMMIT}"
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
}