diff options
| author | Govinda Fichtner | 2012-03-24 01:19:23 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2012-06-18 21:41:36 -0700 |
| commit | cb0fbf60d54067127975df7aa1a4480ccdacb610 (patch) | |
| tree | 1fe7de204edafbd14952227fe9f5ea7241a5fe64 /Library/Formula | |
| parent | 69b3681fa77ecf36539af0900d143df4f6a7be68 (diff) | |
| download | homebrew-cb0fbf60d54067127975df7aa1a4480ccdacb610.tar.bz2 | |
vifm-0.7.3
Vifm is a ncurses based file manager with vi like keybindings.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/vifm.rb | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Library/Formula/vifm.rb b/Library/Formula/vifm.rb new file mode 100644 index 000000000..968e8eaa8 --- /dev/null +++ b/Library/Formula/vifm.rb @@ -0,0 +1,54 @@ +require 'formula' + +class Vifm < Formula + homepage 'http://vifm.sourceforge.net/index.html' + url 'http://sourceforge.net/projects/vifm/files/vifm-0.7.3.tar.bz2' + sha1 '2198f387d607da074fd3653b3662587a5a706785' + + # OS X provides "ncurses" not "ncursesw" + def patches + DATA + end + + def install + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make install" + end +end + +__END__ +diff --git a/configure b/configure +index 16a10f5..0d77a28 100755 +--- a/configure ++++ b/configure +@@ -13307,13 +13307,13 @@ if test "${with_curses+set}" = set; then : + fi + + +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5 +-$as_echo_n "checking for initscr in -lncursesw... " >&6; } ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5 ++$as_echo_n "checking for initscr in -lncurses... " >&6; } + if ${ac_cv_lib_ncursesw_initscr+:} false; then : + $as_echo_n "(cached) " >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lncursesw $LIBS" ++LIBS="-lncurses $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + +@@ -13344,9 +13344,9 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5 + $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; } + if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then : +- LIBS="$LIBS -lncursesw" +- if test x$vifm_cv_curses = x/usr -a -d /usr/include/ncursesw; then +- CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" ++ LIBS="$LIBS -lncurses" ++ if test x$vifm_cv_curses = x/usr -a -d /usr/include/ncurses; then ++ CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses" + fi + for ac_header in ncurses.h + do : |
