From 2e289cd37bcb3a59c1e01eb8662756655a66c4d8 Mon Sep 17 00:00:00 2001 From: abs Date: Mon, 14 Jul 2008 09:24:06 +0000 Subject: Added devel/p5-Data-Page version 2.00 When searching through large amounts of data, it is often the case that a result set is returned that is larger than we want to display on one page. This results in wanting to page through various pages of data. The maths behind this is unfortunately fiddly, hence this module. The main concept is that you pass in the number of total entries, the number of entries per page, and the current page number. You can then call methods to find out how many pages of information there are, and what number the first and last entries on the current page really are. --- devel/p5-Data-Page/DESCR | 9 +++++++++ devel/p5-Data-Page/Makefile | 22 ++++++++++++++++++++++ devel/p5-Data-Page/distinfo | 5 +++++ 3 files changed, 36 insertions(+) create mode 100644 devel/p5-Data-Page/DESCR create mode 100644 devel/p5-Data-Page/Makefile create mode 100644 devel/p5-Data-Page/distinfo (limited to 'devel/p5-Data-Page') diff --git a/devel/p5-Data-Page/DESCR b/devel/p5-Data-Page/DESCR new file mode 100644 index 00000000000..4d18ae260e0 --- /dev/null +++ b/devel/p5-Data-Page/DESCR @@ -0,0 +1,9 @@ +When searching through large amounts of data, it is often the case that a +result set is returned that is larger than we want to display on one page. This +results in wanting to page through various pages of data. The maths behind this +is unfortunately fiddly, hence this module. + +The main concept is that you pass in the number of total entries, the number of +entries per page, and the current page number. You can then call methods to +find out how many pages of information there are, and what number the first and +last entries on the current page really are. diff --git a/devel/p5-Data-Page/Makefile b/devel/p5-Data-Page/Makefile new file mode 100644 index 00000000000..cb26ba7f828 --- /dev/null +++ b/devel/p5-Data-Page/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/07/14 09:24:06 abs Exp $ + +DISTNAME= Data-Page-2.00 +PKGNAME= p5-${DISTNAME} +CATEGORIES= databases perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Data/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/dist/Data-Page/ +COMMENT= Pager utility for Class::DBI + +DEPENDS+= p5-Class-Accessor-Chained>=0:../../devel/p5-Class-Accessor-Chained +BUILD_DEPENDS+= p5-Test-Exception>=0:../../devel/p5-Test-Exception + +PERL5_MODULE_TYPE= Module::Build +USE_LANGUAGES= # empty +PERL5_PACKLIST= auto/Data/Page/.packlist + +PKG_DESTDIR_SUPPORT= user-destdir + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-Data-Page/distinfo b/devel/p5-Data-Page/distinfo new file mode 100644 index 00000000000..f23bb136bc5 --- /dev/null +++ b/devel/p5-Data-Page/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/07/14 09:24:06 abs Exp $ + +SHA1 (Data-Page-2.00.tar.gz) = 729879502eedf01a4d0e92715ea17f74e591b213 +RMD160 (Data-Page-2.00.tar.gz) = 143814733b8efea6c682ce03b0efd28af5034dc3 +Size (Data-Page-2.00.tar.gz) = 6448 bytes -- cgit v1.2.3