diff options
| author | James Devenish | 2014-01-12 19:16:14 +0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-08 08:48:25 -0800 |
| commit | 3419d18c433c2675b03067caedd135efe8406526 (patch) | |
| tree | 70cfbdb8dec8b6eeff17765a986053c9cc2a17c1 /Library/Formula | |
| parent | 91a82095c322c084251e3f5e7c2f2463db6daa05 (diff) | |
| download | homebrew-3419d18c433c2675b03067caedd135efe8406526.tar.bz2 | |
xdu 3.0
xdu displays the output of 'du' using X11. This stable version
from 1994 has been included as a contrib package in X11R6 and
many Unix/Linux distributions.
Closes #25834.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/xdu.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/xdu.rb b/Library/Formula/xdu.rb new file mode 100644 index 000000000..914d043d7 --- /dev/null +++ b/Library/Formula/xdu.rb @@ -0,0 +1,20 @@ +require "formula" + +class Xdu < Formula + homepage "http://sd.wareonearth.com/~phil/xdu/" + url "http://sd.wareonearth.com/~phil/xdu/xdu-3.0.tar.Z" + sha1 "196e2ba03253fd6b8a88fafe6b00e40632183d0c" + + depends_on :x11 + + def install + ENV.append_to_cflags "-I#{MacOS::X11.include}" + ENV.append_to_cflags "-Wno-return-type" + ENV.append "LDFLAGS", "-L#{MacOS::X11.lib}" + + system "#{ENV.cc} -o xdu #{ENV.cflags} #{ENV.ldflags} -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 xdu.c xwin.c" + bin.install "xdu" + man1.install "xdu.man" => "xdu.1x" + (etc/"X11/app-defaults").install "XDu.ad" => "XDu" + end +end |
