summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorsno <sno@pkgsrc.org>2009-10-18 09:16:48 +0000
committersno <sno@pkgsrc.org>2009-10-18 09:16:48 +0000
commit2685a95f16e5952bc9586bd05dee2b41cdc2e0ed (patch)
tree6b38544c3bbbc12e3975d42e68588d1a2152816c /devel
parent1846429ce0e6d5c47f2b41b76b93b6bd21cc9a71 (diff)
downloadpkgsrc-2685a95f16e5952bc9586bd05dee2b41cdc2e0ed.tar.gz
Importing devel/p5-constant 1.19 as dependency (constant >= 1.14) for
scheduled update of net/p5-SOAP-Lite. Since 1.14 multiple constants are allowed. This pragma allows constants to be declared at compile-time. When a constant is used in an expression, Perl replaces it with its value at compile time, and may then optimize the expression further. In particular, any code in an if (CONSTANT) block will be optimized away if the constant is false.
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-constant/DESCR6
-rw-r--r--devel/p5-constant/Makefile20
-rw-r--r--devel/p5-constant/distinfo5
3 files changed, 31 insertions, 0 deletions
diff --git a/devel/p5-constant/DESCR b/devel/p5-constant/DESCR
new file mode 100644
index 00000000000..4bfae6cf93d
--- /dev/null
+++ b/devel/p5-constant/DESCR
@@ -0,0 +1,6 @@
+This pragma allows constants to be declared at compile-time.
+
+When a constant is used in an expression, Perl replaces it with its value at
+compile time, and may then optimize the expression further. In particular,
+any code in an if (CONSTANT) block will be optimized away if the constant
+is false.
diff --git a/devel/p5-constant/Makefile b/devel/p5-constant/Makefile
new file mode 100644
index 00000000000..2e7e6d0845c
--- /dev/null
+++ b/devel/p5-constant/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/10/18 09:16:48 sno Exp $
+
+DISTNAME= constant-1.19
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=constant/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/constant/
+COMMENT= Perl pragma to declare constants
+LICENSE= ${PERL5_LICENSE}
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
+
+PERL5_MODULE_TYPE= Module::Build
+PERL5_PACKLIST= auto/constant/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-constant/distinfo b/devel/p5-constant/distinfo
new file mode 100644
index 00000000000..27501e3a3c2
--- /dev/null
+++ b/devel/p5-constant/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/10/18 09:16:48 sno Exp $
+
+SHA1 (constant-1.19.tar.gz) = 485e636482214ea30a5696aba1f708d0d3c9b57c
+RMD160 (constant-1.19.tar.gz) = e331d400f399472937d68a6253af6d4369392ae8
+Size (constant-1.19.tar.gz) = 13783 bytes