summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/p5-Perl-Critic/Makefile9
-rw-r--r--devel/p5-Perl-Critic/distinfo8
-rw-r--r--devel/p5-Perl-Critic/options.mk26
3 files changed, 36 insertions, 7 deletions
diff --git a/devel/p5-Perl-Critic/Makefile b/devel/p5-Perl-Critic/Makefile
index edb7c7a90d6..bf39891b5b2 100644
--- a/devel/p5-Perl-Critic/Makefile
+++ b/devel/p5-Perl-Critic/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.7 2009/01/04 23:06:29 he Exp $
+# $NetBSD: Makefile,v 1.8 2009/03/10 17:59:46 sno Exp $
#
-DISTNAME= Perl-Critic-1.094001
-PKGNAME= p5-${DISTNAME:C/0[0-9][0-9]$/.&/}
+DISTNAME= Perl-Critic-1.098
+PKGNAME= p5-${DISTNAME}
+#PKGNAME= p5-${DISTNAME:C/0[0-9][0-9]$/.&/}
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Perl/}
@@ -23,6 +24,8 @@ DEPENDS+= p5-Readonly>=1.03:../../devel/p5-Readonly
DEPENDS+= p5-String-Format>=1.13:../../devel/p5-String-Format
DEPENDS+= p5-version-[0-9]*:../../devel/p5-version
+.include "options.mk"
+
USE_LANGUAGES= # empty
PERL5_PACKLIST= auto/Perl/Critic/.packlist
PERL5_MODULE_TYPE= Module::Build
diff --git a/devel/p5-Perl-Critic/distinfo b/devel/p5-Perl-Critic/distinfo
index 766fce70b7a..533f3f3156b 100644
--- a/devel/p5-Perl-Critic/distinfo
+++ b/devel/p5-Perl-Critic/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.4 2009/01/04 23:06:29 he Exp $
+$NetBSD: distinfo,v 1.5 2009/03/10 17:59:46 sno Exp $
-SHA1 (Perl-Critic-1.094001.tar.gz) = 7571f070d4af4c585670204b9f9cc50eff1cceec
-RMD160 (Perl-Critic-1.094001.tar.gz) = 7407661beca718e92d9bbbaddb434593a7f52b42
-Size (Perl-Critic-1.094001.tar.gz) = 402601 bytes
+SHA1 (Perl-Critic-1.098.tar.gz) = 8ccb7cfc8529808ea74bce82ed80e6677f09ca17
+RMD160 (Perl-Critic-1.098.tar.gz) = f550f603588ee4dff32e96ef990c4b82e834932c
+Size (Perl-Critic-1.098.tar.gz) = 425245 bytes
diff --git a/devel/p5-Perl-Critic/options.mk b/devel/p5-Perl-Critic/options.mk
new file mode 100644
index 00000000000..35cc992d0c6
--- /dev/null
+++ b/devel/p5-Perl-Critic/options.mk
@@ -0,0 +1,26 @@
+# $NetBSD: options.mk,v 1.1 2009/03/10 17:59:46 sno Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.p5-Perl-Critic
+PKG_SUPPORTED_OPTIONS= file-homedir file-which perl-tidy pod-spell readonly-xs regexp-parser
+PKG_SUGGESTED_OPTIONS= pod-spell readonly-xs regexp-parser
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mfile-homedir)
+DEPENDS+= p5-File-HomeDir>=0:../../devel/p5-File-HomeDir
+.endif
+.if !empty(PKG_OPTIONS:Mfile-which)
+DEPENDS+= p5-File-Which>=0:../../devel/p5-File-Which
+.endif
+.if !empty(PKG_OPTIONS:Mperl-tidy)
+DEPENDS+= p5-Perl-Tidy>=0:../../devel/p5-Perl-Tidy
+.endif
+.if !empty(PKG_OPTIONS:Mpod-spell)
+DEPENDS+= p5-Pod-Spell>=1:../../textproc/p5-Pod-Spell
+.endif
+.if !empty(PKG_OPTIONS:Mreadonly-xs)
+DEPENDS+= p5-Readonly-XS>=0:../../devel/p5-Readonly-XS
+.endif
+.if !empty(PKG_OPTIONS:Mregexp-parser)
+DEPENDS+= p5-Regexp-Parser>=0.20:../../devel/p5-Regexp-Parser
+.endif