commit:     9cff4f503b6275ac1d3cd5298a71aa39ae965419
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 22 08:03:15 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 22 08:09:22 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cff4f50

net-analyzer/httping: don't assume ncurses is built with unicode support

A fun variant/difference from the usual tinfo bugs.

Closes: https://bugs.gentoo.org/731950
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/httping/httping-2.5.ebuild | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/net-analyzer/httping/httping-2.5.ebuild 
b/net-analyzer/httping/httping-2.5.ebuild
index b4f856e559b..5a90ceb7910 100644
--- a/net-analyzer/httping/httping-2.5.ebuild
+++ b/net-analyzer/httping/httping-2.5.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit eutils toolchain-funcs
+inherit eutils toolchain-funcs flag-o-matic
 
 DESCRIPTION="http protocol ping-like program"
 HOMEPAGE="http://www.vanheusden.com/httping/";
@@ -43,13 +43,19 @@ src_prepare() {
                mkdir nl || die
                mv httping-nl.1 nl/httping.1 || die
        fi
+
 }
 
 src_configure() {
        # not an autotools script
        echo > makefile.inc || die
 
-       use ncurses && LDFLAGS+=" $( $( tc-getPKG_CONFIG ) --libs ncurses )"
+       if use ncurses ; then
+               local ncurses_flags="$($(tc-getPKG_CONFIG) --libs ncurses)"
+
+               sed -i -e "s/-lncursesw/${ncurses_flags}/" Makefile || die
+               append-ldflags "${ncurses_flags}"
+       fi
 }
 
 src_compile() {

Reply via email to