diff options
| author | Philippe Bernard | 2013-08-02 00:32:37 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-25 21:23:05 -0700 |
| commit | ccb0a11bf68e742e70e751bfcc5841fe54729937 (patch) | |
| tree | 1e2e3d7456e10e6b4e2dc8f8e31ad8209bf8233f /Library/Formula/viewglob.rb | |
| parent | 26877147d05562c959686a0ba1236b6d4b785aeb (diff) | |
| download | homebrew-ccb0a11bf68e742e70e751bfcc5841fe54729937.tar.bz2 | |
viewglob 2.0.4
Closes #21600.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/viewglob.rb')
| -rw-r--r-- | Library/Formula/viewglob.rb | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Library/Formula/viewglob.rb b/Library/Formula/viewglob.rb new file mode 100644 index 000000000..62b10a20e --- /dev/null +++ b/Library/Formula/viewglob.rb @@ -0,0 +1,48 @@ +require 'formula' + +class Viewglob < Formula + homepage 'http://viewglob.sourceforge.net/' + url 'http://downloads.sourceforge.net/project/viewglob/viewglob/2.0.4/viewglob-2.0.4.tar.gz' + sha1 'd3173706c4c089d4b1ac99bbe96de805093727f4' + + depends_on :x11 + depends_on 'pkg-config' => :build + depends_on 'gettext' + depends_on 'glib' + depends_on 'gtk+' + + def patches + # Don't include the <sys/stropts.h> header, it's not available on OS X. + # Fixed upstream for next version. + DATA + end + + def install + system "./configure", "--disable-debug", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--mandir=#{man}" + system "make", "install" + end + + def caveats; <<-EOS.undent + When using viewglob with bash, to modify the prompt string PS1 used by + the viewglob shell, set the variable in ~/.bashrc (using ~/.profile or + manually setting the variable does not work). + EOS + end +end + +__END__ +diff --git a/vgseer/ptytty.c b/vgseer/ptytty.c +index e5925bf..7eeefb5 100644 +--- a/vgseer/ptytty.c ++++ b/vgseer/ptytty.c +@@ -59,7 +59,7 @@ + #ifdef HAVE_SYS_IOCTL_H + # include <sys/ioctl.h> + #endif +-#if defined(PTYS_ARE_PTMX) && !defined(__CYGWIN32__) ++#if defined(PTYS_ARE_PTMX) && !(defined(__CYGWIN32__) || defined(__APPLE__)) + # include <sys/stropts.h> /* for I_PUSH */ + #endif + |
