diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sassc.rb | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/Library/Formula/sassc.rb b/Library/Formula/sassc.rb index 3101082e3..4df90be93 100644 --- a/Library/Formula/sassc.rb +++ b/Library/Formula/sassc.rb @@ -1,29 +1,34 @@ -require 'formula' +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' + homepage "https://github.com/sass/sassc" + url "https://github.com/sass/sassc/archive/3.0.2.tar.gz" + sha1 "4666a8452005613afe4129a8e0cb4dd9e54b2868" + head "https://github.com/sass/sassc.git" depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build + depends_on "pkg-config" => :build depends_on "libsass" def install system "autoreconf", "-fvi" - system "./configure", "--prefix=#{prefix}" - system "make install" + system "./configure", "--prefix=#{prefix}", "--disable-silent-rules", + "--disable-dependency-tracking" + 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; } + (testpath/"input.scss").write <<-EOS.undent + div { + img { + border: 0px; + } + } EOS - assert_equal expected, `#{bin}/sassc test.sass` + + assert_equal "div img{border:0px}", + shell_output("#{bin}/sassc --style compressed input.scss").strip end end |
