diff options
author | sno <sno@pkgsrc.org> | 2013-07-03 15:06:36 +0000 |
---|---|---|
committer | sno <sno@pkgsrc.org> | 2013-07-03 15:06:36 +0000 |
commit | 9f548da7b639eb7dd029b25863144a34e5385aa9 (patch) | |
tree | 2830534ff48ea33783c64ee738430415a2ff45c3 /filesystems | |
parent | f08fc21d1b56110aacc278a4836a8a8a2cd69fe5 (diff) | |
download | pkgsrc-9f548da7b639eb7dd029b25863144a34e5385aa9.tar.gz |
Adding package for CPAN distribution Module-Path version 0.09 into
filesystems/p5-Module-Path.
Module::Path provides a single function, module_path(), which will find
where a module is installed locally.
It works by looking in all the directories in @INC for an appropriately
named file:
* Foo::Bar becomes Foo/Bar.pm, using the correct directory path
separator for your operating system.
* Iterate over @INC, ignoring any references (see "require" in
"perlfunc" if you're surprised to hear that you might find references
in @INC).
* For each directory in @INC, append the partial path (Foo/Bar.pm),
again using the correct directory path separator. If the resulting
file exists, return this path.
* If no file was found, return undef.
Diffstat (limited to 'filesystems')
-rw-r--r-- | filesystems/p5-Module-Path/DESCR | 15 | ||||
-rw-r--r-- | filesystems/p5-Module-Path/Makefile | 23 | ||||
-rw-r--r-- | filesystems/p5-Module-Path/distinfo | 5 |
3 files changed, 43 insertions, 0 deletions
diff --git a/filesystems/p5-Module-Path/DESCR b/filesystems/p5-Module-Path/DESCR new file mode 100644 index 00000000000..40971b4c707 --- /dev/null +++ b/filesystems/p5-Module-Path/DESCR @@ -0,0 +1,15 @@ +Module::Path provides a single function, module_path(), which will find +where a module is installed locally. + +It works by looking in all the directories in @INC for an appropriately +named file: + + * Foo::Bar becomes Foo/Bar.pm, using the correct directory path + separator for your operating system. + * Iterate over @INC, ignoring any references (see "require" in + "perlfunc" if you're surprised to hear that you might find references + in @INC). + * For each directory in @INC, append the partial path (Foo/Bar.pm), + again using the correct directory path separator. If the resulting + file exists, return this path. + * If no file was found, return undef. diff --git a/filesystems/p5-Module-Path/Makefile b/filesystems/p5-Module-Path/Makefile new file mode 100644 index 00000000000..75ed9a32c15 --- /dev/null +++ b/filesystems/p5-Module-Path/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1 2013/07/03 15:06:36 sno Exp $ +# + +DISTNAME= Module-Path-0.09 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Module/} + +MAINTAINER= pkgsrc-p5-people@NetBSD.org +HOMEPAGE= http://search.cpan.org/dist/Module-Path/ +COMMENT= Perl5 module to get the full path to a locally installed module +LICENSE= ${PERL5_LICENSE} + +REPLACE_PERL+= bin/mpath + +PKG_INSTALLATION_TYPES= overwrite pkgviews + +PERL5_PACKLIST= auto/Module/Path/.packlist + +BUILD_DEPENDS+= p5-Devel-FindPerl-[0-9]*:../../devel/p5-Devel-FindPerl + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/filesystems/p5-Module-Path/distinfo b/filesystems/p5-Module-Path/distinfo new file mode 100644 index 00000000000..22f13bbbe32 --- /dev/null +++ b/filesystems/p5-Module-Path/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2013/07/03 15:06:36 sno Exp $ + +SHA1 (Module-Path-0.09.tar.gz) = 860723625e9d90b7b17857920d5b1046976d97f1 +RMD160 (Module-Path-0.09.tar.gz) = f643de4b9fd0b389cf231fefa7188da5785aa690 +Size (Module-Path-0.09.tar.gz) = 11423 bytes |