summaryrefslogtreecommitdiff
path: root/devel/p5-indirect
diff options
context:
space:
mode:
authorsno <sno@pkgsrc.org>2013-07-03 08:52:50 +0000
committersno <sno@pkgsrc.org>2013-07-03 08:52:50 +0000
commit9e8d2682b718731a096a674faebee66308c979dc (patch)
tree52758fd69de8b9f5b2a40be5f96f4dc11fcf624e /devel/p5-indirect
parent10db86e69b8cd63b887dd54cb4fc9d4acc557a29 (diff)
downloadpkgsrc-9e8d2682b718731a096a674faebee66308c979dc.tar.gz
Adding package for CPAN distribution indirect version 0.30 into
devel/p5-indirect. When enabled, this pragma warns about indirect method calls that are present in your code. This pragma currently does not warn for core functions (print, say, exec or system). This may change in the future, or may be added as optional features that would be enabled by passing options to unimport. In http://www.shadowcat.co.uk/blog/matt-s-trout/indirect-but-still-fatal, Matt S. Trout gives an example of an undesirable indirect method call on a block that can cause a particularly bewildering error.
Diffstat (limited to 'devel/p5-indirect')
-rw-r--r--devel/p5-indirect/DESCR10
-rw-r--r--devel/p5-indirect/Makefile17
-rw-r--r--devel/p5-indirect/distinfo5
3 files changed, 32 insertions, 0 deletions
diff --git a/devel/p5-indirect/DESCR b/devel/p5-indirect/DESCR
new file mode 100644
index 00000000000..605e3b64413
--- /dev/null
+++ b/devel/p5-indirect/DESCR
@@ -0,0 +1,10 @@
+When enabled, this pragma warns about indirect method calls that are
+present in your code.
+
+This pragma currently does not warn for core functions (print, say, exec
+or system). This may change in the future, or may be added as optional
+features that would be enabled by passing options to unimport.
+
+In http://www.shadowcat.co.uk/blog/matt-s-trout/indirect-but-still-fatal,
+Matt S. Trout gives an example of an undesirable indirect method call on
+a block that can cause a particularly bewildering error.
diff --git a/devel/p5-indirect/Makefile b/devel/p5-indirect/Makefile
new file mode 100644
index 00000000000..1eda3dc968a
--- /dev/null
+++ b/devel/p5-indirect/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2013/07/03 08:52:50 sno Exp $
+
+DISTNAME= indirect-0.30
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/V/VP/VPIT/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/indirect/
+COMMENT= Lexically warn about using the indirect method call syntax
+LICENSE= ${PERL5_LICENSE}
+
+USE_LANGUAGES= c
+PERL5_PACKLIST= auto/indirect/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-indirect/distinfo b/devel/p5-indirect/distinfo
new file mode 100644
index 00000000000..a4018b53b74
--- /dev/null
+++ b/devel/p5-indirect/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2013/07/03 08:52:50 sno Exp $
+
+SHA1 (indirect-0.30.tar.gz) = d15b81040216b3a163537359de5661e654ccfbec
+RMD160 (indirect-0.30.tar.gz) = d9ecd00b44e40a780239aed78ac98f67a2fc202a
+Size (indirect-0.30.tar.gz) = 41721 bytes