diff options
Diffstat (limited to 'dev-perl/Perl-Critic-Dynamic')
3 files changed, 94 insertions, 0 deletions
diff --git a/dev-perl/Perl-Critic-Dynamic/Manifest b/dev-perl/Perl-Critic-Dynamic/Manifest index 9af8a0ef0adc..465ff341f5c3 100644 --- a/dev-perl/Perl-Critic-Dynamic/Manifest +++ b/dev-perl/Perl-Critic-Dynamic/Manifest @@ -1,3 +1,5 @@ +AUX Perl-Critic-Dynamic-0.05-test-cgi.patch 1954 BLAKE2B 6c2542c19627efd3ddbe6da87c1a495b6b5a6669ded0ef16a3a75f61be1b545f791dc593e7f277226eb345f4dbe88a8c18febbc60ea2499fed6ae2680c411082 SHA512 651a055c1da2f4403dbcb12aaa679fac4cca8ce5c6782c34e3fe781987babfb8724a5b8b131fcfe6888d5bd8d9ae8e4ef7c721c40119dcf0857df7eb0496bbc1 DIST Perl-Critic-Dynamic-0.05.tar.gz 18860 BLAKE2B bf6906ebcbae4179dea786f28e9b86e900154e6d5acc92eeaf66428833faeb89f5b986c15c32faff47b9049bba56505b4766a303c04b84a6ede66829eb67b51d SHA512 969090ac930f0adf6eb5c85051ee21ec72e8e10f113519866327632cf7eefe23d8aa1473412bb5f48422e0bf832d912e1d75c00b115e9e908be5798d1ae4c322 EBUILD Perl-Critic-Dynamic-0.50.0-r1.ebuild 406 BLAKE2B dfa40217086a34fb93dd2beb8f42faef6bc32e11dd0524eada81fae81b3db623587fc56ce77e18454a77c60e32d330f0153c759822d7f07d42344ba169c885c9 SHA512 dd60689bcc5515143e9140042cddc05ae2c84c7769dee95be91517214593a30eda6ed62b00e042ee78584e4d2089e7906d81ffb524b12995860c7edbd999f5d0 +EBUILD Perl-Critic-Dynamic-0.50.0-r2.ebuild 459 BLAKE2B 8503b29a4f7949eac0c1ddafe0cc28b82ddcf1b22a67a9eefccc1a6193381b4df8649c3453e050f30ef42dfe45a437ed581b1d8ff191e211f5e682d364a23e3a SHA512 966a28dc78cb65080c4ce9e970934b3cde92f0c5edb1ccb2295dd90ad68466b21aa013ec9e0db1c4f3a2c0c74623f10742711ff12691f66ff7e6233494b1cbe5 MISC metadata.xml 573 BLAKE2B f431aeff4466c2a7e8114b7ce22d9a24028cb41e1647fd9cdde90f22da590be5eef88d052da78f091861249b4ffba7fde9b7483bd7b7976cb213493ad1964db6 SHA512 1169bf5cb61e22de68a3cc1b8cf064f4cdd0133a76e32a4f14d57eb316f0ef46fb675425967d77f916c8c4c2f5c7672b19286ae1907bed55b1a7267339fffaf1 diff --git a/dev-perl/Perl-Critic-Dynamic/Perl-Critic-Dynamic-0.50.0-r2.ebuild b/dev-perl/Perl-Critic-Dynamic/Perl-Critic-Dynamic-0.50.0-r2.ebuild new file mode 100644 index 000000000000..53716cb24782 --- /dev/null +++ b/dev-perl/Perl-Critic-Dynamic/Perl-Critic-Dynamic-0.50.0-r2.ebuild @@ -0,0 +1,22 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DIST_AUTHOR=THALJEF +DIST_VERSION=0.05 +inherit perl-module + +DESCRIPTION="Base class for dynamic Policies" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86" +IUSE="" + +RDEPEND="dev-perl/Perl-Critic + >=dev-perl/Devel-Symdump-2.08 + dev-perl/Readonly" +DEPEND="${RDEPEND} + dev-perl/Module-Build" + +PATCHES=( "${FILESDIR}/${PN}-0.05-test-cgi.patch" ) diff --git a/dev-perl/Perl-Critic-Dynamic/files/Perl-Critic-Dynamic-0.05-test-cgi.patch b/dev-perl/Perl-Critic-Dynamic/files/Perl-Critic-Dynamic-0.05-test-cgi.patch new file mode 100644 index 000000000000..28b40ede53cc --- /dev/null +++ b/dev-perl/Perl-Critic-Dynamic/files/Perl-Critic-Dynamic-0.05-test-cgi.patch @@ -0,0 +1,70 @@ +From 42cd322ed7cc0b89692352ef5e78023bce71e865 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> +Date: Thu, 9 Apr 2015 00:46:52 +1200 +Subject: Fix AUTOLOAD test + +CGI 4.14 stopped to use AUTOLOAD which caused failing tests. This patch +provides private module with AUTOLOAD instead of relying on CGI. + +Bug: https://rt.cpan.org/Ticket/Display.html?id=103382 +--- + t/Dynamic/ValidateAgainstSymbolTable.run | 11 ++++++----- + tlib/TestAutoload.pm | 12 ++++++++++++ + 2 files changed, 18 insertions(+), 5 deletions(-) + create mode 100644 tlib/TestAutoload.pm + +diff --git a/t/Dynamic/ValidateAgainstSymbolTable.run b/t/Dynamic/ValidateAgainstSymbolTable.run +index 493a9dd..5178922 100644 +--- a/t/Dynamic/ValidateAgainstSymbolTable.run ++++ b/t/Dynamic/ValidateAgainstSymbolTable.run +@@ -336,23 +336,24 @@ use FooBar; + #----------------------------------------------------------------------------- + + ## name AUTOLOADers ignored by default ++## parms { at_inc => 'tlib' } + ## failures 0 + ## cut + +-use CGI; # Has 'sub AUTOLOAD {...}' ++use TestAutoload; # Has 'sub AUTOLOAD {...}' + +-CGI::FooBar(); ++TestAutoload::FooBar(); + + #----------------------------------------------------------------------------- + + ## name AUTOLOADers inspected on request +-## parms { inspect_autoloaders => 1 } ++## parms { at_inc => 'tlib', inspect_autoloaders => 1 } + ## failures 1 + ## cut + +-use CGI; # Has 'sub AUTOLOAD {...}' ++use TestAutoload; # Has 'sub AUTOLOAD {...}' + +-CGI::FooBar(); ++TestAutoload::FooBar(); + + + #----------------------------------------------------------------------------- +diff --git a/tlib/TestAutoload.pm b/tlib/TestAutoload.pm +new file mode 100644 +index 0000000..939f563 +--- /dev/null ++++ b/tlib/TestAutoload.pm +@@ -0,0 +1,12 @@ ++package TestAutoload; ++ ++sub AUTOLOAD { ++ print "Autoloading <$AUTOLOAD>\n"; ++ goto &foo; ++} ++ ++sub foo { ++ print "foo() called\n"; ++} ++ ++1; +-- +2.15.1 + |