Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/imake/files/, x11-misc/imake/
Date: Sat, 28 Jul 2018 00:38:50
Message-Id: 1532738306.74852defe8df725486788a0861aad5dc45ba835d.mattst88@gentoo
1 commit: 74852defe8df725486788a0861aad5dc45ba835d
2 Author: Marty E. Plummer <hanetzer <AT> startmail <DOT> com>
3 AuthorDate: Fri Jul 27 23:36:59 2018 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 28 00:38:26 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74852def
7
8 x11-misc/imake: port to EAPI 7
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 .../imake/files/imake-1.0.7-sun-compiler.patch | 19 ++++++++
13 x11-misc/imake/imake-1.0.7-r1.ebuild | 50 ++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/x11-misc/imake/files/imake-1.0.7-sun-compiler.patch b/x11-misc/imake/files/imake-1.0.7-sun-compiler.patch
17 new file mode 100644
18 index 00000000000..27fe234f99a
19 --- /dev/null
20 +++ b/x11-misc/imake/files/imake-1.0.7-sun-compiler.patch
21 @@ -0,0 +1,19 @@
22 +--- a/imake.c
23 ++++ b/imake.c
24 +@@ -1,4 +1,6 @@
25 +-
26 ++#if defined(sun)
27 ++#undef sun
28 ++#endif
29 + /***************************************************************************
30 + * *
31 + * Porting Note *
32 +--- a/imakemdep.h
33 ++++ b/imakemdep.h
34 +@@ -1,3 +1,6 @@
35 ++#if defined(sun)
36 ++#undef sun
37 ++#endif
38 + /*
39 +
40 + Copyright (c) 1993, 1994, 1998 The Open Group
41
42 diff --git a/x11-misc/imake/imake-1.0.7-r1.ebuild b/x11-misc/imake/imake-1.0.7-r1.ebuild
43 new file mode 100644
44 index 00000000000..a4ee1f9952c
45 --- /dev/null
46 +++ b/x11-misc/imake/imake-1.0.7-r1.ebuild
47 @@ -0,0 +1,50 @@
48 +# Copyright 1999-2018 Gentoo Foundation
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI=7
52 +
53 +DESCRIPTION="C preprocessor interface to the make utility"
54 +HOMEPAGE="https://www.x.org/wiki/ https://cgit.freedesktop.org/"
55 +if [[ ${PV} == 9999 ]]; then
56 + EGIT_REPO_URI="https://anongit.freedesktop.org/git/xorg/util/imake.git"
57 + inherit autotools git-r3
58 + # x11-misc-util/macros only required on live ebuilds
59 + LIVE_DEPEND=">=x11-misc/util-macros-1.18"
60 +else
61 + SRC_URI="mirror://xorg/util/${P}.tar.bz2"
62 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
63 +fi
64 +
65 +LICENSE="MIT"
66 +SLOT="0"
67 +IUSE=""
68 +
69 +BDEPEND="
70 + virtual/pkgconfig
71 +"
72 +RDEPEND="
73 + x11-misc/xorg-cf-files
74 +"
75 +DEPEND="
76 + ${LIVE_DEPEND}
77 + ${RDEPEND}
78 + x11-base/xorg-proto
79 +"
80 +
81 +PATCHES=(
82 + # don't use Sun compilers on Solaris, we want GCC from prefix
83 + "${FILESDIR}"/${PN}-1.0.7-sun-compiler.patch
84 +)
85 +
86 +src_prepare() {
87 + default
88 + [[ ${PV} == 9999 ]] && eautoreconf
89 +}
90 +
91 +src_configure() {
92 + local econfargs=(
93 + --disable-selective-werror
94 + )
95 +
96 + econf "${econfargs[@]}"
97 +}