2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-02 19:27:58 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fish < Formula
|
2011-07-29 16:08:48 +00:00
|
|
|
homepage 'http://fishshell.com'
|
2013-05-17 07:56:56 +00:00
|
|
|
url 'http://fishshell.com/files/2.0.0/fish-2.0.0.tar.gz'
|
|
|
|
sha1 '2d28553e2ff975f8e5fed6b266f7a940493b6636'
|
2009-09-02 19:27:58 +00:00
|
|
|
|
2013-05-17 07:56:56 +00:00
|
|
|
head 'https://github.com/fish-shell/fish-shell.git'
|
2011-07-20 20:03:06 +00:00
|
|
|
|
|
|
|
# Indeed, the head build always builds documentation
|
2012-08-28 04:42:31 +00:00
|
|
|
depends_on 'doxygen' => :build if build.head?
|
2013-05-17 07:56:56 +00:00
|
|
|
depends_on :autoconf
|
2012-10-21 20:06:08 +00:00
|
|
|
|
2009-12-04 10:47:47 +00:00
|
|
|
skip_clean 'share/doc'
|
2009-09-02 19:27:58 +00:00
|
|
|
|
2013-07-04 16:48:48 +00:00
|
|
|
# Don't search extra folders for libiconv
|
2013-08-25 06:48:30 +00:00
|
|
|
def patches; DATA; end unless build.head?
|
2013-07-04 16:48:48 +00:00
|
|
|
|
2009-09-02 19:27:58 +00:00
|
|
|
def install
|
2013-05-17 07:56:56 +00:00
|
|
|
system "autoconf"
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2009-09-02 19:27:58 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2013-05-20 01:16:16 +00:00
|
|
|
test do
|
|
|
|
system "fish", "-c", "echo"
|
|
|
|
end
|
|
|
|
|
2011-07-20 20:03:06 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
You will need to add:
|
|
|
|
#{HOMEBREW_PREFIX}/bin/fish
|
|
|
|
to /etc/shells. Run:
|
|
|
|
chsh -s #{HOMEBREW_PREFIX}/bin/fish
|
|
|
|
to make fish your default shell.
|
|
|
|
EOS
|
2009-09-02 19:27:58 +00:00
|
|
|
end
|
|
|
|
end
|
2013-07-04 16:48:48 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
|
|
index 34f25e1..b9afa51 100644
|
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
|
|
|
@@ -98,45 +98,6 @@ AC_PROG_INSTALL
|
|
|
|
|
|
|
|
echo "CXXFLAGS: $CXXFLAGS"
|
|
|
|
|
|
|
|
-#
|
|
|
|
-# Detect directories which may contain additional headers, libraries
|
|
|
|
-# and commands. This needs to be done early - before Autoconf starts
|
|
|
|
-# to mess with CFLAGS and all the other environemnt variables.
|
|
|
|
-#
|
|
|
|
-# This mostly helps OS X users, since fink usually installs out of
|
|
|
|
-# tree and doesn't update CFLAGS.
|
|
|
|
-#
|
|
|
|
-# It also helps FreeBSD which puts libiconv in /usr/local/lib
|
|
|
|
-
|
|
|
|
-for i in /usr/pkg /sw /opt /opt/local /usr/local; do
|
|
|
|
-
|
|
|
|
- AC_MSG_CHECKING([for $i/include include directory])
|
|
|
|
- if test -d $i/include; then
|
|
|
|
- AC_MSG_RESULT(yes)
|
|
|
|
- CXXFLAGS="$CXXFLAGS -I$i/include/"
|
|
|
|
- CFLAGS="$CFLAGS -I$i/include/"
|
|
|
|
- else
|
|
|
|
- AC_MSG_RESULT(no)
|
|
|
|
- fi
|
|
|
|
-
|
|
|
|
- AC_MSG_CHECKING([for $i/lib library directory])
|
|
|
|
- if test -d $i/lib; then
|
|
|
|
- AC_MSG_RESULT(yes)
|
|
|
|
- LDFLAGS="$LDFLAGS -L$i/lib/ -Wl,-rpath,$i/lib/"
|
|
|
|
- else
|
|
|
|
- AC_MSG_RESULT(no)
|
|
|
|
- fi
|
|
|
|
-
|
|
|
|
- AC_MSG_CHECKING([for $i/bin command directory])
|
|
|
|
- if test -d $i/bin; then
|
|
|
|
- AC_MSG_RESULT(yes)
|
|
|
|
- optbindirs="$optbindirs $i/bin"
|
|
|
|
- else
|
|
|
|
- AC_MSG_RESULT(no)
|
|
|
|
- fi
|
|
|
|
-
|
|
|
|
-done
|
|
|
|
-
|
|
|
|
|
|
|
|
#
|
|
|
|
# Tell autoconf to create config.h header
|
2013-09-14 05:39:48 +00:00
|
|
|
diff --git a/reader.cpp b/reader.cpp
|
|
|
|
index f7f92e5..5f3758b 100644
|
|
|
|
--- a/reader.cpp
|
|
|
|
+++ b/reader.cpp
|
|
|
|
@@ -3035,6 +3035,9 @@ const wchar_t *reader_readline(void)
|
|
|
|
|
|
|
|
/* Since we just inserted a completion, don't immediately do a new autosugg
|
|
|
|
data->suppress_autosuggestion = true;
|
|
|
|
+
|
|
|
|
+ /* Trigger repaint (see #765) */
|
|
|
|
+ reader_repaint_if_needed();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|