pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/filesystems/p5-Module-Path Adding package for CPAN dis...
details: https://anonhg.NetBSD.org/pkgsrc/rev/6cc540c46dfd
branches: trunk
changeset: 620969:6cc540c46dfd
user: sno <sno%pkgsrc.org@localhost>
date: Wed Jul 03 15:06:36 2013 +0000
description:
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:
filesystems/p5-Module-Path/DESCR | 15 +++++++++++++++
filesystems/p5-Module-Path/Makefile | 23 +++++++++++++++++++++++
filesystems/p5-Module-Path/distinfo | 5 +++++
3 files changed, 43 insertions(+), 0 deletions(-)
diffs (55 lines):
diff -r 311849be2cba -r 6cc540c46dfd filesystems/p5-Module-Path/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/p5-Module-Path/DESCR Wed Jul 03 15:06:36 2013 +0000
@@ -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 -r 311849be2cba -r 6cc540c46dfd filesystems/p5-Module-Path/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/p5-Module-Path/Makefile Wed Jul 03 15:06:36 2013 +0000
@@ -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@localhost
+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 -r 311849be2cba -r 6cc540c46dfd filesystems/p5-Module-Path/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/p5-Module-Path/distinfo Wed Jul 03 15:06:36 2013 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index