Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/m4/
Date: Mon, 25 Feb 2019 10:55:44
Message-Id: 1551092109.2335f85308da82f1984ddb196663b8ba13b1cc38.zlogene@gentoo
1 commit: 2335f85308da82f1984ddb196663b8ba13b1cc38
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 25 10:53:53 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 25 10:55:09 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2335f853
7
8 sys-devel/m4: EAPI bump
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 sys-devel/m4/m4-1.4.18-r1.ebuild | 49 ++++++++++++++++++++++++++++++++++++++++
14 1 file changed, 49 insertions(+)
15
16 diff --git a/sys-devel/m4/m4-1.4.18-r1.ebuild b/sys-devel/m4/m4-1.4.18-r1.ebuild
17 new file mode 100644
18 index 00000000000..68a9ef48cc9
19 --- /dev/null
20 +++ b/sys-devel/m4/m4-1.4.18-r1.ebuild
21 @@ -0,0 +1,49 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI="6"
26 +
27 +DESCRIPTION="GNU macro processor"
28 +HOMEPAGE="https://www.gnu.org/software/m4/m4.html"
29 +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
30 +
31 +LICENSE="GPL-3"
32 +SLOT="0"
33 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
34 +IUSE="examples"
35 +
36 +# remember: cannot dep on autoconf since it needs us
37 +DEPEND="app-arch/xz-utils"
38 +RDEPEND=""
39 +
40 +src_prepare() {
41 + eapply "${FILESDIR}"/${P}-darwin17-printf-n.patch
42 + eapply "${FILESDIR}"/${P}-glibc228.patch #663924
43 + default
44 +}
45 +
46 +src_configure() {
47 + # Disable automagic dependency over libsigsegv; see bug #278026
48 + export ac_cv_libsigsegv=no
49 +
50 + local myconf=""
51 + [[ ${USERLAND} != "GNU" ]] && myconf="--program-prefix=g"
52 + econf --enable-changeword ${myconf}
53 +}
54 +
55 +src_test() {
56 + [[ -d /none ]] && die "m4 tests will fail with /none/" #244396
57 + emake check
58 +}
59 +
60 +src_install() {
61 + default
62 + # autoconf-2.60 for instance, first checks gm4, then m4. If we don't have
63 + # gm4, it might find gm4 from outside the prefix on for instance Darwin
64 + use prefix && dosym /usr/bin/m4 /usr/bin/gm4
65 + if use examples ; then
66 + docinto examples
67 + dodoc -r examples/
68 + rm -f "${ED}"/usr/share/doc/${PF}/examples/Makefile*
69 + fi
70 +}