aboutsummaryrefslogtreecommitdiff
path: root/devel
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
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')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-Long-Jump/Makefile25
-rw-r--r--devel/p5-Long-Jump/distinfo3
-rw-r--r--devel/p5-Long-Jump/pkg-descr9
-rw-r--r--devel/p5-Long-Jump/pkg-plist2
5 files changed, 40 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index d3cd7261180c..d44bac7488b0 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2658,6 +2658,7 @@
SUBDIR += p5-Log-TraceMessages
SUBDIR += p5-Log-ger
SUBDIR += p5-Logfile-Rotate
+ SUBDIR += p5-Long-Jump
SUBDIR += p5-Luka
SUBDIR += p5-Lvalue
SUBDIR += p5-MCE
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>
diff --git a/devel/p5-Long-Jump/distinfo b/devel/p5-Long-Jump/distinfo
new file mode 100644
index 000000000000..4f539924ff92
--- /dev/null
+++ b/devel/p5-Long-Jump/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1582975657
+SHA256 (Long-Jump-0.000001.tar.gz) = d5d6456d86992b559d8f66fc90960f919292cd3803c13403faac575762c77af4
+SIZE (Long-Jump-0.000001.tar.gz) = 12123
diff --git a/devel/p5-Long-Jump/pkg-descr b/devel/p5-Long-Jump/pkg-descr
new file mode 100644
index 000000000000..1da638abfa9f
--- /dev/null
+++ b/devel/p5-Long-Jump/pkg-descr
@@ -0,0 +1,9 @@
+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
diff --git a/devel/p5-Long-Jump/pkg-plist b/devel/p5-Long-Jump/pkg-plist
new file mode 100644
index 000000000000..d379e11c10b0
--- /dev/null
+++ b/devel/p5-Long-Jump/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/Long/Jump.pm
+%%PERL5_MAN3%%/Long::Jump.3.gz