summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentnl@gentoo.org>2017-12-23 13:22:50 +1300
committerKent Fredric <kentnl@gentoo.org>2017-12-23 13:22:50 +1300
commit4170adf97b2a2a5d45df7c903a902524f02062b5 (patch)
treef93346eb4bae5b8666ee874ea21663d663b63fce /dev-perl/Perl-Critic
parentdev-perl/Parallel-Iterator: Fix tests without '.' in @INC bug #615726 (diff)
downloadgentoo-4170adf97b2a2a5d45df7c903a902524f02062b5.tar.gz
gentoo-4170adf97b2a2a5d45df7c903a902524f02062b5.tar.bz2
gentoo-4170adf97b2a2a5d45df7c903a902524f02062b5.zip
dev-perl/Perl-Critic: Bump to version 1.130.0 re bug #615706
Upstream: - Policies can now be told about modules that export autodie - Fix test failures on 5.26 without '.' in @INC - Fix showing wrong violation context for elements with blank lines - Speed up ProhibitUselessTopic - Doc fixes Bug: https://bugs.gentoo.org/615706 Package-Manager: Portage-2.3.18, Repoman-2.3.6
Diffstat (limited to 'dev-perl/Perl-Critic')
-rw-r--r--dev-perl/Perl-Critic/Manifest1
-rw-r--r--dev-perl/Perl-Critic/Perl-Critic-1.130.0.ebuild82
2 files changed, 83 insertions, 0 deletions
diff --git a/dev-perl/Perl-Critic/Manifest b/dev-perl/Perl-Critic/Manifest
index 57fe2dbda726..20e36b3951b3 100644
--- a/dev-perl/Perl-Critic/Manifest
+++ b/dev-perl/Perl-Critic/Manifest
@@ -1,2 +1,3 @@
DIST Perl-Critic-1.123.tar.gz 631981 BLAKE2B e9d09ab9961eecfd99e775d6660f4d9b2b0269cefef07482dab8657e031e9496e6fe61fdabc8ab64ffdd9c788953e341358ab898c9f61cffd6707bb96cdb5213 SHA512 732ba39d69c64ca7ff047bbd998e2dcc5f5486bd02ba7ea8135f4ac9c69ef8443bd248e4411da9ad0d4db7dfc0e5c700f92111e0b8d9962b6ed71dd2c0ff94a1
DIST Perl-Critic-1.126.tar.gz 646552 BLAKE2B 4c40181e0f787ac28e7ad657296b29d420eb2d18d0fbb7c1a29a5d848f9855102b311e7fb64307a41ed72833765df2b1e5008e42b4ee5484c1f9805a21379a8f SHA512 9427447893eabc83cafd5126d015aa29d9694a83fdd01dd45f5156af9c672a955e0ec6c0ebdddc2ab3ed2d22bdbf14cc016ce474c24fd18d8046bc2889ca33d2
+DIST Perl-Critic-1.130.tar.gz 647052 BLAKE2B 2b0905636486531dd8de50af6e490701f1785851744b78a5164539797e6d2549b46c9daef05d3061b53f82005ffc1fa47b7e2dccec613f9a5490c597d61072f4 SHA512 b443ddbb5905a61835061f49d7f10e2e71579e5df96778eb183c3d1e9987342e1536db61196b32e66a192c92916eafd9ebb7b713b0be71ce89c1f93155e89828
diff --git a/dev-perl/Perl-Critic/Perl-Critic-1.130.0.ebuild b/dev-perl/Perl-Critic/Perl-Critic-1.130.0.ebuild
new file mode 100644
index 000000000000..864d9436403e
--- /dev/null
+++ b/dev-perl/Perl-Critic/Perl-Critic-1.130.0.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DIST_AUTHOR=PETDANCE
+DIST_VERSION=1.130
+inherit perl-module elisp-common
+
+DESCRIPTION="Critique Perl source code for best-practices"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
+IUSE="test minimal examples emacs"
+SITEFILE="50${PN}-gentoo.el"
+RDEPEND="
+ >=dev-perl/B-Keywords-1.50.0
+ virtual/perl-Carp
+ >=dev-perl/Config-Tiny-2
+ >=dev-perl/Email-Address-1.889.0
+ >=dev-perl/Exception-Class-1.230.0
+ >=virtual/perl-Exporter-5.630.0
+ dev-perl/File-HomeDir
+ virtual/perl-File-Path
+ virtual/perl-File-Spec
+ virtual/perl-File-Temp
+ dev-perl/File-Which
+ virtual/perl-Getopt-Long
+ dev-perl/IO-String
+ >=dev-perl/List-MoreUtils-0.190.0
+ >=dev-perl/Module-Pluggable-3.100.0
+ >=dev-perl/PPI-1.224
+ >=dev-perl/PPIx-Regexp-0.27.0
+ >=dev-perl/PPIx-Utilities-1.1.0
+ virtual/perl-Pod-Parser
+ >=dev-perl/Pod-Spell-1
+ >=dev-perl/Readonly-2
+ virtual/perl-Scalar-List-Utils
+ >=dev-perl/String-Format-1.130.0
+ dev-perl/Task-Weaken
+ >=virtual/perl-Term-ANSIColor-2.20.0
+ >=virtual/perl-Test-Simple-0.920.0
+ >=virtual/perl-Text-ParseWords-3
+ dev-perl/Perl-Tidy
+ >=virtual/perl-version-0.770.0
+ emacs? ( virtual/emacs )
+"
+DEPEND="${RDEPEND}
+ >=dev-perl/Module-Build-0.402.400
+ test? (
+ dev-perl/Test-Deep
+ !minimal? (
+ dev-perl/Test-Memory-Cycle
+ )
+ )"
+
+src_compile() {
+ perl-module_src_compile
+ if use emacs; then
+ elisp-compile extras/perlcritic.el
+ fi
+}
+src_install() {
+ perl-module_src_install
+ if use examples; then
+ docompress -x /usr/share/doc/${PF}/examples
+ docinto examples/
+ dodoc -r examples/*
+ fi
+ if use emacs; then
+ ewarn "USE=emacs: perlcritic-mode is broken upstream, but is installed anyway"
+ ewarn " https://github.com/Perl-Critic/Perl-Critic/issues/682"
+ elisp-install ${PN} extras/perlcritic.{el,elc}
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+ fi
+}
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}