freebsd-ports/devel/p5-Data-Clone/Makefile
Sunpoet Po-Chuan Hsieh f3b49c22f6 - Add p5-Data-Clone 0.003
Data::Clone does data cloning, i.e. copies things recursively. This is smart so
that it works with not only non-blessed references, but also with blessed
references (i.e. objects). When clone() finds an object, it calls a clone method
of the object if the object has a clone, otherwise it makes a surface copy of
the object. That is, this module does polymorphic data cloning.

Although there are several modules on CPAN which can clone data, this module has
a different cloning policy from almost all of them. See "Cloning policy" and
"Comparison to other cloning modules" [1] for details.

[1] http://search.cpan.org/dist/Data-Clone/lib/Data/Clone.pm

WWW: http://search.cpan.org/dist/Data-Clone/
2011-10-04 18:58:31 +00:00

36 lines
932 B
Makefile

# New ports collection makefile for: p5-Data-Clone
# Date created: 2011-10-04
# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Data-Clone
PORTVERSION= 0.003
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Polymorphic data cloning
TEST_DEPENDS= p5-Test-Requires>=0.03:${PORTSDIR}/devel/p5-Test-Requires
PERL_CONFIGURE= yes
MAN3= Data::Clone.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501001
BUILD_DEPENDS+= p5-Devel-PPPort>=3.19:${PORTSDIR}/devel/p5-Devel-PPPort
RUN_DEPENDS+= p5-Devel-PPPort>=3.19:${PORTSDIR}/devel/p5-Devel-PPPort
TEST_DEPENDS+= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple
.endif
.if ${PERL_LEVEL} < 501200
BUILD_DEPENDS+= p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
RUN_DEPENDS+= p5-ExtUtils-ParseXS>=2.21:${PORTSDIR}/devel/p5-ExtUtils-ParseXS
.endif
.include <bsd.port.post.mk>