From 926f1fd6e6a543181d35afc93d006d66acc65cd6 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 26 May 2012 16:26:25 +0000 Subject: [PATCH] A simple, fast implementation of an in-memory LRU cache in pure perl. --- devel/Makefile | 1 + devel/p5-Cache-LRU/Makefile | 25 +++++++++++++++++++++++++ devel/p5-Cache-LRU/distinfo | 2 ++ devel/p5-Cache-LRU/pkg-descr | 4 ++++ devel/p5-Cache-LRU/pkg-plist | 5 +++++ 5 files changed, 37 insertions(+) create mode 100644 devel/p5-Cache-LRU/Makefile create mode 100644 devel/p5-Cache-LRU/distinfo create mode 100644 devel/p5-Cache-LRU/pkg-descr create mode 100644 devel/p5-Cache-LRU/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 06f75f886926..75e4f2bea543 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1348,6 +1348,7 @@ SUBDIR += p5-Cache-AgainstFile SUBDIR += p5-Cache-Cache SUBDIR += p5-Cache-FastMmap + SUBDIR += p5-Cache-LRU SUBDIR += p5-Cache-Memcached-Tie SUBDIR += p5-Cache-Mmap SUBDIR += p5-Cache-Simple-TimedExpiry diff --git a/devel/p5-Cache-LRU/Makefile b/devel/p5-Cache-LRU/Makefile new file mode 100644 index 000000000000..623c3f4798ce --- /dev/null +++ b/devel/p5-Cache-LRU/Makefile @@ -0,0 +1,25 @@ +# New ports collection makefile for: p5-Cache-LRU +# Date created: 2012-05-26 +# Whom: Andrey Chernov +# +# $FreeBSD$ +# + +PORTNAME= Cache-LRU +PORTVERSION= 0.03 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:KAZUHO +PKGNAMEPREFIX= p5- + +MAINTAINER= perl@FreeBSD.org +COMMENT= A simple, fast implementation of an in-memory LRU cache + +TEST_DEPENDS= p5-Test-Simple>=0.98:${PORTSDIR}/devel/p5-Test-Simple \ + p5-Test-Requires>=0:${PORTSDIR}/devel/p5-Test-Requires + +PERL_CONFIGURE= yes + +MAN3= Cache::LRU.3 + +.include diff --git a/devel/p5-Cache-LRU/distinfo b/devel/p5-Cache-LRU/distinfo new file mode 100644 index 000000000000..19c71e5a6733 --- /dev/null +++ b/devel/p5-Cache-LRU/distinfo @@ -0,0 +1,2 @@ +SHA256 (Cache-LRU-0.03.tar.gz) = 7131f08a266274d1c9d3dbac77b610fe69fe1c8589b919833cc0482b1732eae9 +SIZE (Cache-LRU-0.03.tar.gz) = 19865 diff --git a/devel/p5-Cache-LRU/pkg-descr b/devel/p5-Cache-LRU/pkg-descr new file mode 100644 index 000000000000..e7c05897ed4c --- /dev/null +++ b/devel/p5-Cache-LRU/pkg-descr @@ -0,0 +1,4 @@ +A simple, fast implementation of an in-memory LRU cache in pure perl with +the maximum number of entries to be stored within the cache object. + +WWW: http://search.cpan.org/dist/Cache-LRU/ diff --git a/devel/p5-Cache-LRU/pkg-plist b/devel/p5-Cache-LRU/pkg-plist new file mode 100644 index 000000000000..6865826227d4 --- /dev/null +++ b/devel/p5-Cache-LRU/pkg-plist @@ -0,0 +1,5 @@ +%%SITE_PERL%%/Cache/LRU.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Cache/LRU/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cache/LRU +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Cache +@dirrmtry %%SITE_PERL%%/Cache