homebrew-core/Formula/gptfdisk.rb

29 lines
942 B
Ruby
Raw Normal View History

class Gptfdisk < Formula
desc "Text-mode partitioning tools"
homepage "http://www.rodsbooks.com/gdisk/"
url "https://downloads.sourceforge.net/project/gptfdisk/gptfdisk/1.0.0/gptfdisk-1.0.0.tar.gz"
sha256 "5b66956743a799fc0471cdb032665c1391e82f9c5b3f1d7d726d29fe2ba01d6c"
2015-05-05 06:17:19 +00:00
revision 1
2014-08-08 04:12:13 +00:00
bottle do
cellar :any
2015-05-04 23:46:12 +00:00
sha256 "5c8f8f714cd50ece24a4a126e2c28ca9d69874c04dd4dfc436f2d62a610c7dbc" => :yosemite
sha256 "7925fc5b193566014430e59c2a109b557e46750f80555cd4b045b1447be1a282" => :mavericks
sha256 "95593d9ce977a9529b11c9de8ee1089e56c67d76a642e13bdac31097aa5c7f69" => :mountain_lion
2014-08-08 04:12:13 +00:00
end
depends_on "popt"
depends_on "icu4c"
def install
system "make", "-f", "Makefile.mac"
sbin.install "gdisk", "cgdisk", "sgdisk", "fixparts"
man8.install Dir["*.8"]
end
2013-03-26 17:41:47 +00:00
test do
2014-05-04 19:12:41 +00:00
assert_match /GPT fdisk \(gdisk\) version #{Regexp.escape(version)}/,
pipe_output("#{sbin}/gdisk", "\n")
end
end