From 2bbb49a63fe4629bc1d19fd330d9ca0eba266c02 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 12 Aug 2015 01:28:36 -0400 Subject: [PATCH] weechat: Enable mouse by default --- packages/weechat/build.sh | 2 +- packages/weechat/src-core-wee-config.c.patch | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 packages/weechat/src-core-wee-config.c.patch diff --git a/packages/weechat/build.sh b/packages/weechat/build.sh index d10b40fd8..dcf3330d2 100755 --- a/packages/weechat/build.sh +++ b/packages/weechat/build.sh @@ -1,7 +1,7 @@ TERMUX_PKG_HOMEPAGE=http://weechat.org/ TERMUX_PKG_DESCRIPTION="Fast, light and extensible IRC chat client" TERMUX_PKG_VERSION=1.2 -TERMUX_PKG_BUILD_REVISION=3 +TERMUX_PKG_BUILD_REVISION=4 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: diff --git a/packages/weechat/src-core-wee-config.c.patch b/packages/weechat/src-core-wee-config.c.patch new file mode 100644 index 000000000..dfafe796a --- /dev/null +++ b/packages/weechat/src-core-wee-config.c.patch @@ -0,0 +1,14 @@ +Enable mouse support by default. + +diff -u -r ../weechat-1.2/src/core/wee-config.c ./src/core/wee-config.c +--- ../weechat-1.2/src/core/wee-config.c 2015-05-10 03:24:50.000000000 -0400 ++++ ./src/core/wee-config.c 2015-08-12 00:20:55.006420493 -0400 +@@ -2619,7 +2619,7 @@ + weechat_config_file, ptr_section, + "mouse", "boolean", + N_("enable mouse support"), +- NULL, 0, 0, "off", NULL, 0, NULL, NULL, &config_change_mouse, NULL, NULL, NULL); ++ NULL, 0, 0, "on", NULL, 0, NULL, NULL, &config_change_mouse, NULL, NULL, NULL); + config_look_mouse_timer_delay = config_file_new_option ( + weechat_config_file, ptr_section, + "mouse_timer_delay", "integer",