diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-01-10 15:21:09 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-01-10 15:28:25 +0100 |
commit | a7329c5d4baefb7120d30f8afa3e0ed80cb75899 (patch) | |
tree | c125b1fd55ec458e21466fd1b6e8f1883a71538a /sys-devel/gdb-apple | |
parent | app-emulation/docker: Version bump to 18.09.1 (diff) | |
download | gentoo-a7329c5d4baefb7120d30f8afa3e0ed80cb75899.tar.gz gentoo-a7329c5d4baefb7120d30f8afa3e0ed80cb75899.tar.bz2 gentoo-a7329c5d4baefb7120d30f8afa3e0ed80cb75899.zip |
sys-devel/gdb-apple: use system readline iso bundled one
in addition, ignore doc generation, current versions of texinfo are too
new
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'sys-devel/gdb-apple')
-rw-r--r-- | sys-devel/gdb-apple/gdb-apple-1752.ebuild | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/sys-devel/gdb-apple/gdb-apple-1752.ebuild b/sys-devel/gdb-apple/gdb-apple-1752.ebuild index 26baa8079e9b..6f9458c8f084 100644 --- a/sys-devel/gdb-apple/gdb-apple-1752.ebuild +++ b/sys-devel/gdb-apple/gdb-apple-1752.ebuild @@ -17,7 +17,8 @@ KEYWORDS="~ppc-macos ~x64-macos ~x86-macos" IUSE="nls" -RDEPEND=">=sys-libs/ncurses-5.2-r2 +RDEPEND=">=sys-libs/ncurses-5.2-r2:0= + sys-libs/readline:0= =dev-db/sqlite-3*" DEPEND="${RDEPEND} nls? ( sys-devel/gettext ) @@ -35,13 +36,20 @@ PATCHES=( src_prepare() { default [[ ${CHOST} == *-darwin8 ]] && eapply "${FILESDIR}"/${PN}-1518-darwin8.patch + + # use host readline + sed -i -e '/host_libs/s/readline//' configure.in configure || die + sed -i \ + -e '/^\(READLINE\|readline\)_/s/=.*$/=/' \ + -e '/^READLINE /s/=.*$/= -lreadline/' \ + gdb/Makefile.in || die } src_configure() { if tc-is-gcc ; then # force gcc-apple, FSF gcc doesn't grok this code - export CC=${CTARGET}-gcc-4.2.1 - export CXX=${CTARGET}-g++-4.2.1 + export CC=${CTARGET:-${CHOST}}-gcc-4.2.1 + export CXX=${CTARGET:-${CHOST}}-g++-4.2.1 fi replace-flags -O? -O2 @@ -54,11 +62,15 @@ src_configure() { src_compile() { # unable to work around parallel make issue - emake -j2 || die + # ignore texinfo issues (version mismatch, to hard to fix or + # disable) + emake -j2 MAKEINFOFLAGS="--force" || die } src_install() { - emake -j2 DESTDIR="${D}" libdir=/nukeme includedir=/nukeme install || die + emake -j2 \ + DESTDIR="${D}" libdir=/nukeme includedir=/nukeme \ + MAKEINFOFLAGS="--force" install || die rm -R "${D}"/nukeme || die rm -Rf "${ED}"/usr/${CHOST} || die mv "${ED}"/usr/bin/gdb "${ED}"/ |