homebrew-core/Formula/libre.rb
2017-09-19 03:06:36 -07:00

30 lines
847 B
Ruby

class Libre < Formula
desc "Toolkit library for asynchronous network I/O with protocol stacks"
homepage "http://www.creytiv.com"
url "http://www.creytiv.com/pub/re-0.5.5.tar.gz"
mirror "https://sources.lede-project.org/re-0.5.5.tar.gz"
sha256 "90917a173de962d3b20ab5f9875ad3051b7b307da4acb80c184b72e6c2ba7bb4"
bottle do
cellar :any
rebuild 1
sha256 "a6ab339d81c065d2792529a0f85a4f8e111b46f82b4a8885fe6cacbea62961f8" => :sierra
sha256 "f1316e1a83572201a3d05e87f104e9354898e80377f823dc4d410384b5b85554" => :el_capitan
end
depends_on "openssl"
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", "-L#{lib}", "-lre"
end
end