Added Python3. (Still testing integration)

This commit is contained in:
Gerhard Stein
2016-12-03 11:31:30 +01:00
parent 9a1dbfc234
commit 1194788eb9
47 changed files with 2092 additions and 10 deletions

View File

@@ -0,0 +1,16 @@
pushd src >/dev/null
rm -rf "${PACKAGE}"
tar -xf "${PACKAGE}.tar.gz" || exit 1
pushd "${PACKAGE}" >/dev/null
patch -p1 < "${FILESDIR}/${PACKAGE}-android-locale-fixes.patch"
./configure --prefix="${PREFIX}" --host="${TARGET}" --build="${HOST}" --without-ada --without-manpages --without-progs --without-tests --with-termlib --enable-termcap --enable-widec --disable-database --disable-home-terminfo || exit 1
make || exit 1
make install || exit 1
# Fix symlinks for Python _curses and _curses_panel extensions.
ln -s ncursesw/curses.h "${PREFIX}/include/curses.h" || exit 1
ln -s ncursesw/panel.h "${PREFIX}/include/panel.h" || exit 1
popd >/dev/null
popd >/dev/null

View File

@@ -0,0 +1,12 @@
diff -ru ncurses-5.9/form/fty_num.c ncurses-5.9-android/form/fty_num.c
--- ncurses-5.9/form/fty_num.c 2010-01-23 22:14:36.000000000 +0100
+++ ncurses-5.9-android/form/fty_num.c 2014-08-04 23:04:23.000000000 +0200
@@ -40,7 +40,7 @@
#include <locale.h>
#endif
-#if HAVE_LOCALE_H
+#if HAVE_LOCALE_H && !__ANDROID__
#define isDecimalPoint(c) ((c) == ((L && L->decimal_point) ? *(L->decimal_point) : '.'))
#else
#define isDecimalPoint(c) ((c) == '.')

View File

@@ -0,0 +1 @@
https://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz