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
|
2012-02-21 06:04:21 +00:00
|
|
|
homepage 'http://astyle.sourceforge.net/'
|
2012-03-30 11:03:23 +00:00
|
|
|
url 'http://downloads.sourceforge.net/sourceforge/astyle/astyle_2.02.1_macosx.tar.gz'
|
|
|
|
md5 '38f3a20be7ba685496d479316d6004b0'
|
2009-06-14 23:55:32 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'src' do
|
2012-03-11 21:55:21 +00:00
|
|
|
system "make", "CXX=#{ENV.cxx}", "-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
|