38 lines
1.3 KiB
Ruby
38 lines
1.3 KiB
Ruby
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"
|
|
revision 1
|
|
head "https://github.com/zevv/duc.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "73b517bb32cbe3df05827770993ea8cfa721f9ac252878ad940fd3c45bebcdc8" => :high_sierra
|
|
sha256 "d8c89b0441c3d4b4321ad9c833d1ed91fa0ec7758e67d87ce44b656e75e1931d" => :sierra
|
|
sha256 "cc192c66f235d906f672dc56984a5a3fadcf60823e4c8bf2195759fb048526a5" => :el_capitan
|
|
end
|
|
|
|
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
|