2011-03-10 05:11:03 +00:00
|
|
|
class Ascii < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "List ASCII idiomatic names and octal/decimal code-point forms"
|
2015-04-18 02:27:45 +00:00
|
|
|
homepage "http://www.catb.org/~esr/ascii/"
|
|
|
|
url "http://www.catb.org/~esr/ascii/ascii-3.15.tar.gz"
|
|
|
|
sha256 "ace1db8b64371d53d9ad420d341f2b542324ae70437e37b4b75646f12475ff5f"
|
|
|
|
|
2015-04-18 03:30:21 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "b7b74752e577efa60d98732e688910980436e42fbbf1f77a041cb2af458789f5" => :yosemite
|
|
|
|
sha256 "56cec53206fc55f1fcd63b09b69c1afe858f4097ac6a460b7c9c07fbdfeaa0ed" => :mavericks
|
|
|
|
sha256 "1a25c357bde021b59904fc8184c45a5eb85ae6be507a1e100aa79d441ad07943" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-04-18 02:27:45 +00:00
|
|
|
head do
|
|
|
|
url "git://thyrsus.com/repositories/ascii.git"
|
|
|
|
depends_on "xmlto" => :build
|
|
|
|
end
|
2010-11-30 15:26:19 +00:00
|
|
|
|
|
|
|
def install
|
2015-05-11 00:54:34 +00:00
|
|
|
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog" if build.head?
|
2015-04-18 02:27:45 +00:00
|
|
|
bin.mkpath
|
|
|
|
man1.mkpath
|
2010-11-30 15:26:19 +00:00
|
|
|
system "make"
|
2015-04-18 02:27:45 +00:00
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
2010-11-30 15:26:19 +00:00
|
|
|
end
|
2014-02-05 20:53:39 +00:00
|
|
|
|
|
|
|
test do
|
2014-05-04 19:12:41 +00:00
|
|
|
assert shell_output(bin/"ascii 0x0a").include?("Official name: Line Feed")
|
2014-02-05 20:53:39 +00:00
|
|
|
end
|
2010-11-30 15:26:19 +00:00
|
|
|
end
|