2011-04-29 18:53:48 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Cssembed < Formula
|
2011-12-13 02:22:50 +00:00
|
|
|
url 'https://github.com/downloads/nzakas/cssembed/cssembed-0.4.5.jar'
|
2011-04-29 18:53:48 +00:00
|
|
|
homepage 'http://www.nczonline.net/blog/2009/11/03/automatic-data-uri-embedding-in-css-files/'
|
2011-12-13 02:22:50 +00:00
|
|
|
md5 'cb98a8d7e18213b1a6e6c88e1d43f513'
|
2011-04-29 18:53:48 +00:00
|
|
|
|
|
|
|
def install
|
2011-12-13 02:22:50 +00:00
|
|
|
libexec.install "cssembed-0.4.5.jar"
|
2011-04-29 18:53:48 +00:00
|
|
|
(bin+'cssembed').write <<-EOS.undent
|
|
|
|
#!/bin/sh
|
2011-12-13 02:22:50 +00:00
|
|
|
java -jar "#{libexec}/cssembed-0.4.5.jar" $@
|
2011-04-29 18:53:48 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|