summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/Makefile1
-rw-r--r--mail/p5-Email-MIME/Makefile42
-rw-r--r--mail/p5-Email-MIME/distinfo2
-rw-r--r--mail/p5-Email-MIME/pkg-descr6
-rw-r--r--mail/p5-Email-MIME/pkg-plist5
5 files changed, 56 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index 4acd491..4ac2fa9 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -230,6 +230,7 @@
SUBDIR += p5-Email-FolderType
SUBDIR += p5-Email-LocalDelivery
SUBDIR += p5-Email-LocalDelivery-Ezmlm
+ SUBDIR += p5-Email-MIME
SUBDIR += p5-Email-MIME-ContentType
SUBDIR += p5-Email-MIME-Encodings
SUBDIR += p5-Email-Simple
diff --git a/mail/p5-Email-MIME/Makefile b/mail/p5-Email-MIME/Makefile
new file mode 100644
index 0000000..475e227
--- /dev/null
+++ b/mail/p5-Email-MIME/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: p5-Email-MIME
+# Date created: 2004-08-29
+# Whom: Lars Thegler <lth@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Email-MIME
+PORTVERSION= 1.8
+CATEGORIES= mail perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Email
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= lth@FreeBSD.org
+COMMENT= Easy MIME message parsing
+
+BUILD_DEPENDS= ${SITE_PERL}/Email/Simple.pm:${PORTSDIR}/mail/p5-Email-Simple \
+ ${SITE_PERL}/Email/MIME/Encodings.pm:${PORTSDIR}/mail/p5-Email-MIME-Encodings \
+ ${SITE_PERL}/Email/MIME/ContentType.pm:${PORTSDIR}/mail/p5-Email-MIME-ContentType \
+ ${SITE_PERL}/MIME/Types.pm:${PORTSDIR}/mail/p5-MIME-Types
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= Email::MIME.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500703
+BUILD_DEPENDS+= ${SITE_PERL}/MIME/Words.pm:${PORTSDIR}/mail/p5-MIME-Tools
+RUN_DEPENDS+= ${SITE_PERL}/MIME/Words.pm:${PORTSDIR}/mail/p5-MIME-Tools
+.endif
+
+.if ${PERL_LEVEL} <= 500503
+post-patch:
+ ${PERL} -pi -e '$$_ = "" if /require 5.006;/;' \
+ -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' \
+ ${WRKSRC}/MIME.pm
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/mail/p5-Email-MIME/distinfo b/mail/p5-Email-MIME/distinfo
new file mode 100644
index 0000000..23f6895
--- /dev/null
+++ b/mail/p5-Email-MIME/distinfo
@@ -0,0 +1,2 @@
+MD5 (Email-MIME-1.8.tar.gz) = 1ae0920cddea6a4f3ac664006a8613b4
+SIZE (Email-MIME-1.8.tar.gz) = 81972
diff --git a/mail/p5-Email-MIME/pkg-descr b/mail/p5-Email-MIME/pkg-descr
new file mode 100644
index 0000000..d4b18fc
--- /dev/null
+++ b/mail/p5-Email-MIME/pkg-descr
@@ -0,0 +1,6 @@
+This is an extension of the Email::Simple module, to handle MIME
+encoded messages. It takes a message as a string, splits it up into
+its constituent parts, and allows you access to various parts of
+the message. Headers are decoded from MIME encoding.
+
+WWW: http://search.cpan.org/dist/Email-MIME/
diff --git a/mail/p5-Email-MIME/pkg-plist b/mail/p5-Email-MIME/pkg-plist
new file mode 100644
index 0000000..55ffdfb
--- /dev/null
+++ b/mail/p5-Email-MIME/pkg-plist
@@ -0,0 +1,5 @@
+%%SITE_PERL%%/Email/MIME.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email/MIME/.packlist
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email/MIME 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Email 2>/dev/null || true
OpenPOWER on IntegriCloud