Received: by mail.netbsd.org (Postfix, from userid 605) id 9D80284EBE; Tue, 31 May 2022 20:48:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id D800384EB8 for ; Tue, 31 May 2022 20:48:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 2WXldd3wHSUW for ; Tue, 31 May 2022 20:48:03 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 398E484C71 for ; Tue, 31 May 2022 20:48:03 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 08D3AFB18; Tue, 31 May 2022 20:49:10 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_165403015053570" MIME-Version: 1.0 Date: Tue, 31 May 2022 20:49:10 +0000 From: "Mark Davies" Subject: CVS commit: pkgsrc/devel To: pkgsrc-changes@NetBSD.org Reply-To: markd@netbsd.org X-Mailer: log_accum Message-Id: <20220531204910.08D3AFB18@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_165403015053570 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: markd Date: Tue May 31 20:49:09 UTC 2022 Modified Files: pkgsrc/devel: Makefile Added Files: pkgsrc/devel/p5-constant-defer: DESCR Makefile distinfo Log Message: p5-constant-defer: add version 6 constant::defer creates a subroutine which on the first call runs given code to calculate its value, and on any subsequent calls just returns that value, like a constant. The value code is discarded once run, allowing it to be garbage collected. Deferring a calculation is good if it might take a lot of work or produce a big result but is only needed sometimes or only well into a program run. If it's never needed then the value code never runs. To generate a diff of this commit: cvs rdiff -u -r1.3742 -r1.3743 pkgsrc/devel/Makefile cvs rdiff -u -r0 -r1.1 pkgsrc/devel/p5-constant-defer/DESCR \ pkgsrc/devel/p5-constant-defer/Makefile \ pkgsrc/devel/p5-constant-defer/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_165403015053570 Content-Disposition: inline Content-Length: 2651 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/devel/Makefile diff -u pkgsrc/devel/Makefile:1.3742 pkgsrc/devel/Makefile:1.3743 --- pkgsrc/devel/Makefile:1.3742 Tue May 24 05:54:01 2022 +++ pkgsrc/devel/Makefile Tue May 31 20:49:09 2022 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3742 2022/05/24 05:54:01 wiz Exp $ +# $NetBSD: Makefile,v 1.3743 2022/05/31 20:49:09 markd Exp $ # COMMENT= Development utilities @@ -2176,6 +2176,7 @@ SUBDIR+= p5-capitalization SUBDIR+= p5-circular-require SUBDIR+= p5-common-sense SUBDIR+= p5-constant-def +SUBDIR+= p5-constant-defer SUBDIR+= p5-curry SUBDIR+= p5-enum SUBDIR+= p5-ex-lib Added files: Index: pkgsrc/devel/p5-constant-defer/DESCR diff -u /dev/null pkgsrc/devel/p5-constant-defer/DESCR:1.1 --- /dev/null Tue May 31 20:49:09 2022 +++ pkgsrc/devel/p5-constant-defer/DESCR Tue May 31 20:49:09 2022 @@ -0,0 +1,8 @@ +constant::defer creates a subroutine which on the first call runs given +code to calculate its value, and on any subsequent calls just returns that +value, like a constant. The value code is discarded once run, allowing it +to be garbage collected. + +Deferring a calculation is good if it might take a lot of work or produce +a big result but is only needed sometimes or only well into a program run. +If it's never needed then the value code never runs. Index: pkgsrc/devel/p5-constant-defer/Makefile diff -u /dev/null pkgsrc/devel/p5-constant-defer/Makefile:1.1 --- /dev/null Tue May 31 20:49:09 2022 +++ pkgsrc/devel/p5-constant-defer/Makefile Tue May 31 20:49:09 2022 @@ -0,0 +1,16 @@ +# $NetBSD: Makefile,v 1.1 2022/05/31 20:49:09 markd Exp $ + +DISTNAME= constant-defer-6 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/K/KR/KRYDE/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://metacpan.org/release/constant-defer +COMMENT= constant subs with deferred value calculation +LICENSE= gnu-gpl-v3 + +PERL5_PACKLIST= auto/constant/defer/.packlist + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" Index: pkgsrc/devel/p5-constant-defer/distinfo diff -u /dev/null pkgsrc/devel/p5-constant-defer/distinfo:1.1 --- /dev/null Tue May 31 20:49:09 2022 +++ pkgsrc/devel/p5-constant-defer/distinfo Tue May 31 20:49:09 2022 @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2022/05/31 20:49:09 markd Exp $ + +BLAKE2s (constant-defer-6.tar.gz) = 061fad1a566551a57ca780f4eb77159ed1fc0cdd86882f8d206e93895a64c369 +SHA512 (constant-defer-6.tar.gz) = 902916d32ed11737d34f8764af171ba1731de807ffbfd62e342f83bef05ab0a34ddaeec3f2c9b41814877b0568fc3e09fbf26e7ce2cd4a3dd6eeba75e6755b5f +Size (constant-defer-6.tar.gz) = 43427 bytes --_----------=_165403015053570--