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-util/makepp/, dev-util/makepp/files/
Date: Sat, 08 Jul 2017 19:44:41
Message-Id: 1499543070.2bc04d0dcb682283477b9a98ea2150f495b8e253.dilfridge@gentoo
1 commit: 2bc04d0dcb682283477b9a98ea2150f495b8e253
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 8 19:44:13 2017 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 8 19:44:30 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bc04d0d
7
8 dev-util/makepp: Add build fix for Perl 5.26, bug 623454
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 .../makepp/files/makepp-2.0.98.5-perl526.patch | 24 ++++++++++++
13 dev-util/makepp/makepp-2.0.98.5-r1.ebuild | 44 ++++++++++++++++++++++
14 2 files changed, 68 insertions(+)
15
16 diff --git a/dev-util/makepp/files/makepp-2.0.98.5-perl526.patch b/dev-util/makepp/files/makepp-2.0.98.5-perl526.patch
17 new file mode 100644
18 index 00000000000..b5ed875b4dc
19 --- /dev/null
20 +++ b/dev-util/makepp/files/makepp-2.0.98.5-perl526.patch
21 @@ -0,0 +1,24 @@
22 +diff -ruN makepp-2.0.98.5.orig/config.pl makepp-2.0.98.5/config.pl
23 +--- makepp-2.0.98.5.orig/config.pl 2017-07-08 21:35:18.257017457 +0200
24 ++++ makepp-2.0.98.5/config.pl 2017-07-08 21:39:06.087026936 +0200
25 +@@ -19,6 +19,8 @@
26 + you on?), get the latest from www.perl.org and install it.
27 + EOS
28 +
29 ++use lib q[.];
30 ++
31 + BEGIN { eval { require Mpp::Utils } or warn <<EOS and exit 1 } # avoid BEGIN/die diagnostic
32 + Please call this script in the directory where you unpacked it!
33 + EOS
34 +diff -ruN makepp-2.0.98.5.orig/install.pl makepp-2.0.98.5/install.pl
35 +--- makepp-2.0.98.5.orig/install.pl 2013-07-05 23:02:38.000000000 +0200
36 ++++ makepp-2.0.98.5/install.pl 2017-07-08 21:38:48.441026202 +0200
37 +@@ -13,6 +13,8 @@
38 + #
39 + BEGIN { eval { require 5.008 } or exec $^X, 'config.pl' } # Dies with nice message.
40 +
41 ++use lib q[.];
42 ++
43 + BEGIN { eval { require Mpp::Text } or warn <<EOS and exit 1 } # avoid BEGIN/die diagnostic
44 + Please call this script in the directory where you unpacked it!
45 + EOS
46
47 diff --git a/dev-util/makepp/makepp-2.0.98.5-r1.ebuild b/dev-util/makepp/makepp-2.0.98.5-r1.ebuild
48 new file mode 100644
49 index 00000000000..d6b300f282e
50 --- /dev/null
51 +++ b/dev-util/makepp/makepp-2.0.98.5-r1.ebuild
52 @@ -0,0 +1,44 @@
53 +# Copyright 1999-2017 Gentoo Foundation
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=6
57 +
58 +MY_PV=${PV/_}
59 +MY_P="${PN}-${MY_PV}"
60 +DESCRIPTION="GNU make replacement"
61 +HOMEPAGE="http://makepp.sourceforge.net/"
62 +SRC_URI="mirror://sourceforge/${PN}/2.1/${MY_P}.txz"
63 +
64 +LICENSE="GPL-2"
65 +SLOT="0"
66 +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-linux ~ppc-macos"
67 +IUSE=""
68 +
69 +DEPEND="dev-lang/perl:="
70 +
71 +S=${WORKDIR}/${MY_P}
72 +
73 +PATCHES=( "${FILESDIR}/${P}-perl526.patch" )
74 +
75 +src_prepare() {
76 + # default "all" rule is to run tests :x
77 + sed -i '/^all:/s:test::' config.pl || die
78 + default
79 +}
80 +
81 +src_configure() {
82 + # not an autoconf configure script
83 + ./configure \
84 + --prefix="${EPREFIX}"/usr \
85 + --bindir="${EPREFIX}"/usr/bin \
86 + --htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
87 + --mandir="${EPREFIX}"/usr/share/man \
88 + --datadir="${EPREFIX}"/usr/share/makepp \
89 + || die "configure failed"
90 +}
91 +
92 +src_test() {
93 + # work around https://bugzilla.samba.org/show_bug.cgi?id=8728
94 + export CCACHE_UNIFY=1
95 + ROOT= default
96 +}