freebsd-ports/devel/p5-goto-file/Makefile
Sunpoet Po-Chuan Hsieh be9d1f581b 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/
2018-01-27 10:22:57 +00:00

30 lines
637 B
Makefile

# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= goto-file
PORTVERSION= 0.005
CATEGORIES= devel perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:EXODIST
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@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>