diff options
author | Lars Thegler <lth@FreeBSD.org> | 2004-07-26 21:37:23 +0000 |
---|---|---|
committer | Lars Thegler <lth@FreeBSD.org> | 2004-07-26 21:37:23 +0000 |
commit | 4408aa2cc14db18f5237bca996ab807ae988a9fd (patch) | |
tree | bd800625126fe0862f8ed1c2bf1d9fe46aae5908 | |
parent | Enable xslt_set_encoding and xslt_getopt functions. (diff) |
Add p5-Email-Abstract 1.0, unified interface to mail representations.
Notes
Notes:
svn path=/head/; revision=114811
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/p5-Email-Abstract/Makefile | 39 | ||||
-rw-r--r-- | mail/p5-Email-Abstract/distinfo | 2 | ||||
-rw-r--r-- | mail/p5-Email-Abstract/files/5.005-Makefile.PL | 7 | ||||
-rw-r--r-- | mail/p5-Email-Abstract/files/5.005-lib::Email::Abstract.pm | 14 | ||||
-rw-r--r-- | mail/p5-Email-Abstract/pkg-descr | 10 | ||||
-rw-r--r-- | mail/p5-Email-Abstract/pkg-plist | 10 |
7 files changed, 83 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index aa6855b3dfcf..a4aef55bd12b 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -220,6 +220,7 @@ SUBDIR += offlineimap SUBDIR += openwebmail SUBDIR += p3scan + SUBDIR += p5-Email-Abstract SUBDIR += p5-Email-Filter SUBDIR += p5-Email-Find SUBDIR += p5-Email-Folder diff --git a/mail/p5-Email-Abstract/Makefile b/mail/p5-Email-Abstract/Makefile new file mode 100644 index 000000000000..9f801afbea7a --- /dev/null +++ b/mail/p5-Email-Abstract/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: p5-Email-Abstract +# Date created: 2004-07-26 +# Whom: Lars Thegler <lth@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= Email-Abstract +PORTVERSION= 1.0 +CATEGORIES= mail perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Email +PKGNAMEPREFIX= p5- + +MAINTAINER= lth@FreeBSD.org +COMMENT= Unified interface to mail representations + +BUILD_DEPENDS= ${SITE_PERL}/Module/Pluggable.pm:${PORTSDIR}/devel/p5-Module-Pluggable \ + ${SITE_PERL}/Email/Simple.pm:${PORTSDIR}/mail/p5-Email-Simple +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= Email::Abstract.3 \ + Email::Abstract::EmailMIME.3 \ + Email::Abstract::EmailSimple.3 \ + Email::Abstract::MIMEEntity.3 \ + Email::Abstract::MailInternet.3 \ + Email::Abstract::MailMessage.3 + +.include <bsd.port.pre.mk> +.if ${PERL_LEVEL} <= 500504 +EXTRA_PATCHES= ${PATCHDIR}/5.005-Makefile.PL \ + ${PATCHDIR}/5.005-lib::Email::Abstract.pm + +post-patch: + @${RM} ${WRKSRC}/lib/Email/Abstract.pm.orig +.endif +.include <bsd.port.post.mk> diff --git a/mail/p5-Email-Abstract/distinfo b/mail/p5-Email-Abstract/distinfo new file mode 100644 index 000000000000..c17adcdc82bd --- /dev/null +++ b/mail/p5-Email-Abstract/distinfo @@ -0,0 +1,2 @@ +MD5 (Email-Abstract-1.0.tar.gz) = ed5f792c40511b23356cefeea22b0703 +SIZE (Email-Abstract-1.0.tar.gz) = 5940 diff --git a/mail/p5-Email-Abstract/files/5.005-Makefile.PL b/mail/p5-Email-Abstract/files/5.005-Makefile.PL new file mode 100644 index 000000000000..1c053aacb5b5 --- /dev/null +++ b/mail/p5-Email-Abstract/files/5.005-Makefile.PL @@ -0,0 +1,7 @@ +--- Makefile.PL.orig Mon Jul 26 20:28:38 2004 ++++ Makefile.PL Mon Jul 26 20:28:43 2004 +@@ -1,4 +1,3 @@ +-use 5.006; + use ExtUtils::MakeMaker; + # See lib/ExtUtils/MakeMaker.pm for details of how to influence + # the contents of the Makefile that is written. diff --git a/mail/p5-Email-Abstract/files/5.005-lib::Email::Abstract.pm b/mail/p5-Email-Abstract/files/5.005-lib::Email::Abstract.pm new file mode 100644 index 000000000000..4dfcba49e2a3 --- /dev/null +++ b/mail/p5-Email-Abstract/files/5.005-lib::Email::Abstract.pm @@ -0,0 +1,14 @@ +--- lib/Email/Abstract.pm.orig Mon Jul 26 20:32:24 2004 ++++ lib/Email/Abstract.pm Mon Jul 26 20:33:09 2004 +@@ -1,10 +1,9 @@ + package Email::Abstract; + use Carp; + use Email::Simple; +-use 5.006; + use strict; + use warnings; +-our $VERSION = '1.0'; ++use vars '$VERSION'; $VERSION = '1.0'; + use Module::Pluggable search_path => [ __PACKAGE__ ], require => 1; + my @plugins = __PACKAGE__->plugins(); # Requires them. + for my $func (qw(get_header get_body diff --git a/mail/p5-Email-Abstract/pkg-descr b/mail/p5-Email-Abstract/pkg-descr new file mode 100644 index 000000000000..be2654f2199f --- /dev/null +++ b/mail/p5-Email-Abstract/pkg-descr @@ -0,0 +1,10 @@ +Email::Abstract provides module writers with the ability to write +representation-independent mail handling code. For instance, in the +cases of Mail::Thread or Mail::ListDetector, a key part of the code +involves reading the headers from a mail object. Where previously +one would either have to specify the mail class required, or to +build a new object from scratch, Email::Abstract can be used to +perform certain simple operations on an object regardless of its +underlying representation. + +WWW: http://search.cpan.org/dist/Email-Abstract/ diff --git a/mail/p5-Email-Abstract/pkg-plist b/mail/p5-Email-Abstract/pkg-plist new file mode 100644 index 000000000000..fcbd80dbfe74 --- /dev/null +++ b/mail/p5-Email-Abstract/pkg-plist @@ -0,0 +1,10 @@ +%%SITE_PERL%%/Email/Abstract.pm +%%SITE_PERL%%/Email/Abstract/EmailMIME.pm +%%SITE_PERL%%/Email/Abstract/EmailSimple.pm +%%SITE_PERL%%/Email/Abstract/MIMEEntity.pm +%%SITE_PERL%%/Email/Abstract/MailInternet.pm +%%SITE_PERL%%/Email/Abstract/MailMessage.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email/Abstract/.packlist +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Email/Abstract +@unexec rmdir %D/%%SITE_PERL%%/Email/Abstract 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/Email 2>/dev/null || true |