summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authormjl <mjl>2001-04-06 22:42:06 +0000
committermjl <mjl>2001-04-06 22:42:06 +0000
commitcbf0be338526a1ec72046017e590ec189812e008 (patch)
tree265833b2341142e0a7acb824bc84054445b3f48e /devel
parent9a21fa254d3d16ea0cf1dffee18c346bc6d9c1d4 (diff)
downloadpkgsrc-cbf0be338526a1ec72046017e590ec189812e008.tar.gz
Import p5-Memoize, a module to transparently speed up functions
by caching return values
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-Memoize/Makefile19
-rw-r--r--devel/p5-Memoize/files/md53
-rw-r--r--devel/p5-Memoize/pkg/DESCR5
-rw-r--r--devel/p5-Memoize/pkg/PLIST1
4 files changed, 28 insertions, 0 deletions
diff --git a/devel/p5-Memoize/Makefile b/devel/p5-Memoize/Makefile
new file mode 100644
index 00000000000..c15c2399816
--- /dev/null
+++ b/devel/p5-Memoize/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/04/06 22:42:06 mjl Exp $
+#
+
+DISTNAME= Memoize-0.62
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Memoize/}
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://perl.plover.com/
+COMMENT= Transparently speed up functions by caching return values
+
+USE_PERL5= # defined
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Memoize/.packlist
+
+do-configure:
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-Memoize/files/md5 b/devel/p5-Memoize/files/md5
new file mode 100644
index 00000000000..496f88683af
--- /dev/null
+++ b/devel/p5-Memoize/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2001/04/06 22:42:06 mjl Exp $
+
+SHA1 (Memoize-0.62.tar.gz) = 26de996813e0015a69e7872beabc09f4a821176a
diff --git a/devel/p5-Memoize/pkg/DESCR b/devel/p5-Memoize/pkg/DESCR
new file mode 100644
index 00000000000..c45c38c9a77
--- /dev/null
+++ b/devel/p5-Memoize/pkg/DESCR
@@ -0,0 +1,5 @@
+`Memoizing' a function makes it faster by trading space for time. It
+does this by caching the return values of the function in a table.
+If you call the function again with the same arguments, C<memoize>
+jmups in and gives you the value out of the table, instead of letting
+the function compute the value all over again.
diff --git a/devel/p5-Memoize/pkg/PLIST b/devel/p5-Memoize/pkg/PLIST
new file mode 100644
index 00000000000..bd36491d6f9
--- /dev/null
+++ b/devel/p5-Memoize/pkg/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/04/06 22:42:06 mjl Exp $