ivykis 0.41 (new formula)

Closes #9530.

Signed-off-by: William Woodruff <william@tuffbizz.com>
master
László Várady 2017-02-01 15:13:29 +01:00 committed by William Woodruff
parent 8e68c69967
commit e6e2885743
No known key found for this signature in database
GPG Key ID: 85AE00C504833B3C
1 changed files with 31 additions and 0 deletions

31
Formula/ivykis.rb Normal file
View File

@ -0,0 +1,31 @@
class Ivykis < Formula
desc "Async I/O-assisting library"
homepage "https://sourceforge.net/projects/libivykis"
url "https://downloads.sourceforge.net/project/libivykis/0.41/ivykis-0.41.tar.gz"
sha256 "2c934539a59029851b1332c8143ba9f21b79fb0185dd68d6eb259ae1b61ef3c5"
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on "libtool" => :build
def install
system "autoreconf", "-i"
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/"test_ivykis.c").write <<-EOS.undent
#include <stdio.h>
#include <iv.h>
int main()
{
iv_init();
iv_deinit();
return 0;
}
EOS
system ENV.cc, "test_ivykis.c", "-livykis", "-o", "test_ivykis"
system "./test_ivykis"
end
end