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 5DEC5158020 for ; Fri, 14 Oct 2022 00:26:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 97A3CE08EC; Fri, 14 Oct 2022 00:26:13 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7B7D1E08EC for ; Fri, 14 Oct 2022 00:26:13 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9B2CE340AA7 for ; Fri, 14 Oct 2022 00:26:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 11B535F7 for ; Fri, 14 Oct 2022 00:26:11 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1665707169.e970b4d41822b023a7bb13ee12f130166d0e3e2e.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/emacs-aio/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emacs/emacs-aio/Manifest app-emacs/emacs-aio/emacs-aio-1.0_p20200610.ebuild app-emacs/emacs-aio/metadata.xml X-VCS-Directories: app-emacs/emacs-aio/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: e970b4d41822b023a7bb13ee12f130166d0e3e2e X-VCS-Branch: master Date: Fri, 14 Oct 2022 00:26:11 +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: f4aa2c0a-8ea6-43c5-bdca-487fb3a7b2aa X-Archives-Hash: 47612e08387fb332d5c7bf086fa98531 commit: e970b4d41822b023a7bb13ee12f130166d0e3e2e Author: Maciej Barć gentoo org> AuthorDate: Fri Oct 14 00:18:48 2022 +0000 Commit: Maciej Barć gentoo org> CommitDate: Fri Oct 14 00:26:09 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e970b4d4 app-emacs/emacs-aio: new package; add version 1.0_p20200610 2020.06.10 snapshot Signed-off-by: Maciej Barć gentoo.org> app-emacs/emacs-aio/Manifest | 1 + app-emacs/emacs-aio/emacs-aio-1.0_p20200610.ebuild | 28 ++++++++++++++++++++++ app-emacs/emacs-aio/metadata.xml | 26 ++++++++++++++++++++ 3 files changed, 55 insertions(+) diff --git a/app-emacs/emacs-aio/Manifest b/app-emacs/emacs-aio/Manifest new file mode 100644 index 000000000000..d14fde226f94 --- /dev/null +++ b/app-emacs/emacs-aio/Manifest @@ -0,0 +1 @@ +DIST emacs-aio-1.0_p20200610.tar.gz 9825 BLAKE2B f7d536b5ab603ec0506cf437e9819c00a84678dd1176ea83ac537c112767768a49bf6c95cc135255b252f83b1ecd47b6f195d5c812535f6c3c9843269e2c8750 SHA512 ac4b956a067d52130e57adb8c92bcd733b9566a1f8bfd03f721d7cb1479236346d8c65cf3c6d8475f9f5bb234f0fc766e2954d24af9feff891e1ece6a833c5d9 diff --git a/app-emacs/emacs-aio/emacs-aio-1.0_p20200610.ebuild b/app-emacs/emacs-aio/emacs-aio-1.0_p20200610.ebuild new file mode 100644 index 000000000000..50a5d7e23baf --- /dev/null +++ b/app-emacs/emacs-aio/emacs-aio-1.0_p20200610.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +H=da93523e235529fa97d6f251319d9e1d6fc24a41 +NEED_EMACS=26.1 + +inherit elisp + +DESCRIPTION="Async and await functions for Emacs Lisp" +HOMEPAGE="https://github.com/skeeto/emacs-aio/" +SRC_URI="https://github.com/skeeto/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-${H} + +LICENSE="Unlicense" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DOCS=( README.md ) + +src_compile() { + emake EMACS=${EMACS} compile +} + +src_test() { + emake EMACS=${EMACS} check +} diff --git a/app-emacs/emacs-aio/metadata.xml b/app-emacs/emacs-aio/metadata.xml new file mode 100644 index 000000000000..07a12f84c7c6 --- /dev/null +++ b/app-emacs/emacs-aio/metadata.xml @@ -0,0 +1,26 @@ + + + + + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + + + aio is to Emacs Lisp as asyncio is to Python. This package builds upon + Emacs 25 generators to provide functions that pause while they wait on + asynchronous events. They do not block any thread while paused. The main + components of this package are aio-defun/aio-lambda to define async + function, and aio-await to pause these functions while they wait on + asynchronous events. When an asynchronous function is paused, the main + thread is not blocked. It is no more or less powerful than callbacks, but + is nicer to use. This is implementation is based on Emacs 25 generators, + and asynchronous functions are actually iterators in disguise, operated as + stackless, asymmetric coroutines. + + + + https://github.com/skeeto/emacs-aio/issues/ + skeeto/emacs-aio + +