forked from jsonn/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
sno
committed
Jul 3, 2013
1 parent
1ca3229
commit 77e8b22
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |