2012-01-09 05:57:54 +00:00
class Cadubi < Formula
2015-05-19 00:00:59 +00:00
desc " Creative ASCII drawing utility "
2016-04-17 19:49:26 +00:00
homepage " https://github.com/statico/cadubi/ "
2016-12-27 07:05:56 +00:00
url " https://github.com/statico/cadubi/archive/v1.3.3.tar.gz "
sha256 " 79af56d5d659e28306ea07741e3ad97d5f0e6e9db7a5b0b632a9c21b87f6324a "
2012-01-09 05:57:54 +00:00
2015-10-23 08:35:21 +00:00
bottle :unneeded
2012-01-09 05:57:54 +00:00
def install
2015-08-03 12:55:31 +00:00
inreplace " cadubi " , " $Bin/help.txt " , " #{ doc } /help.txt "
bin . install " cadubi "
doc . install " help.txt "
2016-04-22 07:35:20 +00:00
man1 . install " cadubi.1 "
end
test do
output = shell_output ( " script -q /dev/null #{ bin } /cadubi -v | cat " )
assert_match " cadubi (Creative ASCII Drawing Utility By Ian) #{ version } \r \n Copyright (c) 2015 Ian Langworth " , output # complete match because we are not checking the exit code
2012-01-09 05:57:54 +00:00
end
end