Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Math-BigInt-Lite/
Date: Fri, 30 Jun 2017 23:26:07
Message-Id: 1498865147.3564203a08d8d5d069120b0cae5ab1c74b82f97b.dilfridge@gentoo
1 commit: 3564203a08d8d5d069120b0cae5ab1c74b82f97b
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 30 23:25:47 2017 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 30 23:25:47 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3564203a
7
8 dev-perl/Math-BigInt-Lite: Add build fix for Perl 5.26, bug 617134
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 .../Math-BigInt-Lite-0.140.0.ebuild | 27 ++++++++++++++--------
13 1 file changed, 18 insertions(+), 9 deletions(-)
14
15 diff --git a/dev-perl/Math-BigInt-Lite/Math-BigInt-Lite-0.140.0.ebuild b/dev-perl/Math-BigInt-Lite/Math-BigInt-Lite-0.140.0.ebuild
16 index 519a06626cf..8a4d4061f80 100644
17 --- a/dev-perl/Math-BigInt-Lite/Math-BigInt-Lite-0.140.0.ebuild
18 +++ b/dev-perl/Math-BigInt-Lite/Math-BigInt-Lite-0.140.0.ebuild
19 @@ -1,4 +1,4 @@
20 -# Copyright 1999-2016 Gentoo Foundation
21 +# Copyright 1999-2017 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23
24 EAPI=6
25 @@ -13,17 +13,26 @@ SLOT="0"
26 KEYWORDS="~amd64 ~x86"
27 IUSE="test"
28
29 -RDEPEND=">=virtual/perl-Math-BigInt-1.940.0
30 - >=virtual/perl-Math-BigRat-0.190.0"
31 +RDEPEND="
32 + >=virtual/perl-Math-BigInt-1.940.0
33 + >=virtual/perl-Math-BigRat-0.190.0
34 +"
35 DEPEND="${RDEPEND}
36 >=virtual/perl-ExtUtils-MakeMaker-6.420.0
37 - test? ( >=virtual/perl-Test-Simple-0.520.0 )"
38 + test? ( >=virtual/perl-Test-Simple-0.520.0 )
39 +"
40 +
41 +src_prepare() {
42 + sed -i -e 's/use inc::Module::Install/use lib q[.]; use inc::Module::Install/' Makefile.PL ||
43 + die "Can't patch Makefile.PL for 5.26 dot-in-inc"
44 + perl-module_src_prepare
45 +}
46
47 src_test() {
48 - local bad_files=( "t/pod_cov.t" "t/pod.t" );
49 - einfo "t/bigintpm.t is broken: https://rt.cpan.org/Public/Bug/Display.html?id=75667";
50 - bad_files+=( "t/bigintpm.t" );
51 - perl_rm_files "${bad_files[@]}";
52 + local bad_files=( "t/pod_cov.t" "t/pod.t" )
53 + # https://rt.cpan.org/Public/Bug/Display.html?id=75667"
54 + bad_files+=( "t/bigintpm.t" )
55
56 - perl-module_src_test;
57 + perl_rm_files "${bad_files[@]}"
58 + perl-module_src_test
59 }