blob: ba36cb491a7642010996e7e1d264ab0a8015a2b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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:
# https://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
|