homebrew-core/Formula/libre.rb

32 lines
720 B
Ruby
Raw Normal View History

require "formula"
class Libre < Formula
homepage "http://www.creytiv.com"
url "http://www.creytiv.com/pub/re-0.4.11.tar.gz"
sha1 "6e04f8e30eaa273134c47433b41bcffadfca194c"
2014-07-03 21:00:26 +00:00
bottle do
cellar :any
2014-12-13 08:13:10 +00:00
sha1 "988a4f3820de85831e75742c24e85eb6188db5d5" => :yosemite
sha1 "fe96e2b8ba7c8a2964b445613172489cd46c4ed8" => :mavericks
sha1 "b0c37d9a349da7f2ac28ab3b2153c2fc5a0427c4" => :mountain_lion
2014-07-03 21:00:26 +00:00
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