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/'
|
2011-06-20 13:10:58 +00:00
|
|
|
url 'http://downloads.sourceforge.net/sourceforge/astyle/astyle_2.02_macosx.tar.gz'
|
|
|
|
md5 '16192ba46ba5348f107c712d6482c15a'
|
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
|