aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Dunn2015-04-18 14:38:02 -0700
committerMike McQuaid2015-04-19 10:03:46 +0100
commit5d00070c70da9412e184db528f2958a5e486ba1b (patch)
treef9263d2e8fb191d0c23b5d99b72af9c189a0aeb0
parent3c45bd33725a4b23c6b8c51d9cef6f7d7580fdf5 (diff)
downloadhomebrew-5d00070c70da9412e184db528f2958a5e486ba1b.tar.bz2
concurrencykit 0.4.5
Closes #38801. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/concurrencykit.rb28
1 files 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 <ck_spinlock.h>
+ int main()
+ {
+ return 0;
+ }
+ EOS
+ system ENV.cc, "-I#{include}", "-L#{lib}", "-lck",
+ testpath/"test.c", "-o", testpath/"test"
+ system "./test"
end
end