2010-05-27 17:17:37 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class KyotoCabinet < Formula
|
2010-08-08 00:22:30 +00:00
|
|
|
homepage 'http://fallabs.com/kyotocabinet/'
|
2012-06-04 01:53:59 +00:00
|
|
|
url 'http://fallabs.com/kyotocabinet/pkg/kyotocabinet-1.2.76.tar.gz'
|
|
|
|
sha1 'a4ec70d08ca6c8f510dbc329d5c27b55030d3521'
|
2010-05-27 17:17:37 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :clang do
|
2012-10-16 19:38:01 +00:00
|
|
|
build 421
|
2012-03-18 20:33:24 +00:00
|
|
|
cause <<-EOS.undent
|
|
|
|
Kyoto-cabinet relies on GCC atomic intrinsics, but Clang does not
|
|
|
|
implement them for non-integer types.
|
2012-06-04 01:53:59 +00:00
|
|
|
EOS
|
2012-03-18 20:33:24 +00:00
|
|
|
end
|
|
|
|
|
2014-03-19 17:07:54 +00:00
|
|
|
patch :DATA if MacOS.version >= :mavericks
|
|
|
|
|
2010-05-27 17:17:37 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--prefix=#{prefix}"
|
|
|
|
system "make" # Separate steps required
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2014-02-06 09:09:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
__END__
|
|
|
|
--- a/kccommon.h 2013-11-08 09:27:37.000000000 -0500
|
|
|
|
+++ b/kccommon.h 2013-11-08 09:27:47.000000000 -0500
|
|
|
|
@@ -82,7 +82,7 @@
|
|
|
|
using ::snprintf;
|
|
|
|
}
|
|
|
|
|
|
|
|
-#if __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__) || defined(_MSC_VER)
|
|
|
|
+#if __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__) || defined(_MSC_VER) || defined(_LIBCPP_VERSION)
|
|
|
|
|
|
|
|
#include <unordered_map>
|
|
|
|
#include <unordered_set>
|