diff options
author | lth <lth@FreeBSD.org> | 2004-08-30 00:17:22 +0800 |
---|---|---|
committer | lth <lth@FreeBSD.org> | 2004-08-30 00:17:22 +0800 |
commit | 58e32760fa0214ebb2322a36e59dddb87fae5edc (patch) | |
tree | 6c9fc4b44b997744189a6a24451dd01556e7c2e5 /mail | |
parent | 9eea915ec9f949fef2d87ebb64547cd617cb012f (diff) | |
download | freebsd-ports-gnome-58e32760fa0214ebb2322a36e59dddb87fae5edc.tar.gz freebsd-ports-gnome-58e32760fa0214ebb2322a36e59dddb87fae5edc.tar.zst freebsd-ports-gnome-58e32760fa0214ebb2322a36e59dddb87fae5edc.zip |
Add p5-Email-MIME 1.8, easy MIME message parsing.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/p5-Email-MIME/Makefile | 42 | ||||
-rw-r--r-- | mail/p5-Email-MIME/distinfo | 2 | ||||
-rw-r--r-- | mail/p5-Email-MIME/pkg-descr | 6 | ||||
-rw-r--r-- | mail/p5-Email-MIME/pkg-plist | 5 |
5 files changed, 56 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index 4acd4916758c..4ac2fa9e2bb2 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 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 |