From f45d46d2e4b5d0a68e823599b015b071d84f93ee Mon Sep 17 00:00:00 2001 From: jasper Date: Wed, 18 Nov 2009 19:07:45 +0000 Subject: [PATCH] import pear-MIME-Type 1.2.0 --- mail/pear-Mime-Type/Makefile | 17 +++++++++++++++++ mail/pear-Mime-Type/distinfo | 5 +++++ mail/pear-Mime-Type/pkg/DESCR | 9 +++++++++ mail/pear-Mime-Type/pkg/PLIST | 26 ++++++++++++++++++++++++++ 4 files changed, 57 insertions(+) create mode 100644 mail/pear-Mime-Type/Makefile create mode 100644 mail/pear-Mime-Type/distinfo create mode 100644 mail/pear-Mime-Type/pkg/DESCR create mode 100644 mail/pear-Mime-Type/pkg/PLIST diff --git a/mail/pear-Mime-Type/Makefile b/mail/pear-Mime-Type/Makefile new file mode 100644 index 00000000000..73537ea423f --- /dev/null +++ b/mail/pear-Mime-Type/Makefile @@ -0,0 +1,17 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/11/18 19:07:45 jasper Exp $ + +COMMENT= utility class for dealing with MIME types + +DISTNAME= MIME_Type-1.2.0 +PKGNAME= pear-${DISTNAME:S/_/-/} +CATEGORIES= mail + +MODULES= www/pear + +# PHP License 3.0 +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +.include diff --git a/mail/pear-Mime-Type/distinfo b/mail/pear-Mime-Type/distinfo new file mode 100644 index 00000000000..bc63deb8402 --- /dev/null +++ b/mail/pear-Mime-Type/distinfo @@ -0,0 +1,5 @@ +MD5 (MIME_Type-1.2.0.tgz) = YIBP+TYkSFUo20ae6XhMKw== +RMD160 (MIME_Type-1.2.0.tgz) = E6/NSM9T97Ii6tDdj6O13PQVPIg= +SHA1 (MIME_Type-1.2.0.tgz) = PVNEml9fjDZO/9J8n7GRvWCzepQ= +SHA256 (MIME_Type-1.2.0.tgz) = qCUR0ZqRr7necEFKE1AGONXQHufSCfFx4GMWWJDFSZY= +SIZE (MIME_Type-1.2.0.tgz) = 11581 diff --git a/mail/pear-Mime-Type/pkg/DESCR b/mail/pear-Mime-Type/pkg/DESCR new file mode 100644 index 00000000000..4c7605dc83c --- /dev/null +++ b/mail/pear-Mime-Type/pkg/DESCR @@ -0,0 +1,9 @@ +Provide functionality for dealing with MIME types. +* Parse MIME type. +* Supports full RFC2045 specification. +* Many utility functions for working with and determining info + about types. +* Most functions can be called statically. +* Autodetect a files mime-type, either with fileinfo extension, + mime_magic extension, the file command or an in-built mapping + list. diff --git a/mail/pear-Mime-Type/pkg/PLIST b/mail/pear-Mime-Type/pkg/PLIST new file mode 100644 index 00000000000..434705a19f9 --- /dev/null +++ b/mail/pear-Mime-Type/pkg/PLIST @@ -0,0 +1,26 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/11/18 19:07:45 jasper Exp $ +@group daemon +lib/ +lib/php/ +pear/lib/.registry/mime_type.reg +pear/lib/MIME/ +pear/lib/MIME/Type/ +pear/lib/MIME/Type.php +pear/lib/MIME/Type/Extension.php +pear/lib/MIME/Type/Parameter.php +pear/lib/docs/ +pear/lib/docs/examples/ +pear/lib/docs/examples/example.php +pear/tests/MIME_Type/ +pear/tests/MIME_Type/tests/ +pear/tests/MIME_Type/tests/AllTests.php +pear/tests/MIME_Type/tests/MIME_Type_ExtensionTest.php +pear/tests/MIME_Type/tests/TypeTest.php +pear/tests/MIME_Type/tests/files/ +pear/tests/MIME_Type/tests/files/example.bmp +pear/tests/MIME_Type/tests/files/example.gif +pear/tests/MIME_Type/tests/files/example.jpg +pear/tests/MIME_Type/tests/files/example.png +pear/tests/MIME_Type/tests/files/example.txt +pear/tests/MIME_Type/tests/files/example.txt.bz2 +pear/tests/MIME_Type/tests/files/example.txt.gz