From owner-svn-ports-all@freebsd.org Sat Jan 27 10:22:59 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 15C69E7CB79; Sat, 27 Jan 2018 10:22:59 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B836180849; Sat, 27 Jan 2018 10:22:58 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B323E11A9; Sat, 27 Jan 2018 10:22:58 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0RAMwMY099896; Sat, 27 Jan 2018 10:22:58 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0RAMwoj099891; Sat, 27 Jan 2018 10:22:58 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201801271022.w0RAMwoj099891@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sat, 27 Jan 2018 10:22:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r460083 - in head/devel: . p5-goto-file X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel: . p5-goto-file X-SVN-Commit-Revision: 460083 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jan 2018 10:22:59 -0000 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 +# $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 + +.if ${PERL_LEVEL} < 502705 +TEST_DEPENDS+= p5-Test-Simple>=1.302095:devel/p5-Test-Simple +.endif + +.include 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