From owner-svn-ports-all@freebsd.org Fri May 11 10:22:27 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 70B86FCCD86; Fri, 11 May 2018 10:22:27 +0000 (UTC) (envelope-from pi@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 22CA478D6A; Fri, 11 May 2018 10:22:27 +0000 (UTC) (envelope-from pi@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 049E3644C; Fri, 11 May 2018 10:22:27 +0000 (UTC) (envelope-from pi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4BAMQuc038136; Fri, 11 May 2018 10:22:26 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4BAMQpI038132; Fri, 11 May 2018 10:22:26 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201805111022.w4BAMQpI038132@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Fri, 11 May 2018 10:22:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r469622 - in head/devel: . p5-Call-Context X-SVN-Group: ports-head X-SVN-Commit-Author: pi X-SVN-Commit-Paths: in head/devel: . p5-Call-Context X-SVN-Commit-Revision: 469622 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: Fri, 11 May 2018 10:22:27 -0000 Author: pi Date: Fri May 11 10:22:25 2018 New Revision: 469622 URL: https://svnweb.freebsd.org/changeset/ports/469622 Log: New port: devel/p5-Call-Context Sanity-check calling context If your function only expects to return a list, then a call in some other context is, by definition, an error. The problem is that, depending on how the function is written, it may actually do something expected in testing, but then in production act differently. WWW: http://search.cpan.org/dist/Call-Context/ Added: head/devel/p5-Call-Context/ head/devel/p5-Call-Context/Makefile (contents, props changed) head/devel/p5-Call-Context/distinfo (contents, props changed) head/devel/p5-Call-Context/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Fri May 11 09:46:40 2018 (r469621) +++ head/devel/Makefile Fri May 11 10:22:25 2018 (r469622) @@ -2044,6 +2044,7 @@ SUBDIR += p5-Cache-Simple-TimedExpiry SUBDIR += p5-Cairo-GObject SUBDIR += p5-Calendar-Simple + SUBDIR += p5-Call-Context SUBDIR += p5-Callback-Frame SUBDIR += p5-Canary-Stability SUBDIR += p5-Capture-Tiny Added: head/devel/p5-Call-Context/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Call-Context/Makefile Fri May 11 10:22:25 2018 (r469622) @@ -0,0 +1,26 @@ +# $FreeBSD$ + +PORTNAME= Call-Context +PORTVERSION= 0.02 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:FELIPE +PKGNAMEPREFIX= p5- + +MAINTAINER= pi@FreeBSD.org +COMMENT= Sanity-check calling context + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual + +NO_ARCH= yes + +USES= perl5 +USE_PERL5= configure +PLIST_FILES= ${SITE_PERL_REL}/Call/Context.pm \ + ${SITE_MAN3_REL}/Call::Context.3.gz + +pre-install: + ${RM} ${WRKSRC}/blib/lib/Call/README.pod + +.include Added: head/devel/p5-Call-Context/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Call-Context/distinfo Fri May 11 10:22:25 2018 (r469622) @@ -0,0 +1,3 @@ +TIMESTAMP = 1526032556 +SHA256 (Call-Context-0.02.tar.gz) = b80d977f1df0e08bda2808124cd7218ad83f802e1a54aa258e17748ff5c02a0a +SIZE (Call-Context-0.02.tar.gz) = 10046 Added: head/devel/p5-Call-Context/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/p5-Call-Context/pkg-descr Fri May 11 10:22:25 2018 (r469622) @@ -0,0 +1,8 @@ +Sanity-check calling context + +If your function only expects to return a list, then a call in some +other context is, by definition, an error. The problem is that, +depending on how the function is written, it may actually do something +expected in testing, but then in production act differently. + +WWW: http://search.cpan.org/dist/Call-Context/