diff --git a/Formula/astyle.rb b/Formula/astyle.rb index 774b7b7359..6ea7ea1014 100644 --- a/Formula/astyle.rb +++ b/Formula/astyle.rb @@ -1,12 +1,13 @@ -require 'formula' +require "formula" class Astyle < Formula - homepage 'http://astyle.sourceforge.net/' - url 'https://downloads.sourceforge.net/project/astyle/astyle/astyle%202.04/astyle_2.04_macosx.tar.gz' - sha1 '2aa956c4521a1163da6a8be741786fd89c1f39a7' + homepage "http://astyle.sourceforge.net/" + url "https://downloads.sourceforge.net/project/astyle/astyle/astyle%202.04/astyle_2.04_macosx.tar.gz" + sha1 "2aa956c4521a1163da6a8be741786fd89c1f39a7" + head "svn://svn.code.sf.net/p/astyle/code/trunk/AStyle" def install - cd 'src' do + cd "src" do system "make", "CXX=#{ENV.cxx}", "-f", "../build/mac/Makefile" bin.install "bin/astyle" end