From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0604215808B for ; Tue, 5 Apr 2022 21:29:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A7F0FE09C8; Tue, 5 Apr 2022 21:29:51 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C533FE09C9 for ; Tue, 5 Apr 2022 21:29:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AF453341230 for ; Tue, 5 Apr 2022 21:29:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0C80C2A7 for ; Tue, 5 Apr 2022 21:29:45 +0000 (UTC) From: "Ronny Gutbrod" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ronny Gutbrod" Message-ID: <1649193986.da649491fd59e87a39e70f4334eb3e3bf4a5eab3.tastytea@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-shells/zsh-async/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-shells/zsh-async/Manifest app-shells/zsh-async/metadata.xml app-shells/zsh-async/zsh-async-1.8.5.ebuild X-VCS-Directories: app-shells/zsh-async/ X-VCS-Committer: tastytea X-VCS-Committer-Name: Ronny Gutbrod X-VCS-Revision: da649491fd59e87a39e70f4334eb3e3bf4a5eab3 X-VCS-Branch: dev Date: Tue, 5 Apr 2022 21:29:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: aeb5b53d-d8e1-4e43-b5dc-72ecb763c877 X-Archives-Hash: ad34e23f50a0e457b1c6cfc07c79bafd Message-ID: <20220405212945.a8UAH9CR1nonn0Ap1nxBePiX3bx3vP8cTVD7Iel0nFA@z> commit: da649491fd59e87a39e70f4334eb3e3bf4a5eab3 Author: Ronny (tastytea) Gutbrod tastytea de> AuthorDate: Tue Apr 5 18:34:49 2022 +0000 Commit: Ronny Gutbrod tastytea 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 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 @@ + + + + + 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 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 +}