1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00

- Add p5-Media-Type-Simple 0.02

Media::Type::Simple gives a simple functions for obtaining common file
extensions from media types, and from obtaining media types from file
extensions.

It is also relaxed with respect to having multiple media types associated with a
file extension, or multiple extensions associated with a media type, and it
includes media types for encodings such as gzip. It is defined this way in the
default data, but this does not meet your needs, then you can have it use a
system file (e.g. /etc/mime.types) or custom data.

By default, there is a functional interface, although you can also use an
object-oriented inteface. (Different objects will not share the same data.)

WWW: http://search.cpan.org/dist/Media-Type-Simple/
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-02-01 21:29:38 +00:00
parent 7c36bc2298
commit 3e5240565e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=311398
5 changed files with 54 additions and 0 deletions

View File

@ -2198,6 +2198,7 @@
SUBDIR += p5-Mac-FileSpec-Unixish
SUBDIR += p5-Mac-PropertyList
SUBDIR += p5-Make
SUBDIR += p5-Media-Type-Simple
SUBDIR += p5-Memoize
SUBDIR += p5-Memoize-ExpireLRU
SUBDIR += p5-Meta-Builder

View File

@ -0,0 +1,27 @@
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= Media-Type-Simple
PORTVERSION= 0.02
CATEGORIES= devel perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:RRWO
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= MIME Media Types and their file extensions
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
BUILD_DEPENDS= p5-Sub-Exporter>=0:${PORTSDIR}/devel/p5-Sub-Exporter
RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-Test-Pod>=1.22:${PORTSDIR}/devel/p5-Test-Pod \
p5-Test-Pod-Coverage>=1.08:${PORTSDIR}/devel/p5-Test-Pod-Coverage
PERL_CONFIGURE= yes
MAN3= MIME::Type::Simple.3 \
Media::Type::Simple.3
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (Media-Type-Simple-0.02.tar.gz) = 050f52708439a99f11d73a29a1f0ae9f180c347de767c4730bd54d70f71d0737
SIZE (Media-Type-Simple-0.02.tar.gz) = 10792

View File

@ -0,0 +1,14 @@
Media::Type::Simple gives a simple functions for obtaining common file
extensions from media types, and from obtaining media types from file
extensions.
It is also relaxed with respect to having multiple media types associated with a
file extension, or multiple extensions associated with a media type, and it
includes media types for encodings such as gzip. It is defined this way in the
default data, but this does not meet your needs, then you can have it use a
system file (e.g. /etc/mime.types) or custom data.
By default, there is a functional interface, although you can also use an
object-oriented inteface. (Different objects will not share the same data.)
WWW: http://search.cpan.org/dist/Media-Type-Simple/

View File

@ -0,0 +1,10 @@
%%SITE_PERL%%/MIME/Type/Simple.pm
%%SITE_PERL%%/Media/Type/Simple.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Media/Type/Simple/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Media/Type/Simple
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Media/Type
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Media
@dirrmtry %%SITE_PERL%%/Media/Type
@dirrmtry %%SITE_PERL%%/Media
@dirrmtry %%SITE_PERL%%/MIME/Type
@dirrmtry %%SITE_PERL%%/MIME