git: 2762e0bd1b2f - main - devel/p5-Module-Path-More: Add p5-Module-Path-More 0.340

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 05 Sep 2024 06:19:21 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2762e0bd1b2f582e8029f335032f622c701d0920

commit 2762e0bd1b2f582e8029f335032f622c701d0920
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-09-05 05:13:48 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-09-05 06:11:17 +0000

    devel/p5-Module-Path-More: Add p5-Module-Path-More 0.340
    
    Module::Path::More provides a function, module_path(), which will find where a
    module (or module prefix, or .pod file) is installed locally. (There is also
    another function pod_path() which is just a convenience wrapper.)
    
    It works by looking in all the directories in @INC for an appropriately named
    file. If module is Foo::Bar, will search for Foo/Bar.pm, Foo/Bar.pmc (if
    find_pmc argument is true), Foo/Bar directory (if find_prefix argument is true),
    or Foo/Bar.pod (if find_pod argument is true).
---
 devel/Makefile                      |  1 +
 devel/p5-Module-Path-More/Makefile  | 23 +++++++++++++++++++++++
 devel/p5-Module-Path-More/distinfo  |  3 +++
 devel/p5-Module-Path-More/pkg-descr |  8 ++++++++
 devel/p5-Module-Path-More/pkg-plist |  2 ++
 5 files changed, 37 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index f94e359fb0b4..6334d89cea2c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3001,6 +3001,7 @@
     SUBDIR += p5-Module-Math-Depends
     SUBDIR += p5-Module-Metadata
     SUBDIR += p5-Module-Path
+    SUBDIR += p5-Module-Path-More
     SUBDIR += p5-Module-Pluggable
     SUBDIR += p5-Module-Pluggable-Fast
     SUBDIR += p5-Module-Pluggable-Ordered
diff --git a/devel/p5-Module-Path-More/Makefile b/devel/p5-Module-Path-More/Makefile
new file mode 100644
index 000000000000..90b1044b713c
--- /dev/null
+++ b/devel/p5-Module-Path-More/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	Module-Path-More
+PORTVERSION=	0.34.0
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+DISTNAME=	Module-Path-More-${PORTVERSION:R}${PORTVERSION:E}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Get path to locally installed Perl module
+WWW=		https://metacpan.org/dist/Module-Path-More
+
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+TEST_DEPENDS=	p5-Test-Exception>=0:devel/p5-Test-Exception
+
+USES=		perl5
+USE_PERL5=	configure
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Module-Path-More/distinfo b/devel/p5-Module-Path-More/distinfo
new file mode 100644
index 000000000000..af73b33cd81b
--- /dev/null
+++ b/devel/p5-Module-Path-More/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1724084462
+SHA256 (Module-Path-More-0.340.tar.gz) = d10a9aa71d8188ef94fa4d516b2e7d803a5b0129e823ea9789856d154beaedfd
+SIZE (Module-Path-More-0.340.tar.gz) = 21000
diff --git a/devel/p5-Module-Path-More/pkg-descr b/devel/p5-Module-Path-More/pkg-descr
new file mode 100644
index 000000000000..198e20267b5c
--- /dev/null
+++ b/devel/p5-Module-Path-More/pkg-descr
@@ -0,0 +1,8 @@
+Module::Path::More provides a function, module_path(), which will find where a
+module (or module prefix, or .pod file) is installed locally. (There is also
+another function pod_path() which is just a convenience wrapper.)
+
+It works by looking in all the directories in @INC for an appropriately named
+file. If module is Foo::Bar, will search for Foo/Bar.pm, Foo/Bar.pmc (if
+find_pmc argument is true), Foo/Bar directory (if find_prefix argument is true),
+or Foo/Bar.pod (if find_pod argument is true).
diff --git a/devel/p5-Module-Path-More/pkg-plist b/devel/p5-Module-Path-More/pkg-plist
new file mode 100644
index 000000000000..d0799688dd67
--- /dev/null
+++ b/devel/p5-Module-Path-More/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/Module/Path/More.pm
+%%PERL5_MAN3%%/Module::Path::More.3.gz