commit: f42b7618eae72efe165858af90d4d6138bb36166 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> AuthorDate: Sun May 9 16:53:57 2021 +0000 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> CommitDate: Sun May 9 16:53:57 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f42b7618
dev-perl/Perl-Critic: Version bump 1.140 Closes: https://bugs.gentoo.org/774414 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> dev-perl/Perl-Critic/Manifest | 1 + dev-perl/Perl-Critic/Perl-Critic-1.140.0.ebuild | 87 +++++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/dev-perl/Perl-Critic/Manifest b/dev-perl/Perl-Critic/Manifest index da71f10b386..f2ef1330e82 100644 --- a/dev-perl/Perl-Critic/Manifest +++ b/dev-perl/Perl-Critic/Manifest @@ -1 +1,2 @@ DIST Perl-Critic-1.130.tar.gz 647052 BLAKE2B 2b0905636486531dd8de50af6e490701f1785851744b78a5164539797e6d2549b46c9daef05d3061b53f82005ffc1fa47b7e2dccec613f9a5490c597d61072f4 SHA512 b443ddbb5905a61835061f49d7f10e2e71579e5df96778eb183c3d1e9987342e1536db61196b32e66a192c92916eafd9ebb7b713b0be71ce89c1f93155e89828 +DIST Perl-Critic-1.140.tar.gz 650449 BLAKE2B 648e3605278fbcd9c62437b1c3d587353541db3146829ed2d4aee5d0e240e13d692358146fd860150d1bae79d359ade93b53451a095a36f9c05f49cb0fd93d5c SHA512 46afc8260d2b500edbb29836be993f065270ed9ffa6aa00611a980b294025b794286bc820afeabb94b7d1cdd9bfb4e715e44e466fb0340cb9d938e031b54a6f0 diff --git a/dev-perl/Perl-Critic/Perl-Critic-1.140.0.ebuild b/dev-perl/Perl-Critic/Perl-Critic-1.140.0.ebuild new file mode 100644 index 00000000000..1060da915b0 --- /dev/null +++ b/dev-perl/Perl-Critic/Perl-Critic-1.140.0.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DIST_AUTHOR=PETDANCE +DIST_VERSION=1.140 +inherit perl-module elisp-common + +DESCRIPTION="Critique Perl source code for best-practices" + +SLOT="0" +KEYWORDS="~amd64" +IUSE="test minimal examples emacs" +RESTRICT="!test? ( test )" + +SITEFILE="50${PN}-gentoo.el" + +RDEPEND=" + >=dev-perl/B-Keywords-1.50.0 + virtual/perl-Carp + >=dev-perl/Config-Tiny-2 + >=dev-perl/Exception-Class-1.230.0 + >=virtual/perl-Exporter-5.630.0 + 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.265.0 + dev-perl/PPIx-QuoteLike + >=dev-perl/PPIx-Regexp-0.80.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.180.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? ( >=app-editors/emacs-23.1:* ) +" +BDEPEND="${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 +}