summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-11-24 12:19:19 -0500
committerMike Frysinger <vapier@gentoo.org>2015-11-24 12:19:19 -0500
commit6f1dbf0fbda3ff83d5b1a9290a38e262f05bdb38 (patch)
tree866d5daed194cc1280c18408ddfdd70b7acbf85f /www-client/lynx
parentmultiprocessing.eclass: makeopts_loadavg: various fixes #543116 (diff)
downloadgentoo-6f1dbf0fbda3ff83d5b1a9290a38e262f05bdb38.tar.gz
gentoo-6f1dbf0fbda3ff83d5b1a9290a38e262f05bdb38.tar.bz2
gentoo-6f1dbf0fbda3ff83d5b1a9290a38e262f05bdb38.zip
www-client/lynx: fix ncurses cross-compiling logic
Diffstat (limited to 'www-client/lynx')
-rw-r--r--www-client/lynx/files/lynx-2.8.9-cross-curses.patch19
-rw-r--r--www-client/lynx/lynx-2.8.9_pre6.ebuild3
2 files changed, 21 insertions, 1 deletions
diff --git a/www-client/lynx/files/lynx-2.8.9-cross-curses.patch b/www-client/lynx/files/lynx-2.8.9-cross-curses.patch
new file mode 100644
index 000000000000..e541586efc50
--- /dev/null
+++ b/www-client/lynx/files/lynx-2.8.9-cross-curses.patch
@@ -0,0 +1,19 @@
+the curses test logic does not provide a fallback case when trying to run
+the curses test program. set that here to true since we know the deps are
+sane via the ebuild.
+
+we could patch aclocal.m4, but this package doesn't rebuild autotools atm.
+
+--- a/configure
++++ b/configure
+@@ -20146,9 +20146,7 @@
+ echo "$as_me:20146: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ if test "$cross_compiling" = yes; then
+- { { echo "$as_me:20149: error: cannot run test program while cross compiling" >&5
+-echo "$as_me: error: cannot run test program while cross compiling" >&2;}
+- { (exit 1); exit 1; }; }
++cf_have_ncuconfig=yes
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line 20154 "configure"
diff --git a/www-client/lynx/lynx-2.8.9_pre6.ebuild b/www-client/lynx/lynx-2.8.9_pre6.ebuild
index 3abdfda29c50..265115abd1b2 100644
--- a/www-client/lynx/lynx-2.8.9_pre6.ebuild
+++ b/www-client/lynx/lynx-2.8.9_pre6.ebuild
@@ -53,6 +53,7 @@ pkg_setup() {
src_prepare() {
epatch "${FILESDIR}"/${PN}-2.8.6-mint.patch
epatch "${FILESDIR}"/${PN}-2.8.8_p1-parallel.patch
+ epatch "${FILESDIR}"/${PN}-2.8.9-cross-curses.patch
}
src_configure() {
@@ -76,7 +77,7 @@ src_configure() {
$(use_enable unicode japanese-utf8) \
$(use_with bzip2 bzlib) \
$(usex ssl "--with-$(usex gnutls gnutls ssl)=${EPREFIX}/usr" "") \
- $(usex unicode "--with-screen=ncursesw" "")
+ --with-screen=$(usex unicode "ncursesw" "ncurses")
}
src_install() {