From 80bddcb0882f2ce103bdfaebcd5cafe86a6248ea Mon Sep 17 00:00:00 2001 From: Joshua Bussdieker Date: Fri, 20 Dec 2013 15:07:10 -0500 Subject: libsass 1.0.1 Closes #25362. Signed-off-by: Mike McQuaid --- Library/Formula/libsass.rb | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/libsass.rb b/Library/Formula/libsass.rb index 005101446..3cc493f9c 100644 --- a/Library/Formula/libsass.rb +++ b/Library/Formula/libsass.rb @@ -2,10 +2,15 @@ require 'formula' class Libsass < Formula homepage 'https://github.com/hcatlin/libsass' - url 'https://github.com/hcatlin/libsass/archive/RELEASE-1.0.tar.gz' - sha1 '55a8775f2ae430f24b03964b3aa8e2a3565d613a' + url 'https://github.com/hcatlin/libsass/archive/v1.0.1.tar.gz' + sha1 '9524e028bc8ebe84e36895269d07ecc7db496c7c' + + depends_on :autoconf + depends_on :automake + depends_on :libtool def install + system "autoreconf -i" system "./configure", "--prefix=#{prefix}" system "make install" end @@ -18,8 +23,13 @@ class Libsass < Formula int main() { struct sass_context* sass_ctx = sass_new_context(); + struct sass_options options; + options.output_style = SASS_STYLE_NESTED; + options.source_comments = 0; + options.image_path = "images"; + options.include_paths = ""; sass_ctx->source_string = "a { color:blue; &:hover { color:red; } }"; - sass_ctx->options.output_style = SASS_STYLE_NESTED; + sass_ctx->options = options; sass_compile(sass_ctx); if(sass_ctx->error_status) { return 1; -- cgit v1.2.3