From 6800bb7aaedd8d9a6b319900c1a798e0ac035185 Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Sat, 16 Feb 2013 02:32:13 +0000 Subject: [PATCH] Portable filename comparison. Many cross-platform test failures -- particularly on Win32 -- are due to hard-coded file paths being used in comparison tests. This simple module provides some handy functions to convert all those path separators automatically so filename tests will just DWIM. WWW: http://search.cpan.org/dist/Test-Filename/ --- devel/Makefile | 1 + devel/p5-Test-Filename/Makefile | 22 ++++++++++++++++++++++ devel/p5-Test-Filename/distinfo | 2 ++ devel/p5-Test-Filename/pkg-descr | 9 +++++++++ devel/p5-Test-Filename/pkg-plist | 5 +++++ 5 files changed, 39 insertions(+) create mode 100644 devel/p5-Test-Filename/Makefile create mode 100644 devel/p5-Test-Filename/distinfo create mode 100644 devel/p5-Test-Filename/pkg-descr create mode 100644 devel/p5-Test-Filename/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 4a3c836052ba..5eac79f70d2a 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2720,6 +2720,7 @@ SUBDIR += p5-Test-File SUBDIR += p5-Test-File-Contents SUBDIR += p5-Test-File-ShareDir + SUBDIR += p5-Test-Filename SUBDIR += p5-Test-Fixme SUBDIR += p5-Test-Fixture-DBIC-Schema SUBDIR += p5-Test-Group diff --git a/devel/p5-Test-Filename/Makefile b/devel/p5-Test-Filename/Makefile new file mode 100644 index 000000000000..63d2b6bed9a8 --- /dev/null +++ b/devel/p5-Test-Filename/Makefile @@ -0,0 +1,22 @@ +# $FreeBSD$ + +PORTNAME= Test-Filename +PORTVERSION= 0.03 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= kuriyama@FreeBSD.org +COMMENT= Perl extension for portable filename comparison + +RUN_DEPENDS= \ + p5-Path-Tiny>0:${PORTSDIR}/devel/p5-Path-Tiny +BUILD_DEPENDS= ${RUN_DEPENDS} +TEST_DEPENDS= \ + p5-Test-Tester>0:${PORTSDIR}/devel/p5-Test-Tester + +PERL_CONFIGURE= yes + +MAN3= Test::Filename.3 + +.include diff --git a/devel/p5-Test-Filename/distinfo b/devel/p5-Test-Filename/distinfo new file mode 100644 index 000000000000..dc297886d9db --- /dev/null +++ b/devel/p5-Test-Filename/distinfo @@ -0,0 +1,2 @@ +SHA256 (Test-Filename-0.03.tar.gz) = 6a450cc4c6281ed1129f32a1c0741f228967feda2e32a2915ff621c36525fcbe +SIZE (Test-Filename-0.03.tar.gz) = 10757 diff --git a/devel/p5-Test-Filename/pkg-descr b/devel/p5-Test-Filename/pkg-descr new file mode 100644 index 000000000000..b30190409bae --- /dev/null +++ b/devel/p5-Test-Filename/pkg-descr @@ -0,0 +1,9 @@ +Portable filename comparison. + +Many cross-platform test failures -- particularly on Win32 -- are due +to hard-coded file paths being used in comparison tests. + +This simple module provides some handy functions to convert all those +path separators automatically so filename tests will just DWIM. + +WWW: http://search.cpan.org/dist/Test-Filename/ diff --git a/devel/p5-Test-Filename/pkg-plist b/devel/p5-Test-Filename/pkg-plist new file mode 100644 index 000000000000..7857b2a946c8 --- /dev/null +++ b/devel/p5-Test-Filename/pkg-plist @@ -0,0 +1,5 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/Filename/.packlist +%%SITE_PERL%%/Test/Filename.pm +@dirrmtry %%SITE_PERL%%/Test +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Test/Filename +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Test