From 62f59acea2f0a2e4a80437060785420eb1b85ef3 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Tue, 4 Feb 2003 10:52:56 +0000 Subject: [PATCH] New port: Test::Differences - Test strings and data structures for differences When the code you're testing returns multiple lines, records or data structures and they're just plain wrong, an equivalent to the Unix diff utility may be just what's needed. PR: ports/47588 Submitted by: Erwin Lansing --- devel/Makefile | 1 + devel/p5-Test-Differences/Makefile | 26 ++++++++++++++++++++++++++ devel/p5-Test-Differences/distinfo | 1 + devel/p5-Test-Differences/pkg-comment | 1 + devel/p5-Test-Differences/pkg-descr | 5 +++++ devel/p5-Test-Differences/pkg-plist | 4 ++++ 6 files changed, 38 insertions(+) create mode 100644 devel/p5-Test-Differences/Makefile create mode 100644 devel/p5-Test-Differences/distinfo create mode 100644 devel/p5-Test-Differences/pkg-comment create mode 100644 devel/p5-Test-Differences/pkg-descr create mode 100644 devel/p5-Test-Differences/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 7dab2219bc8d..6a0ecd261eee 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -627,6 +627,7 @@ SUBDIR += p5-Term-Screen SUBDIR += p5-Term-Size SUBDIR += p5-Test-Builder-Tester + SUBDIR += p5-Test-Differences SUBDIR += p5-Test-Exception SUBDIR += p5-Test-Harness SUBDIR += p5-Test-Inline diff --git a/devel/p5-Test-Differences/Makefile b/devel/p5-Test-Differences/Makefile new file mode 100644 index 000000000000..7ff49777f532 --- /dev/null +++ b/devel/p5-Test-Differences/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: p5-Test-Differences +# Date created: January 28th 2003 +# Whom: Erwin Lansing +# +# $FreeBSD$ +# + +PORTNAME= Test-Differences +PORTVERSION= 0.46 +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Test +PKGNAMEPREFIX= p5- + +MAINTAINER= erwin@lansing.dk + +BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Text/Diff.pm:${PORTSDIR}/textproc/p5-Text-Diff \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} +MAN3= Test::Differences.3 + +.include diff --git a/devel/p5-Test-Differences/distinfo b/devel/p5-Test-Differences/distinfo new file mode 100644 index 000000000000..5342044ef89d --- /dev/null +++ b/devel/p5-Test-Differences/distinfo @@ -0,0 +1 @@ +MD5 (Test-Differences-0.46.tar.gz) = 802b0c0fd801657588c2515d738c5665 diff --git a/devel/p5-Test-Differences/pkg-comment b/devel/p5-Test-Differences/pkg-comment new file mode 100644 index 000000000000..fedee812aed9 --- /dev/null +++ b/devel/p5-Test-Differences/pkg-comment @@ -0,0 +1 @@ +Test::Differences - Test strings and data structures for differences diff --git a/devel/p5-Test-Differences/pkg-descr b/devel/p5-Test-Differences/pkg-descr new file mode 100644 index 000000000000..5331e1c78a13 --- /dev/null +++ b/devel/p5-Test-Differences/pkg-descr @@ -0,0 +1,5 @@ +When the code you're testing returns multiple lines, records +or data structures and they're just plain wrong, an equivalent +to the Unix diff utility may be just what's needed. + +WWW: http://search.cpan.org/dist/Test-Differences/ diff --git a/devel/p5-Test-Differences/pkg-plist b/devel/p5-Test-Differences/pkg-plist new file mode 100644 index 000000000000..8aa384cfe880 --- /dev/null +++ b/devel/p5-Test-Differences/pkg-plist @@ -0,0 +1,4 @@ +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Test/Differences/.packlist +lib/perl5/site_perl/%%PERL_VER%%/Test/Differences.pm +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Test/Differences +@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Test 2>/dev/null || true