Fredrik Fornwall
9 years ago
4 changed files with 37 additions and 73 deletions
@ -1,20 +1,19 @@ |
|||
TERMUX_PKG_HOMEPAGE=http://fishshell.com/ |
|||
TERMUX_PKG_DESCRIPTION="Shell geared towards interactive use" |
|||
_COMMIT=c76d86631717929b3a2f259615e8603e69e13256 |
|||
TERMUX_PKG_VERSION=2.2.201605030720 |
|||
TERMUX_PKG_SRCURL=https://github.com/fish-shell/fish-shell/archive/${_COMMIT}.zip |
|||
TERMUX_PKG_VERSION=2.3.1 |
|||
TERMUX_PKG_SRCURL=https://github.com/fish-shell/fish-shell/releases/download/$TERMUX_PKG_VERSION/fish-${TERMUX_PKG_VERSION}.tar.gz |
|||
# fish calls 'tput' from ncurses-utils, at least when cancelling (Ctrl+C) a command line: |
|||
TERMUX_PKG_DEPENDS="ncurses, libgnustl, libandroid-support, ncurses-utils" |
|||
TERMUX_PKG_BUILD_IN_SRC=yes |
|||
TERMUX_PKG_FOLDERNAME=fish-shell-$_COMMIT |
|||
|
|||
termux_step_pre_configure () { |
|||
cd $TERMUX_PKG_SRCDIR |
|||
autoconf |
|||
TERMUX_PKG_FOLDERNAME=fish-$TERMUX_PKG_VERSION |
|||
|
|||
CXXFLAGS+=" $CPPFLAGS" |
|||
|
|||
LDFLAGS+=" -lgnustl_shared" |
|||
termux_step_post_make_install () { |
|||
cat >> $TERMUX_PREFIX/etc/fish/config.fish <<HERE |
|||
|
|||
export PCRE2_CONFIG_EXTRAS="--host=$TERMUX_HOST_PLATFORM" |
|||
function __fish_command_not_found_handler --on-event fish_command_not_found |
|||
$TERMUX_PREFIX/libexec/termux/command-not-found \$argv[1] |
|||
end |
|||
HERE |
|||
} |
|||
|
@ -1,19 +0,0 @@ |
|||
diff -u -r ../fish-shell-c76d86631717929b3a2f259615e8603e69e13256/src/common.cpp ./src/common.cpp
|
|||
--- ../fish-shell-c76d86631717929b3a2f259615e8603e69e13256/src/common.cpp 2016-05-03 01:20:53.000000000 -0400
|
|||
+++ ./src/common.cpp 2016-05-03 07:16:32.052328928 -0400
|
|||
@@ -68,6 +68,7 @@
|
|||
void show_stackframe() { |
|||
ASSERT_IS_NOT_FORKED_CHILD(); |
|||
|
|||
+#ifndef __ANDROID__
|
|||
// Hack to avoid showing backtraces in the tester. |
|||
if (program_name && !wcscmp(program_name, L"(ignore)")) return; |
|||
|
|||
@@ -77,6 +78,7 @@
|
|||
trace_size = backtrace(trace, 32); |
|||
debug(0, L"Backtrace:"); |
|||
backtrace_symbols_fd(trace, trace_size, STDERR_FILENO); |
|||
+#endif
|
|||
} |
|||
|
|||
int fgetws2(wcstring *s, FILE *f) { |
@ -1,15 +0,0 @@ |
|||
diff -u -r ../fish-shell-c76d86631717929b3a2f259615e8603e69e13256/src/env_universal_common.h ./src/env_universal_common.h
|
|||
--- ../fish-shell-c76d86631717929b3a2f259615e8603e69e13256/src/env_universal_common.h 2016-05-03 01:20:53.000000000 -0400
|
|||
+++ ./src/env_universal_common.h 2016-05-03 07:14:21.002360936 -0400
|
|||
@@ -116,9 +116,11 @@
|
|||
// Default meta-strategy to use the 'best' notifier for the system. |
|||
strategy_default, |
|||
|
|||
+#ifndef __ANDROID__
|
|||
// Use a value in shared memory. Simple, but requires polling and therefore semi-frequent |
|||
// wakeups. |
|||
strategy_shmem_polling, |
|||
+#endif
|
|||
|
|||
// Strategy that uses a named pipe. Somewhat complex, but portable and doesn't require |
|||
// polling most of the time. |
Loading…
Reference in new issue