aboutsummaryrefslogtreecommitdiff
path: root/mail/p5-Email-MIME-Attachment-Stripper
diff options
context:
space:
mode:
authorLars Thegler <lth@FreeBSD.org>2004-08-29 22:47:35 +0000
committerLars Thegler <lth@FreeBSD.org>2004-08-29 22:47:35 +0000
commitabab1efce8ef424338aae5a47e4aa4c59d0c1be3 (patch)
treec880dfa2f735084a2d7a439eeeab7a9a8656b9a8 /mail/p5-Email-MIME-Attachment-Stripper
parent2b5eb8b857dc3710fa16aa32c41b9747a6ce0e03 (diff)
downloadports-abab1efce8ef424338aae5a47e4aa4c59d0c1be3.tar.gz
ports-abab1efce8ef424338aae5a47e4aa4c59d0c1be3.zip
Notes
Diffstat (limited to 'mail/p5-Email-MIME-Attachment-Stripper')
-rw-r--r--mail/p5-Email-MIME-Attachment-Stripper/Makefile34
-rw-r--r--mail/p5-Email-MIME-Attachment-Stripper/distinfo2
-rw-r--r--mail/p5-Email-MIME-Attachment-Stripper/pkg-descr3
-rw-r--r--mail/p5-Email-MIME-Attachment-Stripper/pkg-plist9
4 files changed, 48 insertions, 0 deletions
diff --git a/mail/p5-Email-MIME-Attachment-Stripper/Makefile b/mail/p5-Email-MIME-Attachment-Stripper/Makefile
new file mode 100644
index 000000000000..6795c4201179
--- /dev/null
+++ b/mail/p5-Email-MIME-Attachment-Stripper/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: p5-Email-MIME-Attachment-Stripper
+# Date created: 2004-08-30
+# Whom: Lars Thegler <lth@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Email-MIME-Attachment-Stripper
+PORTVERSION= 1.3
+CATEGORIES= mail perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= Email
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= lth@FreeBSD.org
+COMMENT= Strip the attachments from a mail
+
+BUILD_DEPENDS= ${SITE_PERL}/Email/MIME.pm:${PORTSDIR}/mail/p5-Email-MIME \
+ ${SITE_PERL}/Email/MIME/Encodings.pm:${PORTSDIR}/mail/p5-Email-MIME-Encodings
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= Email::MIME::Attachment::Stripper.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} <= 500503
+post-patch:
+ ${PERL} -pi -e 's/^our\s+([\$$\@\%]\w+)/use vars qw($$1); $$1/;' \
+ ${WRKSRC}/lib/Email/MIME/Attachment/Stripper.pm
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/mail/p5-Email-MIME-Attachment-Stripper/distinfo b/mail/p5-Email-MIME-Attachment-Stripper/distinfo
new file mode 100644
index 000000000000..e1cd8f0900f5
--- /dev/null
+++ b/mail/p5-Email-MIME-Attachment-Stripper/distinfo
@@ -0,0 +1,2 @@
+MD5 (Email-MIME-Attachment-Stripper-1.3.tar.gz) = 0f554d9f0d941425cb36dd463088f812
+SIZE (Email-MIME-Attachment-Stripper-1.3.tar.gz) = 14805
diff --git a/mail/p5-Email-MIME-Attachment-Stripper/pkg-descr b/mail/p5-Email-MIME-Attachment-Stripper/pkg-descr
new file mode 100644
index 000000000000..44af0f654c2c
--- /dev/null
+++ b/mail/p5-Email-MIME-Attachment-Stripper/pkg-descr
@@ -0,0 +1,3 @@
+Given a Email::MIME object, detach all attachments from the message.
+
+WWW: http://search.cpan.org/dist/Email-MIME-Attachment-Stripper/
diff --git a/mail/p5-Email-MIME-Attachment-Stripper/pkg-plist b/mail/p5-Email-MIME-Attachment-Stripper/pkg-plist
new file mode 100644
index 000000000000..48891749897d
--- /dev/null
+++ b/mail/p5-Email-MIME-Attachment-Stripper/pkg-plist
@@ -0,0 +1,9 @@
+%%SITE_PERL%%/Email/MIME/Attachment/Stripper.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email/MIME/Attachment/Stripper/.packlist
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email/MIME/Attachment/Stripper 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Email/MIME/Attachment 2>/dev/null || true
+@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/MIME/Attachment 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Email/MIME 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Email 2>/dev/null || true