Bug 36815 - new port: net/p5-Spread-Session
Summary: new port: net/p5-Spread-Session
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-06 16:00 UTC by Joshua Goodall
Modified: 2002-05-24 13:54 UTC (History)
0 users

See Also:


Attachments
file.shar (4.44 KB, text/plain)
2002-04-06 16:00 UTC, Joshua Goodall
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Goodall 2002-04-06 16:00:06 UTC
Spread::Session is an object-oriented Perl wrapper for the Spread
messaging toolkit.

Committer please note: that this module is not currently carried
in CPAN /modules/by-module/.  If acceptable, I'd appreciate a
MASTER_SITE_LOCAL subdir until that changes.

Joshua
Comment 1 Joshua Goodall 2002-05-24 13:21:26 UTC
I just tested this with a 4.6-PRERELEASE box and it worked.
Here's an updated sharachive (with tiny wording nit).

Joshua


# 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:
#
#	p5-Spread-Session
#	p5-Spread-Session/Makefile
#	p5-Spread-Session/files
#	p5-Spread-Session/files/patch-Makefile.PL
#	p5-Spread-Session/files/patch-Session.pm
#	p5-Spread-Session/pkg-comment
#	p5-Spread-Session/pkg-plist
#	p5-Spread-Session/distinfo
#	p5-Spread-Session/pkg-descr
#
echo c - p5-Spread-Session
mkdir -p p5-Spread-Session > /dev/null 2>&1
echo x - p5-Spread-Session/Makefile
sed 's/^X//' >p5-Spread-Session/Makefile << 'END-of-p5-Spread-Session/Makefile'
X# New ports collection makefile for:	p5-Spread-Session
X# Date created:				May 24th 2002
X# Whom:	      				Joshua Goodall <joshua@roughtrade.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Spread-Session
XPORTVERSION=	0.2
XCATEGORIES=	net perl5
X#MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITES=	http://www.roughtrade.net/distfiles/
XMASTER_SITE_SUBDIR=	Spread
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	joshua@roughtrade.net
X
XBUILD_DEPENDS=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Spread.pm:${PORTSDIR}/net/spread
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XPERL_CONFIGURE=	yes
X
XMANPREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
XMAN3=		Spread::Session.3
X
X.include <bsd.port.mk>
END-of-p5-Spread-Session/Makefile
echo c - p5-Spread-Session/files
mkdir -p p5-Spread-Session/files > /dev/null 2>&1
echo x - p5-Spread-Session/files/patch-Makefile.PL
sed 's/^X//' >p5-Spread-Session/files/patch-Makefile.PL << 'END-of-p5-Spread-Session/files/patch-Makefile.PL'
X--- Makefile.PL.orig	Mon Mar 25 08:47:50 2002
X+++ Makefile.PL	Wed Apr  3 01:03:40 2002
X@@ -4,10 +4,6 @@
X WriteMakefile(
X     'NAME'		=> 'Spread::Session',
X     'VERSION_FROM'	=> 'Session.pm', # finds $VERSION
X-    'PREREQ_PM'		=> {
X-			    Log::Channel => 0.4,
X-			    Event => 0.85, # for test cases
X-			   },
X     ($] >= 5.005 ?    ## Add these new keywords supported since 5.005
X       (ABSTRACT_FROM => 'Session.pm', # retrieve abstract from module
X        AUTHOR     => 'Jason W. May <jmay@pobox.com>') : ()),
END-of-p5-Spread-Session/files/patch-Makefile.PL
echo x - p5-Spread-Session/files/patch-Session.pm
sed 's/^X//' >p5-Spread-Session/files/patch-Session.pm << 'END-of-p5-Spread-Session/files/patch-Session.pm'
X--- Session.pm.orig	Sat Apr  6 16:12:24 2002
X+++ Session.pm	Sat Apr  6 16:13:03 2002
X@@ -46,7 +46,6 @@
X use strict;
X #use warnings;
X use Carp;
X-use Log::Channel;
X use Spread;
X 
X use vars qw($VERSION);
X@@ -55,9 +54,17 @@
X my $DEFAULT_TIMEOUT = 5;
X 
X BEGIN {
X-    my $log = new Log::Channel;
X+    my ($log, $msglog);
X+    if (defined eval "require Log::Channel") {
X+	$log = new Log::Channel;
X+	$msglog = new Log::Channel("message");
X+    } else {
X+	# no log::channel, disable all the logging
X+	$log = sub {};
X+	$msglog = sub {};
X+    }
X+
X     sub sslog { $log->(@_) }
X-    my $msglog = new Log::Channel("message");
X     sub msglog { $msglog->(@_) }
X }
X 
END-of-p5-Spread-Session/files/patch-Session.pm
echo x - p5-Spread-Session/pkg-comment
sed 's/^X//' >p5-Spread-Session/pkg-comment << 'END-of-p5-Spread-Session/pkg-comment'
XPerl OO wrapper for Spread messaging toolkit
END-of-p5-Spread-Session/pkg-comment
echo x - p5-Spread-Session/pkg-plist
sed 's/^X//' >p5-Spread-Session/pkg-plist << 'END-of-p5-Spread-Session/pkg-plist'
Xlib/perl5/site_perl/%%PERL_VER%%/Spread/Session.pm
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Spread/Session/.packlist
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Spread/Session
X@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Spread 2>/dev/null || true
X@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/Spread 2>/dev/null || true
END-of-p5-Spread-Session/pkg-plist
echo x - p5-Spread-Session/distinfo
sed 's/^X//' >p5-Spread-Session/distinfo << 'END-of-p5-Spread-Session/distinfo'
XMD5 (Spread-Session-0.2.tar.gz) = 1ac0f4f0beb0bf31e3538c287dc8903e
END-of-p5-Spread-Session/distinfo
echo x - p5-Spread-Session/pkg-descr
sed 's/^X//' >p5-Spread-Session/pkg-descr << 'END-of-p5-Spread-Session/pkg-descr'
XThis is a wrapper module for Spread.pm (part of the standard Spread
Xdistribution), providing an object-oriented interface to the Spread
Xmessaging toolkit instead of Spread.pm's more direct interface
Xto the C API's.
X
X- Joshua Goodall <joshua@roughtrade.net>
END-of-p5-Spread-Session/pkg-descr
exit
Comment 2 Ying-Chieh Liao freebsd_committer freebsd_triage 2002-05-24 13:54:47 UTC
State Changed
From-To: open->closed

committed, thanks