pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-UNIVERSAL-require Imported p5-UNIVERSAL-requi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cf0f87c55d2e
branches:  trunk
changeset: 506736:cf0f87c55d2e
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Jan 21 10:42:13 2006 +0000

description:
Imported p5-UNIVERSAL-requirefrom pkgsrc-wip.

UNIVERSAL::require - require() modules from a variable.

If you've ever had to do this...

    eval "require $module";

to get around the bareword caveats on require(), this module is for
you. It creates a universal require() class method that will work with
every Perl module and its secure. So instead of doing some arcane
eval() work, you can do this:

    $module->require;

It doesn't save you much typing, but it'll make alot more sense to
someone who's not a ninth level Perl acolyte.

WWW: http://search.cpan.org/dist/UNIVERSAL-require/

Packaged by Roman Kulik.

diffstat:

 devel/p5-UNIVERSAL-require/DESCR    |  17 +++++++++++++++++
 devel/p5-UNIVERSAL-require/Makefile |  15 +++++++++++++++
 devel/p5-UNIVERSAL-require/PLIST    |   1 +
 devel/p5-UNIVERSAL-require/distinfo |   6 ++++++
 4 files changed, 39 insertions(+), 0 deletions(-)

diffs (55 lines):

diff -r 32b4dd742f43 -r cf0f87c55d2e devel/p5-UNIVERSAL-require/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-UNIVERSAL-require/DESCR  Sat Jan 21 10:42:13 2006 +0000
@@ -0,0 +1,17 @@
+UNIVERSAL::require - require() modules from a variable.
+
+If you've ever had to do this...
+
+    eval "require $module";
+
+to get around the bareword caveats on require(), this module is for
+you. It creates a universal require() class method that will work with
+every Perl module and its secure. So instead of doing some arcane
+eval() work, you can do this:
+
+    $module->require;
+
+It doesn't save you much typing, but it'll make alot more sense to
+someone who's not a ninth level Perl acolyte.
+
+WWW: http://search.cpan.org/dist/UNIVERSAL-require/
diff -r 32b4dd742f43 -r cf0f87c55d2e devel/p5-UNIVERSAL-require/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-UNIVERSAL-require/Makefile       Sat Jan 21 10:42:13 2006 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/01/21 10:42:13 rillig Exp $
+
+DISTNAME=      UNIVERSAL-require-0.10
+PKGNAME=       p5-${DISTNAME}
+CATEGORIES=    devel perl5
+MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=../../authors/id/M/MS/MSCHWERN/}
+
+MAINTAINER=    kuli0020%umn.edu@localhost
+HOMEPAGE=      http://search.cpan.org/dist/UNIVERSAL-require/
+COMMENT=       Perl module to require() from a variable
+
+PERL5_PACKLIST=        auto/UNIVERSAL/require/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 32b4dd742f43 -r cf0f87c55d2e devel/p5-UNIVERSAL-require/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-UNIVERSAL-require/PLIST  Sat Jan 21 10:42:13 2006 +0000
@@ -0,0 +1,1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/01/21 10:42:13 rillig Exp $
diff -r 32b4dd742f43 -r cf0f87c55d2e devel/p5-UNIVERSAL-require/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-UNIVERSAL-require/distinfo       Sat Jan 21 10:42:13 2006 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/01/21 10:42:13 rillig Exp $
+
+SHA1 (UNIVERSAL-require-0.10.tar.gz) = 4ea9b47a41f88d96a1c6469de428192ea9212775
+RMD160 (UNIVERSAL-require-0.10.tar.gz) = eada258d66b69bcfa64babeb12f2ddcb78a9a861
+MD5 (UNIVERSAL-require-0.10.tar.gz) = 4ea51136ee7052bb37dc52c7cb8945b0
+Size (UNIVERSAL-require-0.10.tar.gz) = 3642 bytes



Home | Main Index | Thread Index | Old Index