2010-11-22 16:50:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ditaa < Formula
|
2010-11-22 16:50:57 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/ditaa/ditaa/0.9/ditaa0_9.zip'
|
|
|
|
homepage 'http://ditaa.sourceforge.net/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '3efe5a3710627e19a414c305c82f0e58adf7c4f2'
|
2010-11-22 16:50:57 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-11 20:10:29 +00:00
|
|
|
prefix.install "ditaa0_9.jar"
|
|
|
|
(bin+'ditaa').write <<-EOS.undent
|
|
|
|
#!/bin/sh
|
|
|
|
java -jar "#{prefix}/ditaa0_9.jar" "$@"
|
|
|
|
EOS
|
2010-11-22 16:50:57 +00:00
|
|
|
end
|
|
|
|
end
|