aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/astyle.rb
diff options
context:
space:
mode:
authorMax Howell2009-06-15 00:55:32 +0100
committerMax Howell2009-06-15 00:55:32 +0100
commitdfee198fe8952440d52de68ff0aff2b8facd560c (patch)
tree6a20835654f6de6afc7a4c041ad2426e1c5f3907 /Library/Formula/astyle.rb
parent7eec61001c71f091fe125da9825eb6698b226d87 (diff)
downloadhomebrew-dfee198fe8952440d52de68ff0aff2b8facd560c.tar.bz2
Artistic Style code beautifier
Diffstat (limited to 'Library/Formula/astyle.rb')
-rw-r--r--Library/Formula/astyle.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/astyle.rb b/Library/Formula/astyle.rb
new file mode 100644
index 000000000..81b7fa52f
--- /dev/null
+++ b/Library/Formula/astyle.rb
@@ -0,0 +1,15 @@
+require 'brewkit'
+
+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