Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jul 2000 23:42:58 -0700 (PDT)
From:      kbyanc@posi.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/19730: new port: mail/p5-Mail-CClient
Message-ID:  <200007060642.XAA18599@gateway.posi.net>

next in thread | raw e-mail | index | archive | help

>Number:         19730
>Category:       ports
>Synopsis:       new port: mail/p5-Mail-CClient
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 05 23:50:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Kelly Yancey
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
>Environment:
>Description:

  This port depends on PR 19691.

  Kelly


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mail/p5-Mail-CClient
#	mail/p5-Mail-CClient/Makefile
#	mail/p5-Mail-CClient/files
#	mail/p5-Mail-CClient/files/md5
#	mail/p5-Mail-CClient/patches
#	mail/p5-Mail-CClient/patches/patch-aa
#	mail/p5-Mail-CClient/pkg
#	mail/p5-Mail-CClient/pkg/PLIST
#	mail/p5-Mail-CClient/pkg/DESCR
#	mail/p5-Mail-CClient/pkg/COMMENT
#
echo c - mail/p5-Mail-CClient
mkdir -p mail/p5-Mail-CClient > /dev/null 2>&1
echo x - mail/p5-Mail-CClient/Makefile
sed 's/^X//' >mail/p5-Mail-CClient/Makefile << 'END-of-mail/p5-Mail-CClient/Makefile'
X# New ports collection makefile for:	p5-Mail-CClient
X# Date created:				01 July 2000
X# Whom:	      				Kelly Yancey <kbyanc@posi.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		CClient
XPORTVERSION= 		1.0
XCATEGORIES=		mail perl5
XMASTER_SITES=		${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	Mail
XPKGNAMEPREFIX=		p5-
XDISTNAME=		Mail-Cclient-${PORTVERSION}
X
XMAINTAINER=		kbyanc@posi.net
X
XLIB_DEPENDS=		c-client4.7:${PORTSDIR}/mail/cclient
X
XUSE_PERL5=		yes
X
XMANPREFIX=		${PREFIX}/lib/perl5/${PERL_VERSION}
XMAN3=			Mail::Cclient.3
X
Xdo-configure:
X		@ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
X
X.include <bsd.port.mk>
END-of-mail/p5-Mail-CClient/Makefile
echo c - mail/p5-Mail-CClient/files
mkdir -p mail/p5-Mail-CClient/files > /dev/null 2>&1
echo x - mail/p5-Mail-CClient/files/md5
sed 's/^X//' >mail/p5-Mail-CClient/files/md5 << 'END-of-mail/p5-Mail-CClient/files/md5'
XMD5 (Mail-Cclient-1.0.tar.gz) = ec24ff4f71b2f1853e4bf9c5011e8290
END-of-mail/p5-Mail-CClient/files/md5
echo c - mail/p5-Mail-CClient/patches
mkdir -p mail/p5-Mail-CClient/patches > /dev/null 2>&1
echo x - mail/p5-Mail-CClient/patches/patch-aa
sed 's/^X//' >mail/p5-Mail-CClient/patches/patch-aa << 'END-of-mail/p5-Mail-CClient/patches/patch-aa'
X--- Makefile.PL.orig	Mon Jun  7 04:59:14 1999
X+++ Makefile.PL	Wed Jul  5 03:32:57 2000
X@@ -1,45 +1,10 @@
X use ExtUtils::MakeMaker;
X 
X-if (shift(@ARGV) =~ /CCLIENT_DIR=(.*)/) {
X-    $CCLIENT_DIR = $1;
X-} else {
X-    die "You need to specify the CCLIENT_DIR directory--read README\n";
X-}
X-
X-if (! -r "$CCLIENT_DIR/c-client.a") {
X-    die "CCLIENT_DIR $CCLIENT_DIR does not contain c-client.a\n";
X-}
X-#
X-# We want to turn Cclient.o (ours) plus the object files in the
X-# $CCLIENT_DIR/c-client.a archive into a shared object. Simply
X-# including both in the MakeMaker OBJECT list works fine for Linux
X-# but under Digital UNIX, the combination of its ar and "ld -shared"
X-# can't cope with simply "ar cr tmp.a Cclient.o .../c-client.a".
X-# To get around that look at the contents of the c-client.a archive
X-# and extract all .o files from it into the current directory. Then
X-# we set OBJECT to be our Cclient.o plus all of those. Blech.
X-#
X-
X-print "Examining archive file $CCLIENT_DIR/c-client.a...\n";
X-chomp(@contents = `ar t $CCLIENT_DIR/c-client.a`);
X-@objects = grep(/\.o$/, @contents);
X-print "Extracting object files from archive: ", join(", ", @objects), "\n";
X-system("ar", "x", "$CCLIENT_DIR/c-client.a", @objects);
X-my $err = $? >> 8;
X-if ($err) {
X-    print "Extraction failed: ar returned exit code $err\n",
X-	  "Please extract them manually into the current directory\n",
X-	  "edit Makefile.PL to remove this section of code and then rerun\n",
X-	  "    perl Makefile.PL\n";
X-    exit 1;
X-}
X-print "Extraction was apparently successful\n";
X-
X WriteMakefile(
X     NAME		=> "Mail::Cclient",
X     VERSION_FROM	=> "Cclient.pm",
X-    INC			=> "-I$CCLIENT_DIR",
X-    LIBS		=> ["-lc"],
X-    OBJECT		=> "Cclient.o @objects"
X+    INC			=> "-I$ENV{'PREFIX'}/include/c-client",
X+    LIBS		=> "-lc -L$ENV{'PREFIX'}/lib -lc-client4",
X+    OBJECT		=> "Cclient.o"
X );
X 
END-of-mail/p5-Mail-CClient/patches/patch-aa
echo c - mail/p5-Mail-CClient/pkg
mkdir -p mail/p5-Mail-CClient/pkg > /dev/null 2>&1
echo x - mail/p5-Mail-CClient/pkg/PLIST
sed 's/^X//' >mail/p5-Mail-CClient/pkg/PLIST << 'END-of-mail/p5-Mail-CClient/pkg/PLIST'
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/Mail/Cclient.pm
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Mail/Cclient/Cclient.so
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Mail/Cclient/Cclient.bs
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Mail/Cclient/.packlist
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Mail/Cclient
X
X
X
END-of-mail/p5-Mail-CClient/pkg/PLIST
echo x - mail/p5-Mail-CClient/pkg/DESCR
sed 's/^X//' >mail/p5-Mail-CClient/pkg/DESCR << 'END-of-mail/p5-Mail-CClient/pkg/DESCR'
XFrom the README:
X	Mail::Cclient gives access to mailboxes in many different formats
X	(including remote IMAP folders) via the c-client API. The c-client
X	library is the core library used by Pine and the University of
X	Washington IMAP daemon (written by Mark Crispin).
X
X  -Kelly
X   kbyanc@posi.net
END-of-mail/p5-Mail-CClient/pkg/DESCR
echo x - mail/p5-Mail-CClient/pkg/COMMENT
sed 's/^X//' >mail/p5-Mail-CClient/pkg/COMMENT << 'END-of-mail/p5-Mail-CClient/pkg/COMMENT'
XPerl interface to the c-client mailbox API
END-of-mail/p5-Mail-CClient/pkg/COMMENT
exit


>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007060642.XAA18599>