commit:     da649491fd59e87a39e70f4334eb3e3bf4a5eab3
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Tue Apr  5 18:34:49 2022 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Tue Apr  5 21:26:26 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=da649491

app-shells/zsh-async: initial import

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>

 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(+)

diff --git a/app-shells/zsh-async/Manifest b/app-shells/zsh-async/Manifest
new file mode 100644
index 000000000..738f00fdb
--- /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 000000000..068749f86
--- /dev/null
+++ b/app-shells/zsh-async/metadata.xml
@@ -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>[email protected]</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>

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 000000000..55f33fd69
--- /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
+}

Reply via email to