summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/p5-Attribute-Lexical/DESCR17
-rw-r--r--devel/p5-Attribute-Lexical/Makefile25
-rw-r--r--devel/p5-Attribute-Lexical/distinfo5
3 files changed, 47 insertions, 0 deletions
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