astyle: Add HEAD option

Closes Homebrew/homebrew#34255.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
kbinani 2014-11-17 17:34:06 +09:00 committed by Mike McQuaid
parent 188de9cc6f
commit f808de693a

View file

@ -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