From 61e77fb1208242cf0106cb9059c17d4cb60f2400 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 29 Feb 2016 18:04:31 -0500 Subject: [PATCH] weechat: Fix the python plugin to load --- packages/weechat/build.sh | 2 +- packages/weechat/cmake-FindPython.cmake.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/weechat/build.sh b/packages/weechat/build.sh index 564652337..1230d9b64 100755 --- a/packages/weechat/build.sh +++ b/packages/weechat/build.sh @@ -1,6 +1,7 @@ TERMUX_PKG_HOMEPAGE=http://weechat.org/ TERMUX_PKG_DESCRIPTION="Fast, light and extensible IRC chat client" TERMUX_PKG_VERSION=1.4 +TERMUX_PKG_BUILD_REVISION=1 TERMUX_PKG_SRCURL=http://www.weechat.org/files/src/weechat-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_DEPENDS="ncurses, libgcrypt, libcurl, libgnutls, libandroid-support" # weechat-curses is a symlink to weechat, so remove it: @@ -28,7 +29,6 @@ termux_step_configure () { -DCA_FILE="$TERMUX_PREFIX/etc/tls/cert.pem" \ -DENABLE_LUA=OFF \ -DENABLE_MAN=ON \ - -DENABLE_PYTHON=ON \ -DENABLE_PYTHON3=ON \ -DENABLE_TCL=OFF \ $TERMUX_PKG_SRCDIR diff --git a/packages/weechat/cmake-FindPython.cmake.patch b/packages/weechat/cmake-FindPython.cmake.patch index 0546912ee..100fac0a5 100644 --- a/packages/weechat/cmake-FindPython.cmake.patch +++ b/packages/weechat/cmake-FindPython.cmake.patch @@ -72,7 +72,7 @@ diff -u -r ../weechat-1.3/cmake/FindPython.cmake ./cmake/FindPython.cmake +set(PYTHON_EXECUTABLE "/data/data/com.termux/files/usr/bin/python") +set(PYTHON_INCLUDE_PATH "/data/data/com.termux/files/usr/include/python3.5m") +set(PYTHON_LIBRARY "/data/data/com.termux/files/usr/lib") -+set(PYTHON_LFLAGS "-Xlinker -export-dynamic") ++set(PYTHON_LFLAGS "-Xlinker -export-dynamic -lpython3.5m") +set(PYTHON_FOUND TRUE) mark_as_advanced(