aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Long-Jump/Makefile
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-03-01 06:27:37 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-03-01 06:27:37 +0000
commitcdc9c8711c948e32ac51e6d9e819d0f749e2b11d (patch)
tree3ce17125557144a2fa2ced839ad30e906984be4d /devel/p5-Long-Jump/Makefile
parent01724a46806a0382ace2e91eb94eea8d4f4dd70b (diff)
downloadports-cdc9c8711c948e32ac51e6d9e819d0f749e2b11d.tar.gz
ports-cdc9c8711c948e32ac51e6d9e819d0f749e2b11d.zip
Add p5-Long-Jump 0.000001
Long::Jump essentially provides a multi-level return. You can mark a spot with setjump() and then unwind the stack back to that point from any nested stack frame by name using longjump(). You can also provide a list of return values. This is not quite a match for C's long jump, but it is "close enough". It is safer than C's jump in that it only lets you escape frames by going up the stack, you cannot jump in other ways. WWW: https://metacpan.org/release/Long-Jump
Notes
Notes: svn path=/head/; revision=527492
Diffstat (limited to 'devel/p5-Long-Jump/Makefile')
-rw-r--r--devel/p5-Long-Jump/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/devel/p5-Long-Jump/Makefile b/devel/p5-Long-Jump/Makefile
new file mode 100644
index 000000000000..37c6e61610d6
--- /dev/null
+++ b/devel/p5-Long-Jump/Makefile
@@ -0,0 +1,25 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= Long-Jump
+PORTVERSION= 0.000001
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= CPAN:EXODIST
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Mechanism for returning to a specific point from a deeply nested stack
+
+LICENSE= ART10 GPLv1+
+LICENSE_COMB= dual
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+TEST_DEPENDS= p5-Test2-Suite>=0.000126:devel/p5-Test2-Suite
+
+USES= perl5
+USE_PERL5= configure
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>