2010-11-30 15:26:19 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ascii < Formula
|
2011-08-11 16:22:37 +00:00
|
|
|
homepage 'http://www.catb.org/~esr/ascii/'
|
2013-12-07 13:46:50 +00:00
|
|
|
url 'http://www.catb.org/~esr/ascii/ascii-3.14.tar.gz'
|
|
|
|
sha1 'fd8281078c1b3d52d4080ced1855f4f540d5a501'
|
2010-11-30 15:26:19 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make"
|
|
|
|
bin.install "ascii"
|
2012-07-01 21:57:40 +00:00
|
|
|
man1.install 'ascii.1'
|
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
|