aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJannis Leidel2010-05-03 18:36:04 +0200
committerAdam Vandenberg2010-05-03 09:46:41 -0700
commitf89adafa891d8a8e8cac694b6a4ec2cb421c3de3 (patch)
tree3a245fd309c37d598b080e6a65205dad4479801a /Library/Formula
parentfff7d4de133245a2499fe8714f3e0ec9cd17e9eb (diff)
downloadhomebrew-f89adafa891d8a8e8cac694b6a4ec2cb421c3de3.tar.bz2
Added formula for CSSTidy.
Uses the trunk checkout due to unsuccessful extraction of the proper source zip file. Signed-off-by: Adam Vandenberg <flangy@gmail.com> * Use 'head' * Use http instead of https * Build in parallel
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/csstidy.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/Library/Formula/csstidy.rb b/Library/Formula/csstidy.rb
new file mode 100644
index 000000000..404adeeb8
--- /dev/null
+++ b/Library/Formula/csstidy.rb
@@ -0,0 +1,16 @@
+require 'formula'
+
+class Csstidy <Formula
+ head 'http://csstidy.svn.sourceforge.net/svnroot/csstidy/trunk-cpp/'
+ homepage 'http://csstidy.sourceforge.net/'
+
+ depends_on 'scons'
+
+ def install
+ arch = Hardware.is_64_bit? ? 'x64' : 'ia32'
+ system "scons", "-j #{Hardware.processor_count}",
+ "arch=#{arch}"
+
+ bin.install "release/csstidy/csstidy"
+ end
+end