Import p5-constant-def-0.01 as devel/p5-constant-def.

Define compile-time constant only if it wasn't previously defined elsewhere. The
main reason is to use for debugging constants, since there is no way to change
the value, except by editing the source.
This commit is contained in:
rodent 2013-07-06 00:39:59 +00:00
parent 53780ab7ea
commit 1cba9e5c88
4 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,3 @@
Define compile-time constant only if it wasn't previously defined elsewhere. The
main reason is to use for debugging constants, since there is no way to change
the value, except by editing the source.

View file

@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.1 2013/07/06 00:39:59 rodent Exp $
#
DISTNAME= constant-def-0.01
PKGNAME= p5-${DISTNAME}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/M/MO/MONS/}
MAINTAINER= rodent@NetBSD.org
HOMEPAGE= http://search.cpan.org/~mons/constant-def-0.01/lib/constant/def.pm
COMMENT= Perl pragma to declare previously undeclared constants
LICENSE= ${PERL5_LICENSE}
DEPENDS+= p5-Test-Simple>=0.98:../../devel/p5-Test-Simple
DEPENDS+= p5-constant>=1.05:../../devel/p5-constant
DEPENDS+= p5-ex-lib>=0.03:../../devel/p5-ex-lib
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,6 @@
@comment $NetBSD: PLIST,v 1.1 2013/07/06 00:39:59 rodent Exp $
${PERL5_SUB_INSTALLVENDORLIB}/constant/abs.pm
${PERL5_SUB_INSTALLVENDORLIB}/constant/def.pm
${PERL5_SUB_INSTALLVENDORARCH}/auto/constant/def/.packlist
${PERL5_SUB_INSTALLVENDORMAN3DIR}/constant::abs.3
${PERL5_SUB_INSTALLVENDORMAN3DIR}/constant::def.3

View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2013/07/06 00:39:59 rodent Exp $
SHA1 (constant-def-0.01.tar.gz) = 0b946930dc6c1c16fe3337f5218b017f9f1a2784
RMD160 (constant-def-0.01.tar.gz) = 82514af28e8d0b64736a5d0ba5b57901aefd8dbc
Size (constant-def-0.01.tar.gz) = 22335 bytes