diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-05-09 18:53:57 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-05-09 18:53:57 +0200 |
commit | f42b7618eae72efe165858af90d4d6138bb36166 (patch) | |
tree | 2b894e56203bf2259e799f899b5739450f52e6e5 /dev-perl/Perl-Critic | |
parent | dev-perl/PPIx-QuoteLike: New package, needed for Perl::Critic (diff) | |
download | gentoo-f42b7618eae72efe165858af90d4d6138bb36166.tar.gz gentoo-f42b7618eae72efe165858af90d4d6138bb36166.tar.bz2 gentoo-f42b7618eae72efe165858af90d4d6138bb36166.zip |
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@gentoo.org>
Diffstat (limited to 'dev-perl/Perl-Critic')
-rw-r--r-- | dev-perl/Perl-Critic/Manifest | 1 | ||||
-rw-r--r-- | dev-perl/Perl-Critic/Perl-Critic-1.140.0.ebuild | 87 |
2 files changed, 88 insertions, 0 deletions
diff --git a/dev-perl/Perl-Critic/Manifest b/dev-perl/Perl-Critic/Manifest index da71f10b3861..f2ef1330e826 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 000000000000..1060da915b09 --- /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 +} |