public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-perl/Perl-Critic/, dev-perl/Perl-Critic/files/
@ 2016-03-19 22:42 Andreas Hüttel
  0 siblings, 0 replies; only message in thread
From: Andreas Hüttel @ 2016-03-19 22:42 UTC (permalink / raw
  To: gentoo-commits

commit:     14fcc630423988ccb57eb91eda0323602af90212
Author:     Kent Fredric <kentfredric <AT> gmail <DOT> com>
AuthorDate: Sat Mar 19 02:33:36 2016 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat Mar 19 22:41:50 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14fcc630

dev-perl/Perl-Critic: Bump to version 1.126.0

- EAPI6
- expose examples properly through USE="examples"
- install emacs script (currently broken) properly via USE="emacs"
- optional-but-useful test deps exposed through USE="minimal test"
- Excess deps pruned.

Upstream:
- No longer confused by version numbers in autodie pragmas
- High use modules like "Moose" now satisfy "strict+warnings" requirements
- New "ControlStructures::ProhibitYadaOperator" policy

Keywords: Needs re-keywording for ~alpha due to Task-Weaken

Package-Manager: portage-2.2.28

 dev-perl/Perl-Critic/Manifest                      |  1 +
 dev-perl/Perl-Critic/Perl-Critic-1.126.0.ebuild    | 83 ++++++++++++++++++++++
 dev-perl/Perl-Critic/files/50Perl-Critic-gentoo.el | 13 ++++
 dev-perl/Perl-Critic/metadata.xml                  |  3 +
 4 files changed, 100 insertions(+)

diff --git a/dev-perl/Perl-Critic/Manifest b/dev-perl/Perl-Critic/Manifest
index 012eb34..3cf3bb7 100644
--- a/dev-perl/Perl-Critic/Manifest
+++ b/dev-perl/Perl-Critic/Manifest
@@ -1,2 +1,3 @@
 DIST Perl-Critic-1.118.tar.gz 645371 SHA256 666d2bef3ac924598c06a05277680da5910e10d94c5ec161336f6509c11155e8 SHA512 d5a66826524ae2c70050bd82e715b97be2704042e477c832669c5c4443b61b3f54ddd7cd246808c1397572f299dcc42c36ab6eece5041a29bcfcd76deb7b9074 WHIRLPOOL 82516f565c28ce86884ff6575a0732c55545da6919a5503518fd3a581cc989aa55b11fe82d0f82770c904cf32cf0b1e959e9dabd6a69c1a3cb30c0d105007f8c
 DIST Perl-Critic-1.123.tar.gz 631981 SHA256 16a182e48068f75199fdf37e3188dd3985045ca134ab1df1d0922e90e30ac19c SHA512 732ba39d69c64ca7ff047bbd998e2dcc5f5486bd02ba7ea8135f4ac9c69ef8443bd248e4411da9ad0d4db7dfc0e5c700f92111e0b8d9962b6ed71dd2c0ff94a1 WHIRLPOOL 1edd106f32949e54fd2e78bd8402e2fdc8b54501b6ebbd9c300ed7b9760104b9a0af599f351c30d9084ec031007fd3711778a29ae5ba254da86aa2c1f4e223e9
+DIST Perl-Critic-1.126.tar.gz 646552 SHA256 b1a6151cb3603aef8555195b807e831655c83003b81e2f64fff095ff7114f5af SHA512 9427447893eabc83cafd5126d015aa29d9694a83fdd01dd45f5156af9c672a955e0ec6c0ebdddc2ab3ed2d22bdbf14cc016ce474c24fd18d8046bc2889ca33d2 WHIRLPOOL b89ed14331a5fc37f4268ec46e1045e1563bbf61335deef51b480adff3ecadb82bf36ab7dd16a45db865d8beaf86c5e8f4470556c3513cf987c4eed66a0d3a91

diff --git a/dev-perl/Perl-Critic/Perl-Critic-1.126.0.ebuild b/dev-perl/Perl-Critic/Perl-Critic-1.126.0.ebuild
new file mode 100644
index 0000000..ff05cc3
--- /dev/null
+++ b/dev-perl/Perl-Critic/Perl-Critic-1.126.0.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DIST_AUTHOR=THALJEF
+DIST_VERSION=1.126
+inherit perl-module elisp-common
+
+DESCRIPTION="Critique Perl source code for best-practices"
+
+SLOT="0"
+KEYWORDS="~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.220
+	>=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/perltidy
+	>=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
+}

diff --git a/dev-perl/Perl-Critic/files/50Perl-Critic-gentoo.el b/dev-perl/Perl-Critic/files/50Perl-Critic-gentoo.el
new file mode 100644
index 0000000..ade0206
--- /dev/null
+++ b/dev-perl/Perl-Critic/files/50Perl-Critic-gentoo.el
@@ -0,0 +1,13 @@
+;;; dev-perl/Perl-Critic site-lisp configuration
+(add-to-list 'load-path "@SITELISP@")
+
+(autoload 'perlcritic "perlcritic" "" t)
+(autoload 'perlcritic-region "perlcritic" "" t)
+(autoload 'perlcritic-mode "perlcritic" "" t)
+
+;;; auto-run for cperl-mode and perl-mode
+;;
+;; (eval-after-load "cperl-mode"
+;;  '(add-hook 'cperl-mode-hook 'perlcritic-mode))
+;; (eval-after-load "perl-mode"
+;;  '(add-hook 'perl-mode-hook 'perlcritic-mode))

diff --git a/dev-perl/Perl-Critic/metadata.xml b/dev-perl/Perl-Critic/metadata.xml
index d56e105..ae0ee55 100644
--- a/dev-perl/Perl-Critic/metadata.xml
+++ b/dev-perl/Perl-Critic/metadata.xml
@@ -41,6 +41,7 @@
     <remote-id type="cpan-module">Perl::Critic::Policy::BuiltinFunctions::ProhibitStringySplit</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalCan</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::BuiltinFunctions::ProhibitUniversalIsa</remote-id>
+    <remote-id type="cpan-module">Perl::Critic::Policy::BuiltinFunctions::ProhibitUselessTopic</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::BuiltinFunctions::ProhibitVoidGrep</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::BuiltinFunctions::ProhibitVoidMap</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::BuiltinFunctions::RequireBlockGrep</remote-id>
@@ -67,6 +68,7 @@
     <remote-id type="cpan-module">Perl::Critic::Policy::ControlStructures::ProhibitUnlessBlocks</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::ControlStructures::ProhibitUnreachableCode</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::ControlStructures::ProhibitUntilBlocks</remote-id>
+    <remote-id type="cpan-module">Perl::Critic::Policy::ControlStructures::ProhibitYadaOperator</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::Documentation::PodSpelling</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::Documentation::RequirePackageMatchesPodName</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::Documentation::RequirePodAtEnd</remote-id>
@@ -115,6 +117,7 @@
     <remote-id type="cpan-module">Perl::Critic::Policy::RegularExpressions::ProhibitSingleCharAlternation</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::RegularExpressions::ProhibitUnusedCapture</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::RegularExpressions::ProhibitUnusualDelimiters</remote-id>
+    <remote-id type="cpan-module">Perl::Critic::Policy::RegularExpressions::ProhibitUselessTopic</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::RegularExpressions::RequireBracesForMultiline</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::RegularExpressions::RequireDotMatchAnything</remote-id>
     <remote-id type="cpan-module">Perl::Critic::Policy::RegularExpressions::RequireExtendedFormatting</remote-id>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-19 22:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-19 22:42 [gentoo-commits] repo/gentoo:master commit in: dev-perl/Perl-Critic/, dev-perl/Perl-Critic/files/ Andreas Hüttel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox