24 lines
802 B
Ruby
24 lines
802 B
Ruby
class Ttf2eot < Formula
|
|
desc "Convert TTF files to EOT"
|
|
homepage "https://github.com/wget/ttf2eot"
|
|
url "https://github.com/wget/ttf2eot/archive/v0.0.3.tar.gz"
|
|
sha256 "f363c4f2841b6d0b0545b30462e3c202c687d002da3d5dec7e2b827a032a3a65"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "7b44ec925ee2bbeeaba775befc77c0c22f2f690ecd94edb72e471c631da80f43" => :high_sierra
|
|
sha256 "26f40d7a58de2ee396fc04dd47c41e9b65640570fa1ca8b71134dd88e6e88c06" => :sierra
|
|
sha256 "5fc89e642b7d51c0c7965d9a952d1b697f94b4ec16d7711ff37387979ce47f5d" => :el_capitan
|
|
end
|
|
|
|
def install
|
|
system "make"
|
|
bin.install "ttf2eot"
|
|
end
|
|
|
|
test do
|
|
cp "/Library/Fonts/Arial.ttf", testpath
|
|
system("#{bin}/ttf2eot < Arial.ttf > Arial.eot")
|
|
assert_predicate testpath/"Arial.eot", :exist?
|
|
end
|
|
end
|