2010-02-19 04:45:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Gant <Formula
|
2010-08-13 08:47:30 +00:00
|
|
|
url 'http://dist.codehaus.org/gant/distributions/gant-1.9.3-_groovy-1.7.3.tgz'
|
|
|
|
version '1.9.3'
|
2010-02-19 04:45:45 +00:00
|
|
|
homepage 'http://gant.codehaus.org/'
|
2010-08-13 08:47:30 +00:00
|
|
|
md5 '4a56ef11a7e7beaadbce59fe8510ef5b'
|
2010-02-19 04:45:45 +00:00
|
|
|
|
|
|
|
depends_on 'groovy'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-02-19 04:45:45 +00:00
|
|
|
def install
|
|
|
|
rm_f Dir["bin/*.bat"]
|
|
|
|
# gant-starter.conf is found relative to bin
|
2010-08-13 15:08:20 +00:00
|
|
|
libexec.install %w[bin lib conf]
|
|
|
|
(bin+'gant').write <<-EOS.undent
|
|
|
|
#!/bin/bash
|
|
|
|
exec #{libexec}/bin/gant
|
|
|
|
EOS
|
2010-02-19 04:45:45 +00:00
|
|
|
end
|
|
|
|
end
|