aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2014-11-18 21:59:24 +0000
committerJack Nagel2014-11-18 22:41:10 -0600
commitd7185f65d254e04bfc5eaf73f686207a5bb1ec6b (patch)
treea7a703852d15ad51eff525c9f090fc4744a07b21 /Library
parent4667d6bba9a7135df794e2059bde48fb9eb2b6f2 (diff)
downloadhomebrew-d7185f65d254e04bfc5eaf73f686207a5bb1ec6b.tar.bz2
sassc 3.0.2
Merge this after #34296. Sassc taps libsass statically rather than dynamically, so putting it in before #34296 will probably just break all the things. Coses #34291. Closes #34297. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/sassc.rb31
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