pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel p5-constant-defer: add version 6



details:   https://anonhg.NetBSD.org/pkgsrc/rev/efa53f0c8b27
branches:  trunk
changeset: 380222:efa53f0c8b27
user:      markd <markd%pkgsrc.org@localhost>
date:      Tue May 31 20:49:09 2022 +0000

description:
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.

diffstat:

 devel/Makefile                   |   3 ++-
 devel/p5-constant-defer/DESCR    |   8 ++++++++
 devel/p5-constant-defer/Makefile |  16 ++++++++++++++++
 devel/p5-constant-defer/distinfo |   5 +++++
 4 files changed, 31 insertions(+), 1 deletions(-)

diffs (58 lines):

diff -r f7954386ddb9 -r efa53f0c8b27 devel/Makefile
--- a/devel/Makefile    Tue May 31 20:44:36 2022 +0000
+++ b/devel/Makefile    Tue May 31 20:49:09 2022 +0000
@@ -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-circular-require
 SUBDIR+=       p5-common-sense
 SUBDIR+=       p5-constant-def
+SUBDIR+=       p5-constant-defer
 SUBDIR+=       p5-curry
 SUBDIR+=       p5-enum
 SUBDIR+=       p5-ex-lib
diff -r f7954386ddb9 -r efa53f0c8b27 devel/p5-constant-defer/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-constant-defer/DESCR     Tue May 31 20:49:09 2022 +0000
@@ -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.
diff -r f7954386ddb9 -r efa53f0c8b27 devel/p5-constant-defer/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-constant-defer/Makefile  Tue May 31 20:49:09 2022 +0000
@@ -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@localhost
+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"
diff -r f7954386ddb9 -r efa53f0c8b27 devel/p5-constant-defer/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-constant-defer/distinfo  Tue May 31 20:49:09 2022 +0000
@@ -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



Home | Main Index | Thread Index | Old Index