Paraphrased from the Data:Swap's documentation ...

Data::Swap (XS) 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, for
example for dynamic loading of data structures:

      swap $self, bless $replacement, $newclass;

WWW: http://search.cpan.org/dist/Data-Swap/

PR:		ports/90229
Submitted by:	Parv <parv@pair.org>
This commit is contained in:
Erwin Lansing 2005-12-11 12:40:51 +00:00
parent 11d8fea60a
commit d3d48e1a43
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=150870
5 changed files with 49 additions and 0 deletions

View file

@ -799,6 +799,7 @@
SUBDIR += p5-Data-Serializer
SUBDIR += p5-Data-ShowTable
SUBDIR += p5-Data-Stag
SUBDIR += p5-Data-Swap
SUBDIR += p5-Data-Table
SUBDIR += p5-Data-Taxonomy-Tags
SUBDIR += p5-Data-TemporaryBag

View file

@ -0,0 +1,28 @@
# New ports collection makefile for: Data::Swap
# Date created: 10 December 2005
# Whom: Parv <parv@pair.org>
#
# $FreeBSD$
#
PORTNAME= Data-Swap
PORTVERSION= 0.05
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Data
PKGNAMEPREFIX= p5-
MAINTAINER= parv@pair.com
COMMENT= XS module to swap the contents and types of referenced variables
PERL_CONFIGURE= yes
MAN3= Data::Swap.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= need at least Perl 5.6; install lang/perl or lang/perl5.8
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,3 @@
MD5 (Data-Swap-0.05.tar.gz) = 899eb6d7ae9290a1deab514ea7db8ee7
SHA256 (Data-Swap-0.05.tar.gz) = a2aa48f3f7b13e8a881cef0ff953083e49bcce00ea3b04381d1b022f14993b8e
SIZE (Data-Swap-0.05.tar.gz) = 26172

View file

@ -0,0 +1,10 @@
Paraphrased from the Data:Swap's documentation ...
Data::Swap (XS) 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, for
example for dynamic loading of data structures:
swap $self, bless $replacement, $newclass;
WWW: http://search.cpan.org/dist/Data-Swap/

View file

@ -0,0 +1,7 @@
%%SITE_PERL%%/%%PERL_ARCH%%/Data/Swap.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Swap/.packlist
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Swap/Swap.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Swap/Swap.so
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Swap
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data || true
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/Data || true