aboutsummaryrefslogtreecommitdiff
path: root/mail/p5-Email-MIME
diff options
context:
space:
mode:
authorLars Thegler <lth@FreeBSD.org>2004-08-29 16:17:22 +0000
committerLars Thegler <lth@FreeBSD.org>2004-08-29 16:17:22 +0000
commitd03042efd7fb6b1949cec988a7a696fc636eecc6 (patch)
treeba1095483f964274778833db69c393e12170352a /mail/p5-Email-MIME
parent0d2dc10b68c0ac4b84946094c5bad0391a48d349 (diff)
downloadports-d03042efd7fb6b1949cec988a7a696fc636eecc6.tar.gz
ports-d03042efd7fb6b1949cec988a7a696fc636eecc6.zip
Notes
Diffstat (limited to 'mail/p5-Email-MIME')
-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
4 files changed, 55 insertions, 0 deletions
diff --git a/mail/p5-Email-MIME/Makefile b/mail/p5-Email-MIME/Makefile
new file mode 100644
index 000000000000..475e227f26e3
--- /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 000000000000..23f6895bb4cb
--- /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 000000000000..d4b18fcc9e75
--- /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 000000000000..55ffdfb7bd47
--- /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