Extract the names of the modules used in a file using a static analysis.

Since this module does not run code, it cannot find dynamic uses of
modules, such as eval "require $class". It only reports modules that the
file loads directly. Modules loaded with parent or base, for instance,
will will be in the import list for those pragmas but won't have separate
entries in the data this module returns.

WWW: http://github.com/briandfoy/module-extract-use/tree/master

PR:		215745
Submitted by:	svysh.fbsd@gmail.com
This commit is contained in:
Wen Heping 2017-01-04 01:45:07 +00:00
parent 106a197393
commit 43af333ecc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=430527
5 changed files with 40 additions and 0 deletions

View File

@ -2741,6 +2741,7 @@
SUBDIR += p5-Module-Dependency
SUBDIR += p5-Module-Depends
SUBDIR += p5-Module-Extract
SUBDIR += p5-Module-Extract-Use
SUBDIR += p5-Module-ExtractUse
SUBDIR += p5-Module-Find
SUBDIR += p5-Module-Functions

View File

@ -0,0 +1,26 @@
# Created by: Sergei Vyshenski <svysh.fbsd@gmail.com>
# $FreeBSD$
PORTNAME= Module-Extract-Use
PORTVERSION= 1.04
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= svysh.fbsd@gmail.com
COMMENT= Pull out the modules a module explicitly uses
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
BUILD_DEPENDS= p5-Test-Output>0:devel/p5-Test-Output \
p5-PPI>0:textproc/p5-PPI
RUN_DEPENDS:= ${BUILD_DEPENDS}
TEST_DEPENDS= p5-Test-Pod>0:devel/p5-Test-Pod \
p5-Test-Pod-Coverage>0:devel/p5-Test-Pod-Coverage
USES= perl5
USE_PERL5= configure
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1483298307
SHA256 (Module-Extract-Use-1.04.tar.gz) = b2dba019d5dfde41217f10cfdc20ebd46c3deee00accef37097f1bf2597f5c9a
SIZE (Module-Extract-Use-1.04.tar.gz) = 7460

View File

@ -0,0 +1,8 @@
Extract the names of the modules used in a file using a static analysis.
Since this module does not run code, it cannot find dynamic uses of
modules, such as eval "require $class". It only reports modules that the
file loads directly. Modules loaded with parent or base, for instance,
will will be in the import list for those pragmas but won't have separate
entries in the data this module returns.
WWW: http://github.com/briandfoy/module-extract-use/tree/master

View File

@ -0,0 +1,2 @@
%%SITE_PERL%%/Module/Extract/Use.pm
%%PERL5_MAN3%%/Module::Extract::Use.3.gz