2010-10-20 23:18:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class C10t < Formula
|
2010-11-10 18:16:28 +00:00
|
|
|
homepage 'https://github.com/udoprog/c10t'
|
2012-02-22 05:12:27 +00:00
|
|
|
url 'https://github.com/udoprog/c10t/tarball/1.7'
|
2011-11-27 20:38:41 +00:00
|
|
|
md5 '8ba305e2c274469eb8e709f5c68e0c56'
|
2010-10-20 23:18:57 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
depends_on 'boost'
|
|
|
|
|
2011-11-27 20:38:41 +00:00
|
|
|
# Needed to compile against newer boost
|
|
|
|
# Can be removed for next version of c10t after 1.7
|
|
|
|
# See: https://github.com/udoprog/c10t/pull/153
|
|
|
|
def patches
|
|
|
|
"https://github.com/udoprog/c10t/commit/4a392b9f06d08c70290f4c7591e84ecdbc73d902.diff"
|
|
|
|
end
|
|
|
|
|
2010-10-20 23:18:57 +00:00
|
|
|
def install
|
|
|
|
inreplace 'CMakeLists.txt', 'boost_thread', 'boost_thread-mt'
|
|
|
|
inreplace 'test/CMakeLists.txt', 'boost_unit_test_framework', 'boost_unit_test_framework-mt'
|
2012-02-22 05:12:27 +00:00
|
|
|
system "cmake #{std_cmake_parameters} ."
|
2010-10-20 23:18:57 +00:00
|
|
|
system "make"
|
|
|
|
bin.install "c10t"
|
|
|
|
end
|
|
|
|
end
|