29 lines
811 B
Ruby
29 lines
811 B
Ruby
require "formula"
|
|
|
|
class Gptfdisk < Formula
|
|
homepage "http://www.rodsbooks.com/gdisk/"
|
|
url "https://downloads.sourceforge.net/project/gptfdisk/gptfdisk/0.8.10/gptfdisk-0.8.10.tar.gz"
|
|
sha1 "1708e232220236b6bdf299b315e9bc2205c01ba5"
|
|
revision 2
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "a4db6095a887342b21583eca37e639afb6bc2d30" => :mavericks
|
|
sha1 "15c7a03013725b422771f26ad077c2060d4fea2a" => :mountain_lion
|
|
sha1 "174a1a62488be645d1c4f045456f94962c92e02c" => :lion
|
|
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
|
|
|
|
test do
|
|
assert_match /GPT fdisk \(gdisk\) version #{Regexp.escape(version)}/,
|
|
pipe_output("#{sbin}/gdisk", "\n")
|
|
end
|
|
end
|