2011-07-16 05:12:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Concurrencykit < Formula
|
|
|
|
homepage 'http://concurrencykit.org'
|
2014-01-04 11:06:34 +00:00
|
|
|
url 'http://concurrencykit.org/releases/ck-0.3.4.tar.gz'
|
|
|
|
sha1 'bf32af29ca174f068ed8772aed1647ab3d474264'
|
2012-06-12 04:05:47 +00:00
|
|
|
|
2011-07-16 05:12:08 +00:00
|
|
|
head 'git://git.concurrencykit.org/ck.git'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2012-06-12 04:05:47 +00:00
|
|
|
system "make", "CC=#{ENV.cc}"
|
2011-07-16 05:12:08 +00:00
|
|
|
system "make install"
|
2014-01-04 14:10:06 +00:00
|
|
|
mv lib/"libck.so.#{version}", lib/"libck.#{version}.dylib"
|
2014-01-16 05:38:31 +00:00
|
|
|
ln_s "libck.#{version}.dylib", lib/"libck.0.dylib"
|
|
|
|
ln_s "libck.#{version}.dylib", lib/"libck.dylib"
|
2011-07-16 05:12:08 +00:00
|
|
|
end
|
|
|
|
end
|