diff options
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.152.0.ebuild | 85 |
2 files changed, 86 insertions, 0 deletions
diff --git a/dev-perl/Perl-Critic/Manifest b/dev-perl/Perl-Critic/Manifest index 45dcc2d25b5a..72ecca91fa8f 100644 --- a/dev-perl/Perl-Critic/Manifest +++ b/dev-perl/Perl-Critic/Manifest @@ -1,2 +1,3 @@ DIST Perl-Critic-1.140.tar.gz 650449 BLAKE2B 648e3605278fbcd9c62437b1c3d587353541db3146829ed2d4aee5d0e240e13d692358146fd860150d1bae79d359ade93b53451a095a36f9c05f49cb0fd93d5c SHA512 46afc8260d2b500edbb29836be993f065270ed9ffa6aa00611a980b294025b794286bc820afeabb94b7d1cdd9bfb4e715e44e466fb0340cb9d938e031b54a6f0 DIST Perl-Critic-1.150.tar.gz 662419 BLAKE2B 0a8191c3bde85e78d5c41f8bed87048a9edbedbd4ded81ba7227dc03d4d467f3d0bf224cd8bc8e727d99984f6e241740ec2ce6cea523a44f4c887fdf76aff566 SHA512 cc5c604c77865edcf8824e3ffbfb44adda0e9d56f8fad35832d35be8b85450fc9c85ba7c0b6859a8f54523285067d46296eea88f2034c98cd7aa61a8511f3b34 +DIST Perl-Critic-1.152.tar.gz 662426 BLAKE2B 850f0e7cce2a46929b6c104e6f78d8259b9cbf7eb6ecdb84ef601ca098cae9f30866eeaca72a7bba095c0a8b42e71d3fd36a01c972fe8e5d45e1e3ee6755cbb3 SHA512 273aeb46617cf614b044c76c4307faf80c8ee4702f115f4baa7d23306164a70e70394fd64e3d89e43650a7314a3bd21ab96ee6daba28f1a12d9d32bd5032779c diff --git a/dev-perl/Perl-Critic/Perl-Critic-1.152.0.ebuild b/dev-perl/Perl-Critic/Perl-Critic-1.152.0.ebuild new file mode 100644 index 000000000000..21dac4f9ce85 --- /dev/null +++ b/dev-perl/Perl-Critic/Perl-Critic-1.152.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=PETDANCE +DIST_VERSION=1.152 +inherit perl-module elisp-common + +DESCRIPTION="Critique Perl source code for best-practices" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="minimal examples emacs" + +SITEFILE="50${PN}-gentoo.el" + +RDEPEND=" + >=dev-perl/B-Keywords-1.230.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/List-SomeUtils + >=dev-perl/Module-Pluggable-3.100.0 + >=dev-perl/PPI-1.277.0 + dev-perl/PPIx-QuoteLike + >=dev-perl/PPIx-Regexp-0.80.0 + dev-perl/PPIx-Utils + >=dev-perl/Pod-Spell-1 + >=dev-perl/Readonly-2 + virtual/perl-Scalar-List-Utils + >=dev-perl/String-Format-1.180.0 + >=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.420.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 +} |