aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlth <lth@FreeBSD.org>2012-09-03 02:17:03 +0800
committerlth <lth@FreeBSD.org>2012-09-03 02:17:03 +0800
commit675b0e54542d5a83b640f6e788820f6785aab50b (patch)
tree587a7e230acedfef2680102067efc6e0ace19fa8
parentbfa862a6171414f6f6a34c1f6067f1f0cc64dafb (diff)
downloadfreebsd-ports-gnome-675b0e54542d5a83b640f6e788820f6785aab50b.tar.gz
freebsd-ports-gnome-675b0e54542d5a83b640f6e788820f6785aab50b.tar.zst
freebsd-ports-gnome-675b0e54542d5a83b640f6e788820f6785aab50b.zip
Add p5-Test-File-ShareDir 0.3.1, create a fake ShareDir for your modules
for testing.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-Test-File-ShareDir/Makefile27
-rw-r--r--devel/p5-Test-File-ShareDir/distinfo2
-rw-r--r--devel/p5-Test-File-ShareDir/pkg-descr3
-rw-r--r--devel/p5-Test-File-ShareDir/pkg-plist5
5 files changed, 38 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index f42aa07ec1f8..950dfab9c1e9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2590,6 +2590,7 @@
SUBDIR += p5-Test-Fatal
SUBDIR += p5-Test-File
SUBDIR += p5-Test-File-Contents
+ SUBDIR += p5-Test-File-ShareDir
SUBDIR += p5-Test-Fixture-DBIC-Schema
SUBDIR += p5-Test-Group
SUBDIR += p5-Test-HTML-Tidy
diff --git a/devel/p5-Test-File-ShareDir/Makefile b/devel/p5-Test-File-ShareDir/Makefile
new file mode 100644
index 000000000000..8e9b2d1c183d
--- /dev/null
+++ b/devel/p5-Test-File-ShareDir/Makefile
@@ -0,0 +1,27 @@
+# $FreeBSD$
+
+PORTNAME= Test-File-ShareDir
+PORTVERSION= 0.3.1
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= Test
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= lth@FreeBSD.org
+COMMENT= Create a fake ShareDir for your modules for testing
+
+BUILD_DEPENDS= p5-File-Copy-Recursive>0:${PORTSDIR}/devel/p5-File-Copy-Recursive \
+ p5-File-ShareDir>=1.00:${PORTSDIR}/devel/p5-File-ShareDir \
+ p5-Path-Class>0:${PORTSDIR}/devel/p5-Path-Class
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+TEST_DEPENDS= p5-Test-Fatal>0:${PORTSDIR}/devel/p5-Test-Fatal
+
+PERL_MODBUILD= yes
+
+MAN3= Test::File::ShareDir.3 \
+ Test::File::ShareDir::TempDirObject.3
+
+regression-test: build
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PERL5} ${PL_BUILD} test
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Test-File-ShareDir/distinfo b/devel/p5-Test-File-ShareDir/distinfo
new file mode 100644
index 000000000000..86fc698c7fc7
--- /dev/null
+++ b/devel/p5-Test-File-ShareDir/distinfo
@@ -0,0 +1,2 @@
+SHA256 (Test-File-ShareDir-0.3.1.tar.gz) = cba4c50ce82b3e146d4f8984fa19c16561083840950b5954388e61a133814602
+SIZE (Test-File-ShareDir-0.3.1.tar.gz) = 18468
diff --git a/devel/p5-Test-File-ShareDir/pkg-descr b/devel/p5-Test-File-ShareDir/pkg-descr
new file mode 100644
index 000000000000..f62dc4b21346
--- /dev/null
+++ b/devel/p5-Test-File-ShareDir/pkg-descr
@@ -0,0 +1,3 @@
+Create a fake ShareDir for your modules for testing.
+
+WWW: http://search.cpan.org/dist/Test-File-ShareDir/
diff --git a/devel/p5-Test-File-ShareDir/pkg-plist b/devel/p5-Test-File-ShareDir/pkg-plist
new file mode 100644
index 000000000000..e024227af9e9
--- /dev/null
+++ b/devel/p5-Test-File-ShareDir/pkg-plist
@@ -0,0 +1,5 @@
+%%SITE_PERL%%/Test/File/ShareDir/TempDirObject.pm
+%%SITE_PERL%%/Test/File/ShareDir.pm
+@dirrmtry %%SITE_PERL%%/Test/File/ShareDir
+@dirrmtry %%SITE_PERL%%/Test/File
+@dirrmtry %%SITE_PERL%%/Test