diff options
Diffstat (limited to 'dev-perl/Perl-Critic')
-rw-r--r-- | dev-perl/Perl-Critic/Manifest | 2 | ||||
-rw-r--r-- | dev-perl/Perl-Critic/Perl-Critic-1.150.0.ebuild | 85 |
2 files changed, 87 insertions, 0 deletions
diff --git a/dev-perl/Perl-Critic/Manifest b/dev-perl/Perl-Critic/Manifest index d61a451def4a..e507153c1f0f 100644 --- a/dev-perl/Perl-Critic/Manifest +++ b/dev-perl/Perl-Critic/Manifest @@ -1,4 +1,6 @@ AUX 50Perl-Critic-gentoo.el 435 BLAKE2B 67cd9711566c4f06785a1060202638c7501648a5c1b2c479785389d2c4106b05f3e9193c1c517810a1798efe8b6f06c4ca363682e7c89d9dfc0c594e0bce5c6d SHA512 2f0d1135e98c4fe3a920b24b0540459b2c609bcc81f4a7dcc39dcb390646837573f2896df4fc7c2e0da6650ece104c9a6c1ba6f894c9755967b92117f28551e6 DIST Perl-Critic-1.140.tar.gz 650449 BLAKE2B 648e3605278fbcd9c62437b1c3d587353541db3146829ed2d4aee5d0e240e13d692358146fd860150d1bae79d359ade93b53451a095a36f9c05f49cb0fd93d5c SHA512 46afc8260d2b500edbb29836be993f065270ed9ffa6aa00611a980b294025b794286bc820afeabb94b7d1cdd9bfb4e715e44e466fb0340cb9d938e031b54a6f0 +DIST Perl-Critic-1.150.tar.gz 662419 BLAKE2B 0a8191c3bde85e78d5c41f8bed87048a9edbedbd4ded81ba7227dc03d4d467f3d0bf224cd8bc8e727d99984f6e241740ec2ce6cea523a44f4c887fdf76aff566 SHA512 cc5c604c77865edcf8824e3ffbfb44adda0e9d56f8fad35832d35be8b85450fc9c85ba7c0b6859a8f54523285067d46296eea88f2034c98cd7aa61a8511f3b34 EBUILD Perl-Critic-1.140.0-r1.ebuild 1965 BLAKE2B 2bdb56af548cdb005a79da7eae74f2114719075287660d621049dd0a4fac130c3637f881b34ba5fb7dcc1edf671308ae13da391926cb742acde51f5fe645acf6 SHA512 fcff48a0e2ba43bf74520ec9277a573a596cf75fa66d9424fbb4ecff2662548b8ed449bd0522c69841d8e102082368c9d500d90fab896978d16fe02dd4b2dd4d +EBUILD Perl-Critic-1.150.0.ebuild 1866 BLAKE2B 25699932834797d205bcd776ff9240b45a13db2c3146192140efdb5b763e8a6e369e2d1d754cde2090376138e5f09f0e6ac8c1df5ba64dd390423782cbe29e48 SHA512 e7da14435c7e1cc1e93a1ae183498b71ddb3c09fab0de9542344ad29712bd3c7bcbb8d2cf9c185d75ae08ba6e32e8bc5555734439f5438bdf3941596ae51ab2c MISC metadata.xml 20126 BLAKE2B 8e2ae5e5a1c2214056ab7d6f71429bea085727ff75a7ec4bf40728e54ed955abca0d3c1890dcaf7267db9609fe16db0c629d4f06d060fb0bbee50499d4bb87dd SHA512 ad0138f3cf0a781079142de3641747309779e350081aa6339481396cd7771f0e72391896a1e7e68fc9f2afa5e4dff6c4674a36e5b91a5a07d956137b634a1e9f diff --git a/dev-perl/Perl-Critic/Perl-Critic-1.150.0.ebuild b/dev-perl/Perl-Critic/Perl-Critic-1.150.0.ebuild new file mode 100644 index 000000000000..43dceb9983fe --- /dev/null +++ b/dev-perl/Perl-Critic/Perl-Critic-1.150.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.150 +inherit perl-module elisp-common + +DESCRIPTION="Critique Perl source code for best-practices" + +SLOT="0" +KEYWORDS="~amd64 ~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.271.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 +} |