Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gdb-apple/
Date: Thu, 10 Jan 2019 14:28:42
Message-Id: 1547130505.a7329c5d4baefb7120d30f8afa3e0ed80cb75899.grobian@gentoo
1 commit: a7329c5d4baefb7120d30f8afa3e0ed80cb75899
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 10 14:21:09 2019 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 10 14:28:25 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7329c5d
7
8 sys-devel/gdb-apple: use system readline iso bundled one
9
10 in addition, ignore doc generation, current versions of texinfo are too
11 new
12
13 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
14 Package-Manager: Portage-2.3.51, Repoman-2.3.11
15
16 sys-devel/gdb-apple/gdb-apple-1752.ebuild | 22 +++++++++++++++++-----
17 1 file changed, 17 insertions(+), 5 deletions(-)
18
19 diff --git a/sys-devel/gdb-apple/gdb-apple-1752.ebuild b/sys-devel/gdb-apple/gdb-apple-1752.ebuild
20 index 26baa8079e9..6f9458c8f08 100644
21 --- a/sys-devel/gdb-apple/gdb-apple-1752.ebuild
22 +++ b/sys-devel/gdb-apple/gdb-apple-1752.ebuild
23 @@ -17,7 +17,8 @@ KEYWORDS="~ppc-macos ~x64-macos ~x86-macos"
24
25 IUSE="nls"
26
27 -RDEPEND=">=sys-libs/ncurses-5.2-r2
28 +RDEPEND=">=sys-libs/ncurses-5.2-r2:0=
29 + sys-libs/readline:0=
30 =dev-db/sqlite-3*"
31 DEPEND="${RDEPEND}
32 nls? ( sys-devel/gettext )
33 @@ -35,13 +36,20 @@ PATCHES=(
34 src_prepare() {
35 default
36 [[ ${CHOST} == *-darwin8 ]] && eapply "${FILESDIR}"/${PN}-1518-darwin8.patch
37 +
38 + # use host readline
39 + sed -i -e '/host_libs/s/readline//' configure.in configure || die
40 + sed -i \
41 + -e '/^\(READLINE\|readline\)_/s/=.*$/=/' \
42 + -e '/^READLINE /s/=.*$/= -lreadline/' \
43 + gdb/Makefile.in || die
44 }
45
46 src_configure() {
47 if tc-is-gcc ; then
48 # force gcc-apple, FSF gcc doesn't grok this code
49 - export CC=${CTARGET}-gcc-4.2.1
50 - export CXX=${CTARGET}-g++-4.2.1
51 + export CC=${CTARGET:-${CHOST}}-gcc-4.2.1
52 + export CXX=${CTARGET:-${CHOST}}-g++-4.2.1
53 fi
54
55 replace-flags -O? -O2
56 @@ -54,11 +62,15 @@ src_configure() {
57
58 src_compile() {
59 # unable to work around parallel make issue
60 - emake -j2 || die
61 + # ignore texinfo issues (version mismatch, to hard to fix or
62 + # disable)
63 + emake -j2 MAKEINFOFLAGS="--force" || die
64 }
65
66 src_install() {
67 - emake -j2 DESTDIR="${D}" libdir=/nukeme includedir=/nukeme install || die
68 + emake -j2 \
69 + DESTDIR="${D}" libdir=/nukeme includedir=/nukeme \
70 + MAKEINFOFLAGS="--force" install || die
71 rm -R "${D}"/nukeme || die
72 rm -Rf "${ED}"/usr/${CHOST} || die
73 mv "${ED}"/usr/bin/gdb "${ED}"/