diff options
author | kbyanc <kbyanc@FreeBSD.org> | 2000-07-14 17:39:55 +0800 |
---|---|---|
committer | kbyanc <kbyanc@FreeBSD.org> | 2000-07-14 17:39:55 +0800 |
commit | 0ca6ea5e121238bc459f3446f325640d364906e6 (patch) | |
tree | f7ca476a086a09a8c4ba1816ed131d79211d1cb1 /mail | |
parent | ba5160c6ae934d3a9e1d4f61941ce619651c3909 (diff) | |
download | freebsd-ports-gnome-0ca6ea5e121238bc459f3446f325640d364906e6.tar.gz freebsd-ports-gnome-0ca6ea5e121238bc459f3446f325640d364906e6.tar.zst freebsd-ports-gnome-0ca6ea5e121238bc459f3446f325640d364906e6.zip |
New port: p5-Mail-CClient, a perl interface to the cclient mailbox library.
PR: 19730
Submitted by: Kelly Yancey
Reviewed by: will
Diffstat (limited to 'mail')
-rw-r--r-- | mail/p5-Mail-CClient/Makefile | 28 | ||||
-rw-r--r-- | mail/p5-Mail-CClient/distinfo | 1 | ||||
-rw-r--r-- | mail/p5-Mail-CClient/files/patch-aa | 51 | ||||
-rw-r--r-- | mail/p5-Mail-CClient/pkg-comment | 1 | ||||
-rw-r--r-- | mail/p5-Mail-CClient/pkg-descr | 8 | ||||
-rw-r--r-- | mail/p5-Mail-CClient/pkg-plist | 8 |
6 files changed, 97 insertions, 0 deletions
diff --git a/mail/p5-Mail-CClient/Makefile b/mail/p5-Mail-CClient/Makefile new file mode 100644 index 000000000000..d51b2fd87e4d --- /dev/null +++ b/mail/p5-Mail-CClient/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: p5-Mail-CClient +# Date created: 01 July 2000 +# Whom: Kelly Yancey <kbyanc@posi.net> +# +# $FreeBSD$ +# + +PORTNAME= CClient +PORTVERSION= 1.0 +CATEGORIES= mail perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Mail +PKGNAMEPREFIX= p5- +DISTNAME= Mail-Cclient-${PORTVERSION} + +MAINTAINER= kbyanc@posi.net + +LIB_DEPENDS= c-client4.7:${PORTSDIR}/mail/cclient + +USE_PERL5= yes + +MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} +MAN3= Mail::Cclient.3 + +do-configure: + @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL + +.include <bsd.port.mk> diff --git a/mail/p5-Mail-CClient/distinfo b/mail/p5-Mail-CClient/distinfo new file mode 100644 index 000000000000..8056e2e85d96 --- /dev/null +++ b/mail/p5-Mail-CClient/distinfo @@ -0,0 +1 @@ +MD5 (Mail-Cclient-1.0.tar.gz) = ec24ff4f71b2f1853e4bf9c5011e8290 diff --git a/mail/p5-Mail-CClient/files/patch-aa b/mail/p5-Mail-CClient/files/patch-aa new file mode 100644 index 000000000000..20292cd4c1f7 --- /dev/null +++ b/mail/p5-Mail-CClient/files/patch-aa @@ -0,0 +1,51 @@ +--- Makefile.PL.orig Mon Jun 7 04:59:14 1999 ++++ Makefile.PL Wed Jul 5 03:32:57 2000 +@@ -1,45 +1,10 @@ + use ExtUtils::MakeMaker; + +-if (shift(@ARGV) =~ /CCLIENT_DIR=(.*)/) { +- $CCLIENT_DIR = $1; +-} else { +- die "You need to specify the CCLIENT_DIR directory--read README\n"; +-} +- +-if (! -r "$CCLIENT_DIR/c-client.a") { +- die "CCLIENT_DIR $CCLIENT_DIR does not contain c-client.a\n"; +-} +-# +-# We want to turn Cclient.o (ours) plus the object files in the +-# $CCLIENT_DIR/c-client.a archive into a shared object. Simply +-# including both in the MakeMaker OBJECT list works fine for Linux +-# but under Digital UNIX, the combination of its ar and "ld -shared" +-# can't cope with simply "ar cr tmp.a Cclient.o .../c-client.a". +-# To get around that look at the contents of the c-client.a archive +-# and extract all .o files from it into the current directory. Then +-# we set OBJECT to be our Cclient.o plus all of those. Blech. +-# +- +-print "Examining archive file $CCLIENT_DIR/c-client.a...\n"; +-chomp(@contents = `ar t $CCLIENT_DIR/c-client.a`); +-@objects = grep(/\.o$/, @contents); +-print "Extracting object files from archive: ", join(", ", @objects), "\n"; +-system("ar", "x", "$CCLIENT_DIR/c-client.a", @objects); +-my $err = $? >> 8; +-if ($err) { +- print "Extraction failed: ar returned exit code $err\n", +- "Please extract them manually into the current directory\n", +- "edit Makefile.PL to remove this section of code and then rerun\n", +- " perl Makefile.PL\n"; +- exit 1; +-} +-print "Extraction was apparently successful\n"; +- + WriteMakefile( + NAME => "Mail::Cclient", + VERSION_FROM => "Cclient.pm", +- INC => "-I$CCLIENT_DIR", +- LIBS => ["-lc"], +- OBJECT => "Cclient.o @objects" ++ INC => "-I$ENV{'PREFIX'}/include/c-client", ++ LIBS => "-lc -L$ENV{'PREFIX'}/lib -lc-client4", ++ OBJECT => "Cclient.o" + ); + diff --git a/mail/p5-Mail-CClient/pkg-comment b/mail/p5-Mail-CClient/pkg-comment new file mode 100644 index 000000000000..dc198846257c --- /dev/null +++ b/mail/p5-Mail-CClient/pkg-comment @@ -0,0 +1 @@ +Perl interface to the c-client mailbox API diff --git a/mail/p5-Mail-CClient/pkg-descr b/mail/p5-Mail-CClient/pkg-descr new file mode 100644 index 000000000000..dd3a6150b61b --- /dev/null +++ b/mail/p5-Mail-CClient/pkg-descr @@ -0,0 +1,8 @@ +From the README: + Mail::Cclient gives access to mailboxes in many different formats + (including remote IMAP folders) via the c-client API. The c-client + library is the core library used by Pine and the University of + Washington IMAP daemon (written by Mark Crispin). + + -Kelly + kbyanc@posi.net diff --git a/mail/p5-Mail-CClient/pkg-plist b/mail/p5-Mail-CClient/pkg-plist new file mode 100644 index 000000000000..b3e7cb24e494 --- /dev/null +++ b/mail/p5-Mail-CClient/pkg-plist @@ -0,0 +1,8 @@ +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Mail/Cclient.pm +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Mail/Cclient/Cclient.so +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Mail/Cclient/Cclient.bs +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Mail/Cclient/.packlist +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Mail/Cclient + + + |