From 1053a77855e66201b69c9b078d24db505ac8b3d8 Mon Sep 17 00:00:00 2001 From: sno Date: Fri, 9 Apr 2010 08:17:41 +0000 Subject: Importing devel/p5-Attribute-Lexical 0.001 This module manages attributes that can be attached to subroutine and variable declarations. Although it can be used directly, it is mainly intended to be infrastructure for modules that supply particular attribute semantics. Meanings are assigned to attributes by code which is usually supplied by modules and which runs at compile time. The built-in mechanism for attribute control is awkward to use, difficult in particular to enable multiple attributes supplied by different modules, and it scopes attribute meanings according to the package of the object to which attributes are being applied. This module is intended to overcome these limitations. This module supplies a simple pragma to declare an attribute, associating the attribute's name with a handler function that implements its semantics. The declaration is lexically scoped, lasting only until the end of the enclosing block. A declaration can be overridden, giving an attribute name a different meaning or making it meaningless, in an inner nested block. --- devel/p5-Attribute-Lexical/DESCR | 17 +++++++++++++++++ devel/p5-Attribute-Lexical/Makefile | 25 +++++++++++++++++++++++++ devel/p5-Attribute-Lexical/distinfo | 5 +++++ 3 files changed, 47 insertions(+) create mode 100644 devel/p5-Attribute-Lexical/DESCR create mode 100644 devel/p5-Attribute-Lexical/Makefile create mode 100644 devel/p5-Attribute-Lexical/distinfo (limited to 'devel') diff --git a/devel/p5-Attribute-Lexical/DESCR b/devel/p5-Attribute-Lexical/DESCR new file mode 100644 index 00000000000..983b4d567e1 --- /dev/null +++ b/devel/p5-Attribute-Lexical/DESCR @@ -0,0 +1,17 @@ +This module manages attributes that can be attached to subroutine and +variable declarations. Although it can be used directly, it is mainly +intended to be infrastructure for modules that supply particular attribute +semantics. + +Meanings are assigned to attributes by code which is usually supplied by +modules and which runs at compile time. The built-in mechanism for attribute +control is awkward to use, difficult in particular to enable multiple +attributes supplied by different modules, and it scopes attribute meanings +according to the package of the object to which attributes are being +applied. This module is intended to overcome these limitations. + +This module supplies a simple pragma to declare an attribute, associating +the attribute's name with a handler function that implements its semantics. +The declaration is lexically scoped, lasting only until the end of the +enclosing block. A declaration can be overridden, giving an attribute name +a different meaning or making it meaningless, in an inner nested block. diff --git a/devel/p5-Attribute-Lexical/Makefile b/devel/p5-Attribute-Lexical/Makefile new file mode 100644 index 00000000000..c984aa9ee5e --- /dev/null +++ b/devel/p5-Attribute-Lexical/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1.1.1 2010/04/09 08:17:41 sno Exp $ + +DISTNAME= Attribute-Lexical-0.001 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Attribute/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/dist/Attribute-Lexical/ +COMMENT= Sane scoping of function/variable attributes +LICENSE= ${PERL5_LICENSE} + +DEPENDS+= p5-Lexical-SealRequireHints>=0.001:../../devel/p5-Lexical-SealRequireHints +DEPENDS+= p5-Params-Classify-[0-9]*:../../devel/p5-Params-Classify + +PKG_DESTDIR_SUPPORT= user-destdir +PKG_INSTALLATION_TYPES= overwrite pkgviews + +USE_LANGUAGES= # none + +PERL5_PACKLIST= auto/Attribute/Lexical/.packlist +PERL5_MODULE_TYPE= Module::Build + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-Attribute-Lexical/distinfo b/devel/p5-Attribute-Lexical/distinfo new file mode 100644 index 00000000000..8e6dc440f73 --- /dev/null +++ b/devel/p5-Attribute-Lexical/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2010/04/09 08:17:41 sno Exp $ + +SHA1 (Attribute-Lexical-0.001.tar.gz) = 468d521ec95f12fef421673e5f15e464c3f5b6f9 +RMD160 (Attribute-Lexical-0.001.tar.gz) = 01395e053df3927ed3904efe775fcbb238bdfe04 +Size (Attribute-Lexical-0.001.tar.gz) = 10977 bytes -- cgit v1.2.3