2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-14 23:55:32 +00:00
|
|
|
|
|
|
|
class Astyle <Formula
|
2009-11-12 13:09:19 +00:00
|
|
|
@url='http://downloads.sourceforge.net/sourceforge/astyle/astyle_1.23_macosx.tar.gz'
|
2009-06-14 23:55:32 +00:00
|
|
|
@md5='9f7f3237996776d01bc6837cd445a442'
|
|
|
|
@homepage='http://astyle.sourceforge.net/'
|
|
|
|
|
|
|
|
def install
|
|
|
|
Dir.chdir 'src' do
|
|
|
|
ENV['prefix']=prefix
|
|
|
|
system "make -f ../buildmac/Makefile"
|
|
|
|
bin.install "../bin/astyle"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|