diff options
| author | Michael Dippery | 2011-01-06 17:52:47 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2011-01-08 10:54:50 +0000 |
| commit | 6be367fc307dead81acde86f34b29db6c3a81534 (patch) | |
| tree | 4c85e8edcea688e14dfe691356042012aa2c0c8c /Library/Formula/nvi.rb | |
| parent | fece0445145d6656463c0e24211a007a1bcad9c0 (diff) | |
| download | homebrew-6be367fc307dead81acde86f34b29db6c3a81534.tar.bz2 | |
nvi: New formula
Closes #3613.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/nvi.rb')
| -rw-r--r-- | Library/Formula/nvi.rb | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Library/Formula/nvi.rb b/Library/Formula/nvi.rb new file mode 100644 index 000000000..093212f69 --- /dev/null +++ b/Library/Formula/nvi.rb @@ -0,0 +1,54 @@ +require 'formula' + +class Nvi < Formula + url 'http://www.kotnet.org/~skimo/nvi/devel/nvi-1.81.6.tar.bz2' + homepage 'https://sites.google.com/a/bostic.com/keithbostic/nvi' + md5 '88d1e23115ee9f2961186b62e55f5704' + + depends_on 'berkeley-db' + + skip_clean :all + + def patches + DATA + end + + def install + Dir.chdir('dist') do + system "./configure", "--prefix=#{prefix}", + "--program-prefix=n", + "--disable-dependency-tracking" + system "make" + ENV.j1 + system "make install" + end + end +end + +__END__ +diff --git a/ex/ex_script.c b/ex/ex_script.c +index 31f42c1..8f0104a 100644 +--- a/ex/ex_script.c ++++ b/ex/ex_script.c +@@ -12,6 +12,10 @@ + + #include "config.h" + ++#ifdef __APPLE__ ++#undef HAVE_SYS5_PTY ++#endif ++ + #ifndef lint + static const char sccsid[] = "$Id: ex_script.c,v 10.38 2001/06/25 15:19:19 skimo Exp $ (Berkeley) $Date: 2001/06/25 15:19:19 $"; + #endif /* not lint */ +@@ -45,6 +49,10 @@ static const char sccsid[] = "$Id: ex_script.c,v 10.38 2001/06/25 15:19:19 skimo + #include "script.h" + #include "pathnames.h" + ++#ifdef __APPLE__ ++#undef HAVE_SYS5_PTY ++#endif ++ + static void sscr_check __P((SCR *)); + static int sscr_getprompt __P((SCR *)); + static int sscr_init __P((SCR *)); |
