diff options
author | Cheng-Lung Sung <clsung@FreeBSD.org> | 2005-11-28 06:20:52 +0000 |
---|---|---|
committer | Cheng-Lung Sung <clsung@FreeBSD.org> | 2005-11-28 06:20:52 +0000 |
commit | cf18e651e0344cc766cfac44351c7dc1095ddb30 (patch) | |
tree | c435a812f67f6ea5a974dba0da560b7b503d4073 | |
parent | c5d4ca8255ba1b3a7a08df8ea8336ac2213de082 (diff) | |
download | ports-cf18e651e0344cc766cfac44351c7dc1095ddb30.tar.gz ports-cf18e651e0344cc766cfac44351c7dc1095ddb30.zip |
- Critique Perl source for style and standards, which give suggestions
about your perl source code.
- ijliao made this port, and I will maintain it :)
Notes
Notes:
svn path=/head/; revision=149737
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/p5-Perl-Critic/Makefile | 83 | ||||
-rw-r--r-- | textproc/p5-Perl-Critic/distinfo | 3 | ||||
-rw-r--r-- | textproc/p5-Perl-Critic/pkg-descr | 16 | ||||
-rw-r--r-- | textproc/p5-Perl-Critic/pkg-plist | 70 |
5 files changed, 173 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 52449522ad1a..01803cf674e0 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -345,6 +345,7 @@ SUBDIR += p5-PPI-HTML SUBDIR += p5-Parse-FixedLength SUBDIR += p5-Parse-Syslog + SUBDIR += p5-Perl-Critic SUBDIR += p5-Perl-MinimumVersion SUBDIR += p5-PerlPoint-Converters SUBDIR += p5-PerlPoint-Package diff --git a/textproc/p5-Perl-Critic/Makefile b/textproc/p5-Perl-Critic/Makefile new file mode 100644 index 000000000000..797614350ed0 --- /dev/null +++ b/textproc/p5-Perl-Critic/Makefile @@ -0,0 +1,83 @@ +# ex:ts=8 +# Ports collection makefile for: Perl::Critic +# Date created: Nov 26, 2005 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= Perl-Critic +PORTVERSION= 0.13 +CATEGORIES= textproc devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= Perl +PKGNAMEPREFIX= p5- + +MAINTAINER= clsung@FreeBSD.org +COMMENT= Critique Perl source for style and standards + +BUILD_DEPENDS= ${SITE_PERL}/Config/Tiny.pm:${PORTSDIR}/devel/p5-Config-Tiny \ + ${SITE_PERL}/${PERL_ARCH}/List/MoreUtils.pm:${PORTSDIR}/lang/p5-List-MoreUtils \ + ${SITE_PERL}/PPI.pm:${PORTSDIR}/textproc/p5-PPI \ + ${SITE_PERL}/String/Format.pm:${PORTSDIR}/textproc/p5-String-Format \ + ${SITE_PERL}/Perl/Tidy.pm:${PORTSDIR}/devel/perltidy +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_MODBUILD= yes + +MAN1= perlcritic.1 +MAN3= Perl::Critic.3 \ + Perl::Critic::Config.3 \ + Perl::Critic::Policy.3 \ + Perl::Critic::Policy::BuiltinFunctions::ProhibitLvalueSubstr.3 \ + Perl::Critic::Policy::BuiltinFunctions::ProhibitSleepViaSelect.3 \ + Perl::Critic::Policy::BuiltinFunctions::ProhibitStringyEval.3 \ + Perl::Critic::Policy::BuiltinFunctions::RequireBlockGrep.3 \ + Perl::Critic::Policy::BuiltinFunctions::RequireBlockMap.3 \ + Perl::Critic::Policy::BuiltinFunctions::RequireGlobFunction.3 \ + Perl::Critic::Policy::ClassHierarchies::ProhibitOneArgBless.3 \ + Perl::Critic::Policy::CodeLayout::ProhibitHardTabs.3 \ + Perl::Critic::Policy::CodeLayout::ProhibitParensWithBuiltins.3 \ + Perl::Critic::Policy::CodeLayout::ProhibitQuotedWordLists.3 \ + Perl::Critic::Policy::CodeLayout::RequireTidyCode.3 \ + Perl::Critic::Policy::CodeLayout::RequireTrailingCommas.3 \ + Perl::Critic::Policy::ControlStructures::ProhibitCStyleForLoops.3 \ + Perl::Critic::Policy::ControlStructures::ProhibitCascadingIfElse.3 \ + Perl::Critic::Policy::ControlStructures::ProhibitPostfixControls.3 \ + Perl::Critic::Policy::ControlStructures::ProhibitUnlessBlocks.3 \ + Perl::Critic::Policy::ControlStructures::ProhibitUntilBlocks.3 \ + Perl::Critic::Policy::InputOutput::ProhibitBacktickOperators.3 \ + Perl::Critic::Policy::InputOutput::ProhibitBarewordFileHandles.3 \ + Perl::Critic::Policy::InputOutput::ProhibitOneArgSelect.3 \ + Perl::Critic::Policy::InputOutput::ProhibitTwoArgOpen.3 \ + Perl::Critic::Policy::Miscellanea::RequireRcsKeywords.3 \ + Perl::Critic::Policy::Modules::ProhibitMultiplePackages.3 \ + Perl::Critic::Policy::Modules::ProhibitSpecificModules.3 \ + Perl::Critic::Policy::Modules::RequireBarewordIncludes.3 \ + Perl::Critic::Policy::Modules::RequireExplicitPackage.3 \ + Perl::Critic::Policy::Modules::RequireVersionVar.3 \ + Perl::Critic::Policy::NamingConventions::ProhibitMixedCaseSubs.3 \ + Perl::Critic::Policy::NamingConventions::ProhibitMixedCaseVars.3 \ + Perl::Critic::Policy::RegularExpressions::RequireExtendedFormatting.3 \ + Perl::Critic::Policy::RegularExpressions::RequireLineBoundaryMatching.3 \ + Perl::Critic::Policy::Subroutines::ProhibitBuiltinHomonyms.3 \ + Perl::Critic::Policy::Subroutines::ProhibitExplicitReturnUndef.3 \ + Perl::Critic::Policy::Subroutines::ProhibitSubroutinePrototypes.3 \ + Perl::Critic::Policy::TestingAndDebugging::RequirePackageStricture.3 \ + Perl::Critic::Policy::TestingAndDebugging::RequirePackageWarnings.3 \ + Perl::Critic::Policy::ValuesAndExpressions::ProhibitConstantPragma.3 \ + Perl::Critic::Policy::ValuesAndExpressions::ProhibitEmptyQuotes.3 \ + Perl::Critic::Policy::ValuesAndExpressions::ProhibitInterpolationOfLiterals.3 \ + Perl::Critic::Policy::ValuesAndExpressions::ProhibitLeadingZeros.3 \ + Perl::Critic::Policy::ValuesAndExpressions::ProhibitNoisyQuotes.3 \ + Perl::Critic::Policy::ValuesAndExpressions::RequireInterpolationOfMetachars.3 \ + Perl::Critic::Policy::ValuesAndExpressions::RequireNumberSeparators.3 \ + Perl::Critic::Policy::ValuesAndExpressions::RequireQuotedHeredocTerminator.3 \ + Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator.3 \ + Perl::Critic::Policy::Variables::ProhibitLocalVars.3 \ + Perl::Critic::Policy::Variables::ProhibitPackageVars.3 \ + Perl::Critic::Policy::Variables::ProhibitPunctuationVars.3 \ + Perl::Critic::Utils.3 \ + Perl::Critic::Violation.3 + +.include <bsd.port.mk> diff --git a/textproc/p5-Perl-Critic/distinfo b/textproc/p5-Perl-Critic/distinfo new file mode 100644 index 000000000000..cc4ef6bf4f9a --- /dev/null +++ b/textproc/p5-Perl-Critic/distinfo @@ -0,0 +1,3 @@ +MD5 (Perl-Critic-0.13.tar.gz) = 1dc4bb4fce802bb5819f247981485dae +SHA256 (Perl-Critic-0.13.tar.gz) = d0626d428e82154f15bc3eec954afac1c044ddd8be8f8891771f508caafa12b8 +SIZE (Perl-Critic-0.13.tar.gz) = 72927 diff --git a/textproc/p5-Perl-Critic/pkg-descr b/textproc/p5-Perl-Critic/pkg-descr new file mode 100644 index 000000000000..d54b2f324f85 --- /dev/null +++ b/textproc/p5-Perl-Critic/pkg-descr @@ -0,0 +1,16 @@ +Perl::Critic is an extensible framework for creating and applying coding +standards to Perl source code. Essentially, it is a static source code +analysis engine. Perl::Critic is distributed with a number of +Perl::Critic::Policy modules that attempt to enforce various coding +guidelines. Most Policies are based on Damian Conway's book +Perl Best Practices. +You can choose and customize those Polices through the +Perl::Critic interface. You can also create new Policy modules that +suit your own tastes. + +For a convenient command-line interface to Perl::Critic, see the +documentation for perlcritic. If you want to integrate Perl::Critic with +your build process, Test::Perl::Critic provides a nice interface that is +suitable for test scripts. + +WWW: http://search.cpan.org/dist/Perl-Critic/ diff --git a/textproc/p5-Perl-Critic/pkg-plist b/textproc/p5-Perl-Critic/pkg-plist new file mode 100644 index 000000000000..f63d42fec1ec --- /dev/null +++ b/textproc/p5-Perl-Critic/pkg-plist @@ -0,0 +1,70 @@ +bin/perlcritic +%%SITE_PERL%%/Perl/Critic/Config.pm +%%SITE_PERL%%/Perl/Critic/Utils.pm +%%SITE_PERL%%/Perl/Critic/Policy.pm +%%SITE_PERL%%/Perl/Critic/Violation.pm +%%SITE_PERL%%/Perl/Critic/Policy/Variables/ProhibitLocalVars.pm +%%SITE_PERL%%/Perl/Critic/Policy/Variables/ProhibitPunctuationVars.pm +%%SITE_PERL%%/Perl/Critic/Policy/Variables/ProhibitPackageVars.pm +%%SITE_PERL%%/Perl/Critic/Policy/TestingAndDebugging/RequirePackageWarnings.pm +%%SITE_PERL%%/Perl/Critic/Policy/TestingAndDebugging/RequirePackageStricture.pm +%%SITE_PERL%%/Perl/Critic/Policy/NamingConventions/ProhibitMixedCaseVars.pm +%%SITE_PERL%%/Perl/Critic/Policy/NamingConventions/ProhibitMixedCaseSubs.pm +%%SITE_PERL%%/Perl/Critic/Policy/InputOutput/ProhibitBarewordFileHandles.pm +%%SITE_PERL%%/Perl/Critic/Policy/InputOutput/ProhibitTwoArgOpen.pm +%%SITE_PERL%%/Perl/Critic/Policy/InputOutput/ProhibitBacktickOperators.pm +%%SITE_PERL%%/Perl/Critic/Policy/InputOutput/ProhibitOneArgSelect.pm +%%SITE_PERL%%/Perl/Critic/Policy/ControlStructures/ProhibitCStyleForLoops.pm +%%SITE_PERL%%/Perl/Critic/Policy/ControlStructures/ProhibitUntilBlocks.pm +%%SITE_PERL%%/Perl/Critic/Policy/ControlStructures/ProhibitCascadingIfElse.pm +%%SITE_PERL%%/Perl/Critic/Policy/ControlStructures/ProhibitPostfixControls.pm +%%SITE_PERL%%/Perl/Critic/Policy/ControlStructures/ProhibitUnlessBlocks.pm +%%SITE_PERL%%/Perl/Critic/Policy/ValuesAndExpressions/ProhibitLeadingZeros.pm +%%SITE_PERL%%/Perl/Critic/Policy/ValuesAndExpressions/ProhibitInterpolationOfLiterals.pm +%%SITE_PERL%%/Perl/Critic/Policy/ValuesAndExpressions/RequireQuotedHeredocTerminator.pm +%%SITE_PERL%%/Perl/Critic/Policy/ValuesAndExpressions/ProhibitNoisyQuotes.pm +%%SITE_PERL%%/Perl/Critic/Policy/ValuesAndExpressions/RequireUpperCaseHeredocTerminator.pm +%%SITE_PERL%%/Perl/Critic/Policy/ValuesAndExpressions/RequireNumberSeparators.pm +%%SITE_PERL%%/Perl/Critic/Policy/ValuesAndExpressions/ProhibitConstantPragma.pm +%%SITE_PERL%%/Perl/Critic/Policy/ValuesAndExpressions/ProhibitEmptyQuotes.pm +%%SITE_PERL%%/Perl/Critic/Policy/ValuesAndExpressions/RequireInterpolationOfMetachars.pm +%%SITE_PERL%%/Perl/Critic/Policy/Modules/RequireVersionVar.pm +%%SITE_PERL%%/Perl/Critic/Policy/Modules/RequireBarewordIncludes.pm +%%SITE_PERL%%/Perl/Critic/Policy/Modules/RequireExplicitPackage.pm +%%SITE_PERL%%/Perl/Critic/Policy/Modules/ProhibitSpecificModules.pm +%%SITE_PERL%%/Perl/Critic/Policy/Modules/ProhibitMultiplePackages.pm +%%SITE_PERL%%/Perl/Critic/Policy/CodeLayout/ProhibitParensWithBuiltins.pm +%%SITE_PERL%%/Perl/Critic/Policy/CodeLayout/RequireTidyCode.pm +%%SITE_PERL%%/Perl/Critic/Policy/CodeLayout/ProhibitQuotedWordLists.pm +%%SITE_PERL%%/Perl/Critic/Policy/CodeLayout/RequireTrailingCommas.pm +%%SITE_PERL%%/Perl/Critic/Policy/CodeLayout/ProhibitHardTabs.pm +%%SITE_PERL%%/Perl/Critic/Policy/BuiltinFunctions/RequireGlobFunction.pm +%%SITE_PERL%%/Perl/Critic/Policy/BuiltinFunctions/RequireBlockMap.pm +%%SITE_PERL%%/Perl/Critic/Policy/BuiltinFunctions/ProhibitLvalueSubstr.pm +%%SITE_PERL%%/Perl/Critic/Policy/BuiltinFunctions/RequireBlockGrep.pm +%%SITE_PERL%%/Perl/Critic/Policy/BuiltinFunctions/ProhibitStringyEval.pm +%%SITE_PERL%%/Perl/Critic/Policy/BuiltinFunctions/ProhibitSleepViaSelect.pm +%%SITE_PERL%%/Perl/Critic/Policy/RegularExpressions/RequireLineBoundaryMatching.pm +%%SITE_PERL%%/Perl/Critic/Policy/RegularExpressions/RequireExtendedFormatting.pm +%%SITE_PERL%%/Perl/Critic/Policy/Subroutines/ProhibitSubroutinePrototypes.pm +%%SITE_PERL%%/Perl/Critic/Policy/Subroutines/ProhibitBuiltinHomonyms.pm +%%SITE_PERL%%/Perl/Critic/Policy/Subroutines/ProhibitExplicitReturnUndef.pm +%%SITE_PERL%%/Perl/Critic/Policy/ClassHierarchies/ProhibitOneArgBless.pm +%%SITE_PERL%%/Perl/Critic/Policy/Miscellanea/RequireRcsKeywords.pm +%%SITE_PERL%%/Perl/Critic.pm +@dirrm %%SITE_PERL%%/Perl/Critic/Policy/Variables +@dirrm %%SITE_PERL%%/Perl/Critic/Policy/ValuesAndExpressions +@dirrm %%SITE_PERL%%/Perl/Critic/Policy/TestingAndDebugging +@dirrm %%SITE_PERL%%/Perl/Critic/Policy/Subroutines +@dirrm %%SITE_PERL%%/Perl/Critic/Policy/RegularExpressions +@dirrm %%SITE_PERL%%/Perl/Critic/Policy/NamingConventions +@dirrm %%SITE_PERL%%/Perl/Critic/Policy/Modules +@dirrm %%SITE_PERL%%/Perl/Critic/Policy/Miscellanea +@dirrm %%SITE_PERL%%/Perl/Critic/Policy/InputOutput +@dirrm %%SITE_PERL%%/Perl/Critic/Policy/ControlStructures +@dirrm %%SITE_PERL%%/Perl/Critic/Policy/CodeLayout +@dirrm %%SITE_PERL%%/Perl/Critic/Policy/ClassHierarchies +@dirrm %%SITE_PERL%%/Perl/Critic/Policy/BuiltinFunctions +@dirrm %%SITE_PERL%%/Perl/Critic/Policy +@dirrm %%SITE_PERL%%/Perl/Critic +@unexec rmdir %D/%%SITE_PERL%%/Perl 2>/dev/null || true |