2010-07-11 10:35:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Dotless < Formula
|
2011-03-24 20:27:37 +00:00
|
|
|
homepage "http://www.dotlesscss.org/"
|
2011-08-21 08:57:28 +00:00
|
|
|
url "https://github.com/downloads/dotless/dotless/dotless-v1.2.1.0.zip"
|
|
|
|
md5 "dd06170b2e6a8f943f715977cfcd254d"
|
2010-07-11 10:35:17 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2012-02-11 20:14:29 +00:00
|
|
|
(bin+'dotless').write <<-EOF.undent
|
|
|
|
#!/bin/bash
|
|
|
|
exec "#{mono_path}" "#{libexec}/dotless.Compiler.exe" "$@"
|
|
|
|
EOF
|
2010-07-11 10:35:17 +00:00
|
|
|
|
|
|
|
libexec.install Dir['*.exe']
|
|
|
|
(share+'dotless').install Dir['*.txt']
|
|
|
|
end
|
|
|
|
end
|