Add p5-File-MimeInfo 0.10, determine file type.

PR:		70797
Submitted by:	Rong-En Fan <rafan@infor.org>
This commit is contained in:
Lars Thegler 2004-08-22 12:35:31 +00:00
parent 1c95b61f4a
commit f0d9ea9117
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117020
5 changed files with 59 additions and 0 deletions

View file

@ -787,6 +787,7 @@
SUBDIR += p5-File-Grep
SUBDIR += p5-File-Lock
SUBDIR += p5-File-MMagic
SUBDIR += p5-File-MimeInfo
SUBDIR += p5-File-Modified
SUBDIR += p5-File-NCopy
SUBDIR += p5-File-NFSLock

View file

@ -0,0 +1,34 @@
# New ports collection makefile for: devel/p5-File-MimeInfo
# Date created: Aug 21 2004
# Whom: Rong-En Fan <rafan@infor.org>
#
# $FreeBSD$
#
PORTNAME= File-MimeInfo
PORTVERSION= 0.10
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= ../../authors/id/P/PA/PARDUS/${PORTNAME}
PKGNAMEPREFIX= p5-
MAINTAINER= rafan@infor.org
COMMENT= Determine file type
BUILD_DEPENDS= ${SITE_PERL}/File/BaseDir.pm:${PORTSDIR}/devel/p5-File-BaseDir
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN1= mimetype.1
MAN3= File::MimeInfo::Magic.3 \
File::MimeInfo::Rox.3 \
File::MimeInfo.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} <= 500503
IGNORE= "Perl 5.6 or newer required. Install lang/perl5 or lang/perl5.8 and try again."
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,2 @@
MD5 (File-MimeInfo-0.10.tar.gz) = 79c8d21705ce9d86a415275b8b2e6c52
SIZE (File-MimeInfo-0.10.tar.gz) = 16498

View file

@ -0,0 +1,13 @@
This module can be used to determine the mime type of a file. It
tries to implement the freedesktop specification for a shared
MIME database.
For this module shared-mime-info-spec 0.12 was used.
This package only uses the globs file. No real magic checking is
used. The File::MimeInfo::Magic package is provided for magic typing.
If you want to detemine the mimetype of data in a memory buffer
you should use File::MimeInfo::Magic in combination with IO::Scalar.
WWW: htto://search.cpan.org/dist/File-MimeInfo/

View file

@ -0,0 +1,9 @@
bin/mimetype
%%SITE_PERL%%/File/MimeInfo.pm
%%SITE_PERL%%/File/MimeInfo/Rox.pm
%%SITE_PERL%%/File/MimeInfo/Magic.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/MimeInfo/.packlist
@unexec rmdir %D/%%SITE_PERL%%/File/MimeInfo 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/File 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/MimeInfo 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/File 2>/dev/null || true