61b2307139
brewkit.rb changes ENV destructively, so lets not do that everytime a formula is required. Now it's possible for other tools to require a formula description without worrying about side-effects.
15 lines
374 B
Ruby
15 lines
374 B
Ruby
require 'formula'
|
|
|
|
class Astyle <Formula
|
|
@url='http://kent.dl.sourceforge.net/sourceforge/astyle/astyle_1.23_macosx.tar.gz'
|
|
@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
|