aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorkbinani2014-11-17 17:34:06 +0900
committerMike McQuaid2014-11-17 10:24:56 +0000
commit8c8c789c63eb810ed1bb43171145b8510d18bdb2 (patch)
treed2717103e67603d3b1d36672a121ec33695ffa02 /Library/Formula
parent3d288d3e5730228259e72f39c1e53b67d955acc7 (diff)
downloadhomebrew-8c8c789c63eb810ed1bb43171145b8510d18bdb2.tar.bz2
astyle: Add HEAD option
Closes #34255. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/astyle.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/Library/Formula/astyle.rb b/Library/Formula/astyle.rb
index 774b7b735..6ea7ea101 100644
--- a/Library/Formula/astyle.rb
+++ b/Library/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