diff options
author | abs <abs@pkgsrc.org> | 2011-08-30 09:10:34 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2011-08-30 09:10:34 +0000 |
commit | 7e8e3bf0ad6c4e6f817679d07f52270838c6326b (patch) | |
tree | b9d188ff1089471646c8da9bf81064ebb9158b87 /devel | |
parent | 01994f194271a3ec7baa88c1e442ca42d6445c94 (diff) | |
download | pkgsrc-7e8e3bf0ad6c4e6f817679d07f52270838c6326b.tar.gz |
Added devel/p5-Class-Load version 0.08
require EXPR only accepts Class/Name.pm style module names, not
Class::Name. How frustrating! For that, we provide load_class
'Class::Name'.
It's often useful to test whether a module can be loaded, instead
of throwing an error when it's not available. For that, we provide
try_load_class 'Class::Name'.
Finally, sometimes we need to know whether a particular class has
been loaded. Asking %INC is an option, but that will miss inner
packages and any class for which the filename does not correspond
to the package name. For that, we provide is_class_loaded 'Class::Name'.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/p5-Class-Load/DESCR | 12 | ||||
-rw-r--r-- | devel/p5-Class-Load/Makefile | 20 | ||||
-rw-r--r-- | devel/p5-Class-Load/distinfo | 5 |
3 files changed, 37 insertions, 0 deletions
diff --git a/devel/p5-Class-Load/DESCR b/devel/p5-Class-Load/DESCR new file mode 100644 index 00000000000..a646b85e69a --- /dev/null +++ b/devel/p5-Class-Load/DESCR @@ -0,0 +1,12 @@ +require EXPR only accepts Class/Name.pm style module names, not +Class::Name. How frustrating! For that, we provide load_class +'Class::Name'. + +It's often useful to test whether a module can be loaded, instead +of throwing an error when it's not available. For that, we provide +try_load_class 'Class::Name'. + +Finally, sometimes we need to know whether a particular class has +been loaded. Asking %INC is an option, but that will miss inner +packages and any class for which the filename does not correspond +to the package name. For that, we provide is_class_loaded 'Class::Name'. diff --git a/devel/p5-Class-Load/Makefile b/devel/p5-Class-Load/Makefile new file mode 100644 index 00000000000..e476f9b33b5 --- /dev/null +++ b/devel/p5-Class-Load/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/08/30 09:10:34 abs Exp $ + +DISTNAME= Class-Load-0.08 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Class/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/dist/Class-Load/ +COMMENT= Provide a working (require "Class::Name") and more +LICENSE= ${PERL5_LICENSE} + +PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir + +USE_LANGUAGES= # empty +PERL5_PACKLIST= auto/Class/Load/.packlist + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-Class-Load/distinfo b/devel/p5-Class-Load/distinfo new file mode 100644 index 00000000000..2978bca9180 --- /dev/null +++ b/devel/p5-Class-Load/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2011/08/30 09:10:34 abs Exp $ + +SHA1 (Class-Load-0.08.tar.gz) = d39bf248d37e4fa41c6a8f3f0d0df505f9108bab +RMD160 (Class-Load-0.08.tar.gz) = 7a01bb81cb2b5f12e5ce4aa3fc84d6167628d096 +Size (Class-Load-0.08.tar.gz) = 17911 bytes |