diff options
| author | Dominyk Tiller | 2014-12-23 20:36:57 +0000 |
|---|---|---|
| committer | Jack Nagel | 2014-12-26 11:22:53 -0500 |
| commit | 70ead9e081e54700713eedeebcc9697432e0dffb (patch) | |
| tree | 5829e6cf4b3a52df1c8961834c901863b5ae49f4 /Library | |
| parent | cbba312cf1c03d3ef7b4e659e736db0496ebc7e9 (diff) | |
| download | homebrew-70ead9e081e54700713eedeebcc9697432e0dffb.tar.bz2 | |
libsass devel 3.1.0
Adds a devel block for libsass.
Closes #35218.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libsass.rb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Library/Formula/libsass.rb b/Library/Formula/libsass.rb index 76fa8edea..bc117c0a7 100644 --- a/Library/Formula/libsass.rb +++ b/Library/Formula/libsass.rb @@ -1,5 +1,3 @@ -require "formula" - class Libsass < Formula homepage "https://github.com/sass/libsass" url "https://github.com/sass/libsass/archive/3.0.2.tar.gz" @@ -13,6 +11,12 @@ class Libsass < Formula sha1 "d435e14e0a8a3886ba9dc301aed4db4baceb9fe6" => :mountain_lion end + devel do + url "https://github.com/sass/libsass/archive/3.1.0-beta.tar.gz" + sha1 "478571d0ddf789a41c08587562c52b5b54c3e418" + version "3.1.0-beta" + end + depends_on "autoconf" => :build depends_on "automake" => :build depends_on "libtool" => :build @@ -21,13 +25,19 @@ class Libsass < Formula def install ENV.cxx11 ENV["LIBSASS_VERSION"] = "HEAD" if build.head? + ENV["LIBSASS_VERSION"] = "3.1.0" if build.devel? system "autoreconf", "-fvi" system "./configure", "--prefix=#{prefix}", "--disable-silent-rules", "--disable-dependency-tracking" system "make", "install" + # The header below is deprecated and should not be used outside of test do. + # We only install it here for backward compatibility and so brew test works. + # https://github.com/sass/libsass/wiki/API-Documentation + include.install "sass_interface.h" if build.devel? end test do + # This will need to be updated when devel = stable due to API changes. (testpath/"test.c").write <<-EOS.undent #include <sass_interface.h> #include <string.h> |
