duc 1.4.3 (new formula)

Add formula for duc - a collection of tools for inspecting disk usage

Closes #17620.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Andrew Onyshchuk 2017-09-14 20:19:02 -05:00 committed by ilovezfs
parent d089027f4c
commit 640d16ac72

30
Formula/duc.rb Normal file
View file

@ -0,0 +1,30 @@
class Duc < Formula
desc "Suite of tools for inspecting disk usage"
homepage "http://duc.zevv.nl"
url "https://github.com/zevv/duc/releases/download/1.4.3/duc-1.4.3.tar.gz"
sha256 "504810a1ac1939fb1a70bd25e492f91ea38bcd58ae0a962ce5d35559d7775e74"
head "https://github.com/zevv/duc.git"
depends_on "pkg-config" => :build
depends_on "cairo"
depends_on "glfw"
depends_on "pango"
depends_on "tokyo-cabinet"
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--disable-x11",
"--enable-opengl"
system "make", "install"
end
test do
system "dd", "if=/dev/zero", "of=test", "count=1"
system "#{bin}/duc", "index", "."
system "#{bin}/duc", "graph", "-o", "duc.png"
assert_predicate testpath/"duc.png", :exist?, "Failed to create duc.png!"
end
end