Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/make/, sys-devel/make/files/
Date: Fri, 14 Apr 2017 16:28:25
Message-Id: 1492187279.41815b5598cad067c07e1c6f09b118e2114a675f.mgorny@gentoo
1 commit: 41815b5598cad067c07e1c6f09b118e2114a675f
2 Author: Lei Zhang <zhanglei.april <AT> gmail <DOT> com>
3 AuthorDate: Wed Jul 27 21:36:35 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 14 16:27:59 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41815b55
7
8 sys-devel/make: default CXX to c++ instead of g++, #589894
9
10 Now with ~arch revbump!
11
12 Closes: https://github.com/gentoo/gentoo/pull/1982
13 Package-Manager: portage-2.2.28
14 Reviewed-by: Anthony G. Basile <blueness <AT> gentoo.org>
15
16 sys-devel/make/files/make-4.2-default-cxx.patch | 13 +++++++
17 sys-devel/make/make-4.2.1-r1.ebuild | 49 +++++++++++++++++++++++++
18 2 files changed, 62 insertions(+)
19
20 diff --git a/sys-devel/make/files/make-4.2-default-cxx.patch b/sys-devel/make/files/make-4.2-default-cxx.patch
21 new file mode 100644
22 index 00000000000..4d592086a6f
23 --- /dev/null
24 +++ b/sys-devel/make/files/make-4.2-default-cxx.patch
25 @@ -0,0 +1,13 @@
26 +diff --git a/default.c b/default.c
27 +index 3d865c7..e8b3ed6 100644
28 +--- a/default.c
29 ++++ b/default.c
30 +@@ -530,7 +530,7 @@ static const char *default_variables[] =
31 + "OBJC", "gcc",
32 + #else
33 + "CC", "cc",
34 +- "CXX", "g++",
35 ++ "CXX", "c++",
36 + "OBJC", "cc",
37 + #endif
38 +
39
40 diff --git a/sys-devel/make/make-4.2.1-r1.ebuild b/sys-devel/make/make-4.2.1-r1.ebuild
41 new file mode 100644
42 index 00000000000..2b944c675fa
43 --- /dev/null
44 +++ b/sys-devel/make/make-4.2.1-r1.ebuild
45 @@ -0,0 +1,49 @@
46 +# Copyright 1999-2017 Gentoo Foundation
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=5
50 +
51 +inherit flag-o-matic eutils
52 +
53 +DESCRIPTION="Standard tool to compile source trees"
54 +HOMEPAGE="https://www.gnu.org/software/make/make.html"
55 +SRC_URI="mirror://gnu//make/${P}.tar.bz2"
56 +
57 +LICENSE="GPL-3+"
58 +SLOT="0"
59 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
60 +IUSE="guile nls static"
61 +
62 +CDEPEND="guile? ( >=dev-scheme/guile-1.8:= )"
63 +DEPEND="${CDEPEND}
64 + nls? ( sys-devel/gettext )"
65 +RDEPEND="${CDEPEND}
66 + nls? ( virtual/libintl )"
67 +
68 +PATCHES=(
69 + "${FILESDIR}"/${PN}-3.82-darwin-library_search-dylib.patch
70 + "${FILESDIR}"/${PN}-4.2-default-cxx.patch
71 +)
72 +
73 +src_prepare() {
74 + epatch "${PATCHES[@]}"
75 +}
76 +
77 +src_configure() {
78 + use static && append-ldflags -static
79 + econf \
80 + --program-prefix=g \
81 + $(use_with guile) \
82 + $(use_enable nls)
83 +}
84 +
85 +src_install() {
86 + emake DESTDIR="${D}" install
87 + dodoc AUTHORS NEWS README*
88 + if [[ ${USERLAND} == "GNU" ]] ; then
89 + # we install everywhere as 'gmake' but on GNU systems,
90 + # symlink 'make' to 'gmake'
91 + dosym gmake /usr/bin/make
92 + dosym gmake.1 /usr/share/man/man1/make.1
93 + fi
94 +}