From 5d00070c70da9412e184db528f2958a5e486ba1b Mon Sep 17 00:00:00 2001 From: Alex Dunn Date: Sat, 18 Apr 2015 14:38:02 -0700 Subject: concurrencykit 0.4.5 Closes #38801. Signed-off-by: Mike McQuaid --- Library/Formula/concurrencykit.rb | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/Library/Formula/concurrencykit.rb b/Library/Formula/concurrencykit.rb index 60b873c85..20babd511 100644 --- a/Library/Formula/concurrencykit.rb +++ b/Library/Formula/concurrencykit.rb @@ -1,11 +1,10 @@ -require 'formula' - class Concurrencykit < Formula - homepage 'http://concurrencykit.org' - url 'http://concurrencykit.org/releases/ck-0.4.4.tar.gz' - sha1 'bfddebf5af1056ddab1345711e5836563131a252' + homepage "http://concurrencykit.org" + url "http://concurrencykit.org/releases/ck-0.4.5.tar.gz" + mirror "https://github.com/concurrencykit/ck/archive/0.4.5.tar.gz" + sha256 "89feea338cd6a8efbe7bd64d033cefccb34775ea0bedbcb1612df2b822fa0356" - head 'https://github.com/concurrencykit/ck.git' + head "https://github.com/concurrencykit/ck.git" bottle do cellar :any @@ -16,7 +15,20 @@ class Concurrencykit < Formula def install system "./configure", "--prefix=#{prefix}" - system "make", "CC=#{ENV.cc}" - system "make install" + system "make" + system "make", "install" + end + + test do + (testpath/"test.c").write <<-EOS.undent + #include + int main() + { + return 0; + } + EOS + system ENV.cc, "-I#{include}", "-L#{lib}", "-lck", + testpath/"test.c", "-o", testpath/"test" + system "./test" end end -- cgit v1.2.3