dev-perl/Net-SSH-Perl: Remove use of Module::Signature
authorKent Fredric <kentnl@gentoo.org>
Thu, 23 Mar 2017 16:10:15 +0000 (05:10 +1300)
committerKent Fredric <kentnl@gentoo.org>
Thu, 23 Mar 2017 16:34:10 +0000 (05:34 +1300)
Gentoo has its own integrity protocols anyway, and even minor
patching upsets signatures.

Its not worth the added dependency complexity.

Package-Manager: Portage-2.3.4, Repoman-2.3.2

dev-perl/Net-SSH-Perl/Net-SSH-Perl-2.90.0_p1.ebuild

index 52cb2d6d91b66bb90a8f5b3e243e387e6e2ed163..263260c727a87acb22843266320b9d24793d9207 100644 (file)
@@ -26,7 +26,6 @@ RDEPEND="
        virtual/perl-Scalar-List-Utils
        >=dev-perl/String-CRC32-1.200.0
        !minimal? (
-               >=dev-perl/Module-Signature-0.500.0
                dev-perl/Digest-BubbleBabble
                dev-perl/Crypt-RSA
                dev-perl/TermReadKey
@@ -36,3 +35,12 @@ DEPEND="${RDEPEND}
        virtual/perl-ExtUtils-MakeMaker
        test? ( >=virtual/perl-Test-Simple-0.610.0 )
 "
+PERL_RM_FILES=( # Gentoo integrity checks are used instead
+       'SIGNATURE'
+       't/00-signature.t'
+)
+src_prepare() {
+       sed -i -r -e '/signature_target/d' \
+               "${S}/Makefile.PL" || "Can't strip signing controls from Makefile.PL"
+       perl-module_src_prepare
+}