aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libre.rb
blob: 2cbdf5c8b04dfde85c90311301f0f3943d4a9d46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require "formula"

class Libre < Formula
  homepage "http://www.creytiv.com"
  url "http://www.creytiv.com/pub/re-0.4.11.tar.gz"
  sha1 "6e04f8e30eaa273134c47433b41bcffadfca194c"

  bottle do
    cellar :any
    sha1 "988a4f3820de85831e75742c24e85eb6188db5d5" => :yosemite
    sha1 "fe96e2b8ba7c8a2964b445613172489cd46c4ed8" => :mavericks
    sha1 "b0c37d9a349da7f2ac28ab3b2153c2fc5a0427c4" => :mountain_lion
  end

  depends_on "openssl"
  depends_on "lzlib"

  def install
    system "make", "install", "PREFIX=#{prefix}"
  end

  test do
    (testpath/'test.c').write <<-EOS.undent
      #include <re/re.h>
      int main() {
        return libre_init();
      }
    EOS
    system ENV.cc, "test.c", "-lre"
  end
end