homebrew-core/Formula/ascii.rb
2017-08-01 22:05:29 -07:00

30 lines
979 B
Ruby

class Ascii < Formula
desc "List ASCII idiomatic names and octal/decimal code-point forms"
homepage "http://www.catb.org/~esr/ascii/"
url "http://www.catb.org/~esr/ascii/ascii-3.18.tar.gz"
sha256 "728422d5f4da61a37a17b4364d06708e543297de0a5f70305243236d80df072d"
bottle do
cellar :any_skip_relocation
sha256 "52fb2a78a1409f4f6db0b59589f773c4427c87a84a7fee1809e5f0a4d50e4d65" => :sierra
sha256 "bbb5f365f96e42dfaa8af31f21daa8809b0a628451599fab7bc7509ceeb0d14f" => :el_capitan
sha256 "ab520ebbe64a946a0ac0466537a0e207e49cd85979e41582ab542dcaef9db3ff" => :yosemite
end
head do
url "git://thyrsus.com/repositories/ascii.git"
depends_on "xmlto" => :build
end
def install
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog" if build.head?
bin.mkpath
man1.mkpath
system "make"
system "make", "PREFIX=#{prefix}", "install"
end
test do
assert_match "Official name: Line Feed", shell_output(bin/"ascii 0x0a")
end
end