svn commit: r460083 - in head/devel: . p5-goto-file
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sat Jan 27 10:22:59 UTC 2018
Author: sunpoet
Date: Sat Jan 27 10:22:57 2018
New Revision: 460083
URL: https://svnweb.freebsd.org/changeset/ports/460083
Log:
Add p5-goto-file 0.005
It is rare, but there are times where you want to swap out the currently
compiling file for a different one. This module does that. From the point you
use the module perl will be parsing the new file instead of the original.
This was created specifically for Test2::Harness which can preload modules and
fork to run each test. The problem was that using do to execute the test files
post-fork was resuling in extra frames in the stack trace... in other words
there are a lot of tests that assume the test file is the bottom of the stack.
This happens all the time, specially if stack traces need to be verified.
This module allows Test2::Harness to swap out the main script for the new file
without adding a stack frame.
WWW: http://search.cpan.org/dist/goto-file/
Added:
head/devel/p5-goto-file/
head/devel/p5-goto-file/Makefile (contents, props changed)
head/devel/p5-goto-file/distinfo (contents, props changed)
head/devel/p5-goto-file/pkg-descr (contents, props changed)
head/devel/p5-goto-file/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Sat Jan 27 10:08:40 2018 (r460082)
+++ head/devel/Makefile Sat Jan 27 10:22:57 2018 (r460083)
@@ -3728,6 +3728,7 @@
SUBDIR += p5-experimental
SUBDIR += p5-forks
SUBDIR += p5-github_creator
+ SUBDIR += p5-goto-file
SUBDIR += p5-iCal-Parser
SUBDIR += p5-indirect
SUBDIR += p5-interface
Added: head/devel/p5-goto-file/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-goto-file/Makefile Sat Jan 27 10:22:57 2018 (r460083)
@@ -0,0 +1,30 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= goto-file
+PORTVERSION= 0.005
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= CPAN:EXODIST
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Stop parsing the current file and move on to a different one
+
+LICENSE= ART10 GPLv1+
+LICENSE_COMB= dual
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+TEST_DEPENDS= p5-Test2-Suite>=0.000074:devel/p5-Test2-Suite
+
+NO_ARCH= yes
+USES= perl5
+USE_PERL5= configure
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 502705
+TEST_DEPENDS+= p5-Test-Simple>=1.302095:devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>
Added: head/devel/p5-goto-file/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-goto-file/distinfo Sat Jan 27 10:22:57 2018 (r460083)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1516440834
+SHA256 (goto-file-0.005.tar.gz) = c6cdd5ee4a6cdcbdbf314d92a4f9985dbcdf9e4258048cae76125c052aa31f77
+SIZE (goto-file-0.005.tar.gz) = 13012
Added: head/devel/p5-goto-file/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-goto-file/pkg-descr Sat Jan 27 10:22:57 2018 (r460083)
@@ -0,0 +1,14 @@
+It is rare, but there are times where you want to swap out the currently
+compiling file for a different one. This module does that. From the point you
+use the module perl will be parsing the new file instead of the original.
+
+This was created specifically for Test2::Harness which can preload modules and
+fork to run each test. The problem was that using do to execute the test files
+post-fork was resuling in extra frames in the stack trace... in other words
+there are a lot of tests that assume the test file is the bottom of the stack.
+This happens all the time, specially if stack traces need to be verified.
+
+This module allows Test2::Harness to swap out the main script for the new file
+without adding a stack frame.
+
+WWW: http://search.cpan.org/dist/goto-file/
Added: head/devel/p5-goto-file/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-goto-file/pkg-plist Sat Jan 27 10:22:57 2018 (r460083)
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/goto/file.pm
+%%PERL5_MAN3%%/goto::file.3.gz
More information about the svn-ports-all
mailing list