2011-07-16 05:12:08 +00:00
|
|
|
class Concurrencykit < Formula
|
2015-04-18 21:38:02 +00:00
|
|
|
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"
|
2012-06-12 04:05:47 +00:00
|
|
|
|
2015-04-18 21:38:02 +00:00
|
|
|
head "https://github.com/concurrencykit/ck.git"
|
2011-07-16 05:12:08 +00:00
|
|
|
|
2014-02-25 23:26:23 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-09-02 11:47:14 +00:00
|
|
|
sha1 "86056c5005d9d4d231d2b4603415ef3f9258afd7" => :mavericks
|
|
|
|
sha1 "a972444147a7621158474c867eca0def9da131ed" => :mountain_lion
|
|
|
|
sha1 "949f89c08cac441c9e2153a01237941fd45ec658" => :lion
|
2014-02-25 23:26:23 +00:00
|
|
|
end
|
|
|
|
|
2011-07-16 05:12:08 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-04-18 21:38:02 +00:00
|
|
|
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"
|
2011-07-16 05:12:08 +00:00
|
|
|
end
|
|
|
|
end
|