homebrew-core/Formula/sassc.rb

30 lines
712 B
Ruby
Raw Normal View History

require 'formula'
class Sassc < Formula
homepage 'https://github.com/hcatlin/sassc'
url 'https://github.com/hcatlin/sassc/archive/v1.0.1.tar.gz'
sha1 '69e7d97264b252593a3307330a96a5ccdc2813b5'
2014-06-01 01:23:17 +00:00
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "libsass"
def install
2014-06-01 01:23:17 +00:00
system "autoreconf", "-fvi"
system "./configure", "--prefix=#{prefix}"
system "make install"
end
test do
(testpath/"test.sass").write "a { color:blue; &:hover { color:red; } }"
expected = <<-EOS.undent
a {
color: blue; }
a:hover {
color: red; }
EOS
assert_equal expected, `#{bin}/sassc test.sass`
end
end