freebsd-ports/devel/p5-Future-AsyncAwait/Makefile
Po-Chuan Hsieh 7203a0163a
devel/p5-Future-AsyncAwait: Add p5-Future-AsyncAwait 0.62
Future::AsyncAwait provides syntax for deferring and resuming subroutines while
waiting for Futures to complete. This syntax aims to make code that performs
asynchronous operations using futures look neater and more expressive than
simply using then chaining and other techniques on the futures themselves. It is
also a similar syntax used by a number of other languages; notably C# 5,
EcmaScript 6, Python 3, Dart, Rust, C++20.

This module is still under active development. While it now seems relatively
stable enough for most use-cases and has received a lot of "battle-testing" in a
wide variety of scenarios, there may still be the occasional case of memory leak
left in it, especially if still-pending futures are abandoned.

The new syntax takes the form of two new keywords, async and await.
2023-01-30 20:58:44 +08:00

29 lines
796 B
Makefile

PORTNAME= Future-AsyncAwait
PORTVERSION= 0.62
CATEGORIES= devel perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:PEVANS
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Deferred subroutine syntax for futures
WWW= https://metacpan.org/dist/Future-AsyncAwait
LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= p5-Future>=0.48:devel/p5-Future \
p5-XS-Parse-Keyword>=0.13:devel/p5-XS-Parse-Keyword \
p5-XS-Parse-Sublike>=0.14:devel/p5-XS-Parse-Sublike
TEST_DEPENDS= p5-Test-Fatal>=0:devel/p5-Test-Fatal \
p5-Test-Refcount>=0.09:devel/p5-Test-Refcount
USES= perl5
USE_PERL5= modbuild
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Future/AsyncAwait/AsyncAwait.so
.include <bsd.port.mk>