diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2005-12-08 17:37:38 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2005-12-08 17:37:38 +0800 |
commit | 408d997c9ec0f0ae01ebdd64e3a02371f37a1168 (patch) | |
tree | 3425c612625d69902b5027e699de8d671897c786 /databases | |
parent | 813bddc94b6597139d058d593acc4ecabadf62e7 (diff) | |
download | freebsd-ports-gnome-408d997c9ec0f0ae01ebdd64e3a02371f37a1168.tar.gz freebsd-ports-gnome-408d997c9ec0f0ae01ebdd64e3a02371f37a1168.tar.zst freebsd-ports-gnome-408d997c9ec0f0ae01ebdd64e3a02371f37a1168.zip |
Add p5-DBD-Mock, a simple mock DBD implementation used for testing
PR: 89835
Submitted by: Espen Tagestad <espen@tagestad.no>
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/p5-DBD-Mock/Makefile | 33 | ||||
-rw-r--r-- | databases/p5-DBD-Mock/distinfo | 3 | ||||
-rw-r--r-- | databases/p5-DBD-Mock/pkg-descr | 9 | ||||
-rw-r--r-- | databases/p5-DBD-Mock/pkg-plist | 5 |
5 files changed, 51 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index ed6909843689..3f3b5e39bddc 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -172,6 +172,7 @@ SUBDIR += p5-DBD-Google SUBDIR += p5-DBD-InterBase SUBDIR += p5-DBD-LDAP + SUBDIR += p5-DBD-Mock SUBDIR += p5-DBD-ODBC SUBDIR += p5-DBD-Oracle SUBDIR += p5-DBD-Pg diff --git a/databases/p5-DBD-Mock/Makefile b/databases/p5-DBD-Mock/Makefile new file mode 100644 index 000000000000..258b2aaaf38b --- /dev/null +++ b/databases/p5-DBD-Mock/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: DBD::Mock +# Date created: 02 December 2005 +# Whom: Espen Tagestad <espen@tagestad.no> +# +# $FreeBSD$ +# + +PORTNAME= DBD-Mock +PORTVERSION= 0.28 +CATEGORIES= databases perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= DBD +PKGNAMEPREFIX= p5- + +MAINTAINER= espen@tagestad.no +COMMENT= Simple mock DBD implementation used for testing + +BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI +RUN_DEPENDS= ${BUILD_DEPENDS} + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +PERL_CONFIGURE= yes + +MAN3= DBD::Mock.3 + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500806 +IGNORE= needs Perl 5.8.6 or above (lang/perl5.8) +.endif + +.include <bsd.port.post.mk> diff --git a/databases/p5-DBD-Mock/distinfo b/databases/p5-DBD-Mock/distinfo new file mode 100644 index 000000000000..30723db8bd66 --- /dev/null +++ b/databases/p5-DBD-Mock/distinfo @@ -0,0 +1,3 @@ +MD5 (DBD-Mock-0.28.tar.gz) = 4dc357a18020bfd8d9cf5ad7760a1775 +SHA256 (DBD-Mock-0.28.tar.gz) = 6662b8758b6402dc13770543f9a98906ad87e141003290336ed9c5fe1404c1b8 +SIZE (DBD-Mock-0.28.tar.gz) = 34944 diff --git a/databases/p5-DBD-Mock/pkg-descr b/databases/p5-DBD-Mock/pkg-descr new file mode 100644 index 000000000000..9b873730f636 --- /dev/null +++ b/databases/p5-DBD-Mock/pkg-descr @@ -0,0 +1,9 @@ +The DBD::Mock perl module is a simple mock DBD implementation used for testing. +It's entirely self-contained so that you can extract the single library file +(DBD/Mock.pm), put it in your own distribution and be able to run DBI-based +tests even though you don't have information about a database. + +WWW: http://search.cpan.org/dist/DBD-Mock/ + +- Espen Tagestad +espen@tagestad.no diff --git a/databases/p5-DBD-Mock/pkg-plist b/databases/p5-DBD-Mock/pkg-plist new file mode 100644 index 000000000000..eb984b860dd8 --- /dev/null +++ b/databases/p5-DBD-Mock/pkg-plist @@ -0,0 +1,5 @@ +%%SITE_PERL%%/DBD/Mock.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD/Mock/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD/Mock +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBD 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/DBD 2>/dev/null || true |