Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Aug 2004 03:12:36 +0800 (CST)
From:      Rong-En Fan <rafan@infor.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/70797: [NEW PORT] devel/p5-File-MimeInfo: Determine file type
Message-ID:  <200408211912.i7LJCatp055133@rafan.csie.org>
Resent-Message-ID: <200408211920.i7LJKNuB074499@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         70797
>Category:       ports
>Synopsis:       [NEW PORT] devel/p5-File-MimeInfo: Determine file type
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 21 19:20:22 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Rong-En Fan
>Release:        FreeBSD 5.2.1-RELEASE-p9 i386
>Organization:
NTU CSIE
>Environment:
System: FreeBSD rafan.csie.org 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #2: Mon Jul 19 03:22:42 CST 2004
>Description:
>From CPAN:

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.

==
This module is required by devel/svk 0.19.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- p5-File-MimeInfo-0.10.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-File-MimeInfo
#	p5-File-MimeInfo/Makefile
#	p5-File-MimeInfo/distinfo
#	p5-File-MimeInfo/pkg-descr
#	p5-File-MimeInfo/pkg-plist
#
echo c - p5-File-MimeInfo
mkdir -p p5-File-MimeInfo > /dev/null 2>&1
echo x - p5-File-MimeInfo/Makefile
sed 's/^X//' >p5-File-MimeInfo/Makefile << 'END-of-p5-File-MimeInfo/Makefile'
X# New ports collection makefile for:	devel/p5-File-MimeInfo
X# Date created:				Aug 21 2004
X# Whom:					Rong-En Fan <rafan@infor.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	File-MimeInfo
XPORTVERSION=	0.10
XCATEGORIES=	devel perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	../../authors/id/P/PA/PARDUS/${PORTNAME}
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	rafan@infor.org
XCOMMENT=	Determine file type
X
XBUILD_DEPENDS=	${SITE_PERL}/File/BaseDir.pm:${PORTSDIR}/devel/p5-File-BaseDir
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XPERL_CONFIGURE=	yes
X
XMAN1=		mimetype.1
XMAN3=		File::MimeInfo::Magic.3 \
X		File::MimeInfo::Rox.3 \
X		File::MimeInfo.3
X
X.include <bsd.port.pre.mk>
X
X.if ${PERL_LEVEL} < 500601
XBUILD_DEPENDS+=	${SITE_PREL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser
XRUN_DEPENDS+=	${SITE_PREL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser
X.endif
X
X.include <bsd.port.post.mk>
END-of-p5-File-MimeInfo/Makefile
echo x - p5-File-MimeInfo/distinfo
sed 's/^X//' >p5-File-MimeInfo/distinfo << 'END-of-p5-File-MimeInfo/distinfo'
XMD5 (File-MimeInfo-0.10.tar.gz) = 79c8d21705ce9d86a415275b8b2e6c52
XSIZE (File-MimeInfo-0.10.tar.gz) = 16498
END-of-p5-File-MimeInfo/distinfo
echo x - p5-File-MimeInfo/pkg-descr
sed 's/^X//' >p5-File-MimeInfo/pkg-descr << 'END-of-p5-File-MimeInfo/pkg-descr'
XThis module can be used to determine the mime type of a file. It
Xtries to implement the freedesktop specification for a shared
XMIME database.
X
XFor this module shared-mime-info-spec 0.12 was used.
X
XThis package only uses the globs file. No real magic checking is
Xused. The File::MimeInfo::Magic package is provided for magic typing.
X
XIf you want to detemine the mimetype of data in a memory buffer
Xyou should use File::MimeInfo::Magic in combination with IO::Scalar.
END-of-p5-File-MimeInfo/pkg-descr
echo x - p5-File-MimeInfo/pkg-plist
sed 's/^X//' >p5-File-MimeInfo/pkg-plist << 'END-of-p5-File-MimeInfo/pkg-plist'
Xbin/mimetype
X%%SITE_PERL%%/File/MimeInfo.pm
X%%SITE_PERL%%/File/MimeInfo/Rox.pm
X%%SITE_PERL%%/File/MimeInfo/Magic.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/MimeInfo/.packlist
X@unexec rmdir %D/%%SITE_PERL%%/File/MimeInfo 2>/dev/null || true
X@unexec rmdir %D/%%SITE_PERL%%/File 2>/dev/null || true
X@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/MimeInfo 2>/dev/null || true
X@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/File 2>/dev/null || true
END-of-p5-File-MimeInfo/pkg-plist
exit
--- p5-File-MimeInfo-0.10.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408211912.i7LJCatp055133>