Mon Jul 14 09:24:06 2008 UTC ()
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.

Status:

Vendor Tag:	TNF
Release Tags:	pkgsrc-base


(abs)
diff -r0 -r1.1.1.1 pkgsrc/devel/p5-Data-Page/distinfo
diff -r0 -r1.1.1.1 pkgsrc/devel/p5-Data-Page/Makefile
diff -r0 -r1.1.1.1 pkgsrc/devel/p5-Data-Page/DESCR

File Added: pkgsrc/devel/p5-Data-Page/distinfo
$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

File Added: pkgsrc/devel/p5-Data-Page/Makefile
# $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"

File Added: pkgsrc/devel/p5-Data-Page/DESCR
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.