Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Dec 2005 05:12:20 -0500 (EST)
From:      parv@pair.com
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/90229: New port: devel/p5-Data-Swap - Swap types & contents of two variables
Message-ID:  <20051211101220.B400DB540@default.chvlva.adelphia.net>
Resent-Message-ID: <200512111020.jBBAK31S063795@freefall.freebsd.org>

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

>Number:         90229
>Category:       ports
>Synopsis:       New port: devel/p5-Data-Swap - Swap types & contents of two variables
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 11 10:20:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Parv
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD holestein.holy.cow 5.4-STABLE FreeBSD 5.4-STABLE #10: Sun Nov 27 21:50:44 EST 2005 root@holestein.holy.cow:/work/obj/misc/src-5/sys/BOVINE-T42 i386


>Description:

Data::Swap (XS) Perl module allows to swap the contents of two
referenced variables, even if they have different types.  The main
application is to change the base type of an object after it has been
created.

This port is needed by yet to be added databases/p5-DBIx-Simple port;
coming up in next PR.

>How-To-Repeat:


>Fix:
# 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-Data-Swap
#	p5-Data-Swap/pkg-descr
#	p5-Data-Swap/Makefile
#	p5-Data-Swap/pkg-plist
#	p5-Data-Swap/distinfo
#
echo c - p5-Data-Swap
mkdir -p p5-Data-Swap > /dev/null 2>&1
echo x - p5-Data-Swap/pkg-descr
sed 's/^X//' >p5-Data-Swap/pkg-descr << 'END-of-p5-Data-Swap/pkg-descr'
XParaphrased from the Data:Swap's documentation  ...
X
XData::Swap (XS) module allows to swap the contents of two referenced
Xvariables, even if they have different types.  The main application is
Xto change the base type of an object after it has been created, for
Xexample for dynamic loading of data structures:
X
X      swap $self, bless $replacement, $newclass;
X
XWWW: http://search.cpan.org/dist/Data-Swap/
END-of-p5-Data-Swap/pkg-descr
echo x - p5-Data-Swap/Makefile
sed 's/^X//' >p5-Data-Swap/Makefile << 'END-of-p5-Data-Swap/Makefile'
X# New ports collection makefile for:	Data::Swap
X# Date created:				10 December 2005
X# Whom:					Parv <parv@pair.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Data-Swap
XPORTVERSION=	0.05
XCATEGORIES=	devel perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	Data
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	parv@pair.com
XCOMMENT=	XS module to swap the contents and types of referenced variables
X
XPERL_CONFIGURE=	yes
X
XMAN3=	Data::Swap.3
X
X.include <bsd.port.pre.mk>
X
X.if ${PERL_LEVEL} < 500600
XIGNORE=		need at least Perl 5.6; install lang/perl or lang/perl5.8
X.endif
X
X.include <bsd.port.post.mk>
END-of-p5-Data-Swap/Makefile
echo x - p5-Data-Swap/pkg-plist
sed 's/^X//' >p5-Data-Swap/pkg-plist << 'END-of-p5-Data-Swap/pkg-plist'
X%%SITE_PERL%%/%%PERL_ARCH%%/Data/Swap.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Swap/.packlist
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Swap/Swap.bs
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Swap/Swap.so
X@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Swap || true
X@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Data || true
END-of-p5-Data-Swap/pkg-plist
echo x - p5-Data-Swap/distinfo
sed 's/^X//' >p5-Data-Swap/distinfo << 'END-of-p5-Data-Swap/distinfo'
XMD5 (Data-Swap-0.05.tar.gz) = 899eb6d7ae9290a1deab514ea7db8ee7
XSHA256 (Data-Swap-0.05.tar.gz) = a2aa48f3f7b13e8a881cef0ff953083e49bcce00ea3b04381d1b022f14993b8e
XSIZE (Data-Swap-0.05.tar.gz) = 26172
END-of-p5-Data-Swap/distinfo
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



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