From da649491fd59e87a39e70f4334eb3e3bf4a5eab3 Mon Sep 17 00:00:00 2001 From: "Ronny (tastytea) Gutbrod" Date: Tue, 5 Apr 2022 20:34:49 +0200 Subject: [PATCH] app-shells/zsh-async: initial import Signed-off-by: Ronny (tastytea) Gutbrod --- app-shells/zsh-async/Manifest | 1 + app-shells/zsh-async/metadata.xml | 19 +++++++++ app-shells/zsh-async/zsh-async-1.8.5.ebuild | 46 +++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 app-shells/zsh-async/Manifest create mode 100644 app-shells/zsh-async/metadata.xml create mode 100644 app-shells/zsh-async/zsh-async-1.8.5.ebuild diff --git a/app-shells/zsh-async/Manifest b/app-shells/zsh-async/Manifest new file mode 100644 index 0000000000..738f00fdb5 --- /dev/null +++ b/app-shells/zsh-async/Manifest @@ -0,0 +1 @@ +DIST zsh-async-1.8.5.tar.gz 18346 BLAKE2B 9ac98ca71caa569ca5ede093f9a4c690ac2aa4266b8a0b4ded9304ee241269ca7d3a3c6eb7e0aaa55a0da372725f65d66eb627fe7cae0c9c59f09c867d498038 SHA512 ad9139330c57cbfb115c0ee58763db19578279e9834593f06ab97857fd416bd40a0be3215e35b5d58e212f58f46359fe3b6c2caf9820cf946efeb541cccb7d0c diff --git a/app-shells/zsh-async/metadata.xml b/app-shells/zsh-async/metadata.xml new file mode 100644 index 0000000000..068749f866 --- /dev/null +++ b/app-shells/zsh-async/metadata.xml @@ -0,0 +1,19 @@ + + + + + gentoo@tastytea.de + Ronny (tastytea) Gutbrod + + + mafredri/zsh-async + + + 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). + + diff --git a/app-shells/zsh-async/zsh-async-1.8.5.ebuild b/app-shells/zsh-async/zsh-async-1.8.5.ebuild new file mode 100644 index 0000000000..55f33fd697 --- /dev/null +++ b/app-shells/zsh-async/zsh-async-1.8.5.ebuild @@ -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 +}