aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorerwin <erwin@FreeBSD.org>2004-04-05 15:59:45 +0800
committererwin <erwin@FreeBSD.org>2004-04-05 15:59:45 +0800
commita3444a711066b51f3fd5ba273480010f5ef6c89a (patch)
tree16ac6405e4e7d8f96d9a09efa78a94186e3bf296 /devel
parentda4a2e354da0c838ad8fd9602335e2345d87fe8a (diff)
downloadfreebsd-ports-gnome-a3444a711066b51f3fd5ba273480010f5ef6c89a.tar.gz
freebsd-ports-gnome-a3444a711066b51f3fd5ba273480010f5ef6c89a.tar.zst
freebsd-ports-gnome-a3444a711066b51f3fd5ba273480010f5ef6c89a.zip
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')
-rw-r--r--devel/Makefile1
-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
5 files changed, 46 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 116c7f1eb95b..4cbaa2c2a55b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -744,6 +744,7 @@
SUBDIR += p5-File-Sync
SUBDIR += p5-File-Tail
SUBDIR += p5-File-Temp
+ SUBDIR += p5-File-Type
SUBDIR += p5-File-chdir
SUBDIR += p5-FileHandle-Unget
SUBDIR += p5-Filesys-Statvfs_Df
diff --git a/devel/p5-File-Type/Makefile b/devel/p5-File-Type/Makefile
new file mode 100644
index 000000000000..6cd7d1c967a5
--- /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 000000000000..82481532ec0d
--- /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 000000000000..93f649a41e84
--- /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 000000000000..e95fcec6511a
--- /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