summaryrefslogtreecommitdiffstats
path: root/devel/p5-File-Type
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2004-04-05 07:59:45 +0000
committererwin <erwin@FreeBSD.org>2004-04-05 07:59:45 +0000
commita3444a711066b51f3fd5ba273480010f5ef6c89a (patch)
tree16ac6405e4e7d8f96d9a09efa78a94186e3bf296 /devel/p5-File-Type
parentda4a2e354da0c838ad8fd9602335e2345d87fe8a (diff)
downloadFreeBSD-ports-a3444a711066b51f3fd5ba273480010f5ef6c89a.zip
FreeBSD-ports-a3444a711066b51f3fd5ba273480010f5ef6c89a.tar.gz
Add p5-File-Type 0.20, determine file type using magic.
PR: ports/63157 Submitted by: Michael Johnson <ahze@ahze.net>
Diffstat (limited to 'devel/p5-File-Type')
-rw-r--r--devel/p5-File-Type/Makefile29
-rw-r--r--devel/p5-File-Type/distinfo2
-rw-r--r--devel/p5-File-Type/pkg-descr7
-rw-r--r--devel/p5-File-Type/pkg-plist7
4 files changed, 45 insertions, 0 deletions
diff --git a/devel/p5-File-Type/Makefile b/devel/p5-File-Type/Makefile
new file mode 100644
index 0000000..6cd7d1c
--- /dev/null
+++ b/devel/p5-File-Type/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: p5-File-Type
+# Date created: Fri Feb 20 20:02:30 EST 2004
+# Whom: Michael Johnson <ahze@ahze.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= File-Type
+PORTVERSION= 0.20
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= File
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= ahze@ahze.net
+COMMENT= Determine file type using magic
+
+PERL_CONFIGURE= YES
+
+MAN3= File::Type.3 \
+ File::Type::Builder.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+IGNORE= Port requires perl 5.6.x or later. Install lang/perl5 then try again
+.endifo
+
+.include <bsd.port.post.mk>
diff --git a/devel/p5-File-Type/distinfo b/devel/p5-File-Type/distinfo
new file mode 100644
index 0000000..8248153
--- /dev/null
+++ b/devel/p5-File-Type/distinfo
@@ -0,0 +1,2 @@
+MD5 (File-Type-0.20.tar.gz) = 36079153bd3bb89c961a3de60fc49508
+SIZE (File-Type-0.20.tar.gz) = 124766
diff --git a/devel/p5-File-Type/pkg-descr b/devel/p5-File-Type/pkg-descr
new file mode 100644
index 0000000..93f649a
--- /dev/null
+++ b/devel/p5-File-Type/pkg-descr
@@ -0,0 +1,7 @@
+File::Type uses magic numbers (typically at the start of a file) to determine
+the MIME type of that file.
+
+File::Type can use either a filename, or file contents, to determine the type
+of a file.
+
+WWW: http://search.cpan.org/dist/File-Type
diff --git a/devel/p5-File-Type/pkg-plist b/devel/p5-File-Type/pkg-plist
new file mode 100644
index 0000000..e95fcec
--- /dev/null
+++ b/devel/p5-File-Type/pkg-plist
@@ -0,0 +1,7 @@
+%%SITE_PERL%%/File/Type.pm
+%%SITE_PERL%%/File/Type/Builder.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Type/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Type
+@dirrm %%SITE_PERL%%/File/Type
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/File 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/File 2>/dev/null || true
OpenPOWER on IntegriCloud