aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/dotless.rb
diff options
context:
space:
mode:
authorHorst Gutmann2010-07-11 12:35:17 +0200
committerAdam Vandenberg2010-07-13 08:33:46 -0700
commit0f7deab5f1799010559454592b6e3378a5d82e1c (patch)
treebb588200e5403e2146796e1bde0f84fabdcdd0fa /Library/Formula/dotless.rb
parent5513359b920dcbc2f91e592159fef139a87664ac (diff)
downloadhomebrew-0f7deab5f1799010559454592b6e3378a5d82e1c.tar.bz2
Added dotless-1.1.0.2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/dotless.rb')
-rw-r--r--Library/Formula/dotless.rb28
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/dotless.rb b/Library/Formula/dotless.rb
new file mode 100644
index 000000000..dd8c0989f
--- /dev/null
+++ b/Library/Formula/dotless.rb
@@ -0,0 +1,28 @@
+require 'formula'
+
+class Dotless < Formula
+ homepage "http://www.dotlesscss.com/"
+ url "http://www.dotlesscss.com:8081/repository/download/bt3/.lastPinned/dotless-v1.1.0.2-26-gd3370bd.zip?guest=1"
+ md5 '7fd6e39e47aeaaae615d061bc472c32e'
+ version "1.1.0.2-26"
+
+ # Head version is in GitHub, but requires builds:
+ # http://github.com/dotless/dotless
+
+ def install
+ mono_path = `/usr/bin/which mono`.strip
+ if mono_path.size == 0
+ opoo "mono not found in path"
+ puts "You need to install Mono to run this software:"
+ puts "http://www.go-mono.com/mono-downloads/download.html"
+ end
+
+ (bin + 'dotless').write <<-EOF
+#!/bin/bash
+exec #{mono_path} #{libexec}/dotless.Compiler.exe $@
+EOF
+
+ libexec.install Dir['*.exe']
+ (share+'dotless').install Dir['*.txt']
+ end
+end