2013-12-20 20:09:49 +00:00
|
|
|
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"
|
2013-12-20 20:09:49 +00:00
|
|
|
|
|
|
|
def install
|
2014-06-01 01:23:17 +00:00
|
|
|
system "autoreconf", "-fvi"
|
2013-12-20 20:09:49 +00:00
|
|
|
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
|