From 58e32760fa0214ebb2322a36e59dddb87fae5edc Mon Sep 17 00:00:00 2001 From: lth Date: Sun, 29 Aug 2004 16:17:22 +0000 Subject: Add p5-Email-MIME 1.8, easy MIME message parsing. --- mail/p5-Email-MIME/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++ mail/p5-Email-MIME/distinfo | 2 ++ mail/p5-Email-MIME/pkg-descr | 6 ++++++ mail/p5-Email-MIME/pkg-plist | 5 +++++ 4 files changed, 55 insertions(+) create mode 100644 mail/p5-Email-MIME/Makefile create mode 100644 mail/p5-Email-MIME/distinfo create mode 100644 mail/p5-Email-MIME/pkg-descr create mode 100644 mail/p5-Email-MIME/pkg-plist (limited to 'mail/p5-Email-MIME') 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 +# +# $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 + +.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 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 -- cgit