From 3419d18c433c2675b03067caedd135efe8406526 Mon Sep 17 00:00:00 2001 From: James Devenish Date: Sun, 12 Jan 2014 19:16:14 +0800 Subject: 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 --- Library/Formula/xdu.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Library/Formula/xdu.rb (limited to 'Library/Formula') 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 -- cgit v1.2.3