mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-26 19:09:48 -05:00
libsass 1.0.1
Closes #25362. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
1 parent
b0df1245cd
commit
80bddcb088
1 file changed
+13
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user