diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libsass.rb | 16 |
1 files changed, 13 insertions, 3 deletions
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; |
