2012-04-04 17:42:23 +00:00
|
|
|
class Dfc < Formula
|
2015-04-21 05:24:58 +00:00
|
|
|
homepage "http://projects.gw-computing.net/projects/dfc"
|
|
|
|
url "http://projects.gw-computing.net/attachments/download/467/dfc-3.0.5.tar.gz"
|
|
|
|
sha256 "3c947a1d6bc53347b1643921dcbf4c6f8fe7eb6167fc1f4e9436366f036d857a"
|
|
|
|
|
|
|
|
head "https://github.com/Rolinh/dfc.git"
|
2013-11-29 18:22:05 +00:00
|
|
|
|
2015-04-21 17:47:31 +00:00
|
|
|
bottle do
|
|
|
|
sha256 "c9dcc6c6992488abdf62380712f1ac72e5bbc34af82920f4a3e15e6ec026d3dc" => :yosemite
|
|
|
|
sha256 "66cb8502b640527cac7f5c3d030b19a248382c5f9ae06300ee71a84a399a904e" => :mavericks
|
|
|
|
sha256 "4b14d40212289c0e0301e5a0785ca2cd2dd4903ae2f9605176e1cbd13cea9413" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-04-21 05:24:58 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "gettext"
|
2012-04-04 17:42:23 +00:00
|
|
|
|
|
|
|
def install
|
2015-04-21 05:24:58 +00:00
|
|
|
mkdir "build" do
|
|
|
|
system "cmake", "..", *std_cmake_args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"dfc", "-T"
|
|
|
|
assert_match ",%USED,", shell_output("#{bin}/dfc -e csv")
|
2012-04-04 17:42:23 +00:00
|
|
|
end
|
|
|
|
end
|