mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
app-shells/zsh-async: initial import
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
1
app-shells/zsh-async/Manifest
Normal file
1
app-shells/zsh-async/Manifest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
DIST zsh-async-1.8.5.tar.gz 18346 BLAKE2B 9ac98ca71caa569ca5ede093f9a4c690ac2aa4266b8a0b4ded9304ee241269ca7d3a3c6eb7e0aaa55a0da372725f65d66eb627fe7cae0c9c59f09c867d498038 SHA512 ad9139330c57cbfb115c0ee58763db19578279e9834593f06ab97857fd416bd40a0be3215e35b5d58e212f58f46359fe3b6c2caf9820cf946efeb541cccb7d0c
|
||||||
19
app-shells/zsh-async/metadata.xml
Normal file
19
app-shells/zsh-async/metadata.xml
Normal 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>
|
||||||
46
app-shells/zsh-async/zsh-async-1.8.5.ebuild
Normal file
46
app-shells/zsh-async/zsh-async-1.8.5.ebuild
Normal 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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user