Skip to content

Commit

Permalink
Adding package for CPAN distribution Module-Path version 0.09 into
Browse files Browse the repository at this point in the history
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
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
15 changes: 15 additions & 0 deletions filesystems/p5-Module-Path/DESCR
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.
23 changes: 23 additions & 0 deletions filesystems/p5-Module-Path/Makefile
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"
5 changes: 5 additions & 0 deletions filesystems/p5-Module-Path/distinfo
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

0 comments on commit 77e8b22

Please sign in to comment.