head	1.2;
access;
symbols
	pkgsrc-2026Q3:1.2.0.2
	pkgsrc-2026Q3-base:1.2
	pkgsrc-2026Q2:1.1.0.6
	pkgsrc-2026Q2-base:1.1
	pkgsrc-2026Q1:1.1.0.4
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.2
	pkgsrc-2025Q4-base:1.1;
locks; strict;
comment	@# @;


1.2
date	2026.07.16.19.03.46;	author wiz;	state Exp;
branches;
next	1.1;
commitid	FQnRlmCjzrRuxUNG;

1.1
date	2025.11.15.12.29.18;	author wen;	state Exp;
branches;
next	;
commitid	0fC27ZKBRqtHbEiG;


desc
@@


1.2
log
@*: recursive bump for perl5 5.44.0
@
text
@# $NetBSD: Makefile,v 1.1 2025/11/15 12:29:18 wen Exp $

DISTNAME=		goto-file-0.005
PKGNAME=		p5-${DISTNAME}
PKGREVISION=		1
CATEGORIES=		devel perl5
MASTER_SITES=		${MASTER_SITE_PERL_CPAN:=../../authors/id/E/EX/EXODIST/}

MAINTAINER=		wen@@NetBSD.org
HOMEPAGE=		https://metacpan.org/release/goto-file
COMMENT=		Stop parsing the current file and move on to a different one
LICENSE=		${PERL5_LICENSE}

PERL5_PACKLIST=		auto/goto/file/.packlist

.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"
@


1.1
log
@Import goto-file-0.005 as devel/p5-goto-file.

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.
@
text
@d1 1
a1 1
# $NetBSD$
d5 1
@

