2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-14 23:55:32 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Astyle < Formula
|
2011-01-26 00:35:02 +00:00
|
|
|
url 'http://downloads.sourceforge.net/sourceforge/astyle/astyle_2.01_macosx.tar.gz'
|
|
|
|
md5 'f81408554bf93ea4ad4feb008a76202c'
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://astyle.sourceforge.net/'
|
2009-06-14 23:55:32 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
Dir.chdir 'src' do
|
|
|
|
ENV['prefix']=prefix
|
2010-02-26 02:36:08 +00:00
|
|
|
system "make -f ../build/mac/Makefile"
|
2010-04-07 05:58:35 +00:00
|
|
|
bin.install "bin/astyle"
|
2009-06-14 23:55:32 +00:00
|
|
|
end
|
|
|
|
end
|
2011-01-26 00:35:02 +00:00
|
|
|
end
|