2010-07-11 10:35:17 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-26 20:53:48 +00:00
|
|
|
# Don't upgrade until this issue is resolved:
|
|
|
|
# https://github.com/dotless/dotless/issues/issue/22
|
2010-07-11 10:35:17 +00:00
|
|
|
class Dotless < Formula
|
2011-03-24 20:27:37 +00:00
|
|
|
homepage "http://www.dotlesscss.org/"
|
2011-03-26 20:53:48 +00:00
|
|
|
url "https://github.com/dotless/dotless/tarball/v1.1.0.3"
|
|
|
|
md5 "6ca4801461c31214d2775858bc9adb29"
|
|
|
|
version "1.1.0.3"
|
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
|
|
|
|
|
|
|
|
(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
|