app-shells/zsh-async: initial import

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
Ronny (tastytea) Gutbrod
2022-04-05 20:34:49 +02:00
parent e3a6c0fe82
commit da649491fd
3 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST zsh-async-1.8.5.tar.gz 18346 BLAKE2B 9ac98ca71caa569ca5ede093f9a4c690ac2aa4266b8a0b4ded9304ee241269ca7d3a3c6eb7e0aaa55a0da372725f65d66eb627fe7cae0c9c59f09c867d498038 SHA512 ad9139330c57cbfb115c0ee58763db19578279e9834593f06ab97857fd416bd40a0be3215e35b5d58e212f58f46359fe3b6c2caf9820cf946efeb541cccb7d0c

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gentoo@tastytea.de</email>
<name>Ronny (tastytea) Gutbrod</name>
</maintainer>
<upstream>
<remote-id type="github">mafredri/zsh-async</remote-id>
</upstream>
<longdescription lang="en">
With zsh-async you can run multiple asynchronous jobs, enforce
unique jobs (multiple instances of the same job will not run),
flush all currently running jobs and create multiple workers (each
with their own jobs). For each worker you can register a
callback-function through which you will be notified about the job
results (job name, return code, output and execution time).
</longdescription>
</pkgmetadata>

View File

@@ -0,0 +1,46 @@
# Copyright 2022 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
}