commit:     1d26ca1814811aca0463644dc3ebe920470a9357
Author:     Mats Lidell <matsl <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 17 20:07:36 2017 +0000
Commit:     Mats Lidell <matsl <AT> gentoo <DOT> org>
CommitDate: Mon Apr 17 20:08:08 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d26ca18

app-editors/xemacs: Build with ncurses using tinfo, bug #615544

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 app-editors/xemacs/files/xemacs-21.4.24-ncurses-tinfo.patch | 12 ++++++++++++
 app-editors/xemacs/xemacs-21.4.24-r1.ebuild                 |  2 ++
 app-editors/xemacs/xemacs-21.4.24.ebuild                    |  4 +++-
 3 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/app-editors/xemacs/files/xemacs-21.4.24-ncurses-tinfo.patch 
b/app-editors/xemacs/files/xemacs-21.4.24-ncurses-tinfo.patch
new file mode 100644
index 00000000000..19b8984db2d
--- /dev/null
+++ b/app-editors/xemacs/files/xemacs-21.4.24-ncurses-tinfo.patch
@@ -0,0 +1,12 @@
+diff -r e2da872593c0 configure.in
+--- a/configure.in     Tue Mar 24 22:15:53 2015 -0400
++++ b/configure.in     Mon Apr 17 10:13:05 2017 +0200
+@@ -4449,7 +4449,7 @@
+     AC_CHECK_HEADER(ncurses/curses.h, curses_h_file=ncurses/curses.h)
+     AC_CHECK_HEADER(ncurses/term.h, term_h_file=ncurses/term.h)
+     XE_ADD_OBJS(terminfo.o)
+-    XE_PREPEND(-lncurses, LIBS)
++    XE_PREPEND($(pkg-config ncurses --libs), LIBS)
+ 
+     if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
+       dnl Try again, and check for the bogus ncurses/ include bug.

diff --git a/app-editors/xemacs/xemacs-21.4.24-r1.ebuild 
b/app-editors/xemacs/xemacs-21.4.24-r1.ebuild
index e9e6f8a04e2..9f1e61beeec 100644
--- a/app-editors/xemacs/xemacs-21.4.24-r1.ebuild
+++ b/app-editors/xemacs/xemacs-21.4.24-r1.ebuild
@@ -64,6 +64,8 @@ src_prepare() {
        # see bug 576512
        epatch "${FILESDIR}"/xemacs-21.4.24-gcc5.patch
        epatch "${FILESDIR}"/xemacs-21.4.24-glibc-macro.patch
+       # see bug 615544
+       epatch "${FILESDIR}"/xemacs-21.4.24-ncurses-tinfo.patch
 
        # Some binaries and man pages are installed under suffixed names
        # to avoid collions with their GNU Emacs counterparts (see below).

diff --git a/app-editors/xemacs/xemacs-21.4.24.ebuild 
b/app-editors/xemacs/xemacs-21.4.24.ebuild
index 9305b8ed2eb..6f9245c0ea7 100644
--- a/app-editors/xemacs/xemacs-21.4.24.ebuild
+++ b/app-editors/xemacs/xemacs-21.4.24.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # Note: xemacs currently does not work with a hardened profile. If you
@@ -63,6 +63,8 @@ src_prepare() {
        epatch "${FILESDIR}"/xemacs-21.4.19-db.patch
        # see bug 576512
        epatch "${FILESDIR}"/xemacs-21.4.24-gcc5.patch
+       # see bug 615544
+       epatch "${FILESDIR}"/xemacs-21.4.24-ncurses-tinfo.patch
 
        # Some binaries and man pages are installed under suffixed names
        # to avoid collions with their GNU Emacs counterparts (see below).

Reply via email to