2009-11-24 17:10:35 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Resty <Formula
|
|
|
|
head 'git://github.com/micha/resty.git'
|
2010-11-10 18:16:28 +00:00
|
|
|
homepage 'https://github.com/micha/resty'
|
2009-11-24 17:10:35 +00:00
|
|
|
|
2010-10-01 19:00:51 +00:00
|
|
|
# Don't take +x off these files
|
|
|
|
skip_clean 'bin'
|
|
|
|
|
2009-11-24 17:10:35 +00:00
|
|
|
def install
|
|
|
|
system "mv README.markdown README"
|
2010-04-07 05:41:51 +00:00
|
|
|
bin.install %w[pp resty pypp]
|
|
|
|
end
|
|
|
|
|
2010-09-30 20:31:34 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
The Python printy-printer (pypp) uses the json module, available in
|
|
|
|
Python 2.6 and newer.
|
|
|
|
|
|
|
|
The Perl printy-printer (pp) depends on JSON from CPAN:
|
|
|
|
cpan JSON
|
|
|
|
EOS
|
2009-11-24 17:10:35 +00:00
|
|
|
end
|
|
|
|
end
|