- Add new port devel/p5-Data-Dumper-Simple

- This module allow the user to dump variables in a Data::Dumper format.

PR:		ports/71508
Submitted by:	clsung
Approved by:	co-mentor (vanilla)
This commit is contained in:
Cheng-Lung Sung 2004-10-12 13:00:19 +00:00
parent 3e9ac88a24
commit 75b09fa110
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119003
5 changed files with 59 additions and 0 deletions

View File

@ -678,6 +678,7 @@
SUBDIR += p5-Data-Dump-Streamer
SUBDIR += p5-Data-DumpXML
SUBDIR += p5-Data-Dumper
SUBDIR += p5-Data-Dumper-Simple
SUBDIR += p5-Data-Flow
SUBDIR += p5-Data-HexDump
SUBDIR += p5-Data-Hexdumper

View File

@ -0,0 +1,32 @@
# New ports collection makefile for: p5-Data-Dumper-Simple
# Date created: Sep 9 2004
# Whom: clsung
#
# $FreeBSD$
#
PORTNAME= Data-Dumper-Simple
PORTVERSION= 0.06
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Data
PKGNAMEPREFIX= p5-
MAINTAINER= clsung@FreeBSD.org
COMMENT= Easily dump variables with names
PERL_CONFIGURE= yes
MAN3= Data::Dumper::Simple.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500805
BUILD_DEPENDS+= ${SITE_PERL}/Filter/Simple.pm:${PORTSDIR}/textproc/p5-Filter-Simple
RUN_DEPENDS+= ${BUILD_DEPENDS}
.endif
.if ${PERL_LEVEL} < 500601
IGNORE="Need at least perl 5.6.1 to build"
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
MD5 (Data-Dumper-Simple-0.06.tar.gz) = cb2ab608bdbe289ad6db4baf4fa84ae7
SIZE (Data-Dumper-Simple-0.06.tar.gz) = 6356

View File

@ -0,0 +1,17 @@
This module allow the user to dump variables in a Data::Dumper format.
Unlike the default behavior of Data::Dumper, the variables are named
(instead of $VAR1, $VAR2, etc.) Data::Dumper provides an extended
interface that allows the programmer to name the variables, but this
interface requires a lot of typing and is prone to tyops (sic). This
module fixes that.
Data::Dumper::Simple is actually a source filter that replaces all
instances of Dumper($some, @args) in your code with a call to
Data::Dumper->Dump(). You can use the one function provided to make
dumping variables for debugging a trivial task.
Note that this is primarily a debugging tool. Data::Dumper offers a
bit more than that, so don't expect this module to be more than it is.
WWW: http://search.cpan.org/dist/Data-Dumper-Simple/

View File

@ -0,0 +1,7 @@
%%SITE_PERL%%/Data/Dumper/Simple.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Dumper/Simple/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Dumper/Simple
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data/Dumper 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Data 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/Data/Dumper 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/Data 2>/dev/null || true