Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 45 lines (36 sloc) 1.263 kb
7d0848a @adamv kyoto-tycoon: find non-/usr/local lua
adamv authored
1 require "formula"
1b24cbe @tokuhirom new formula: kyoto-tycoon
tokuhirom authored
2
0476235 @adamv Use ruby style for inheritance.
adamv authored
3 class KyotoTycoon < Formula
7d0848a @adamv kyoto-tycoon: find non-/usr/local lua
adamv authored
4 homepage "http://fallabs.com/kyototycoon/"
5 url "http://fallabs.com/kyototycoon/pkg/kyototycoon-0.9.56.tar.gz"
6 sha1 "e5433833e681f8755ff6b9f7209029ec23914ce6"
1fed492 @DomT4 lua: upgrade to 5.2.
DomT4 authored
7 revision 1
1b24cbe @tokuhirom new formula: kyoto-tycoon
tokuhirom authored
8
7d0848a @adamv kyoto-tycoon: find non-/usr/local lua
adamv authored
9 depends_on "lua" => :recommended
10 depends_on "kyoto-cabinet"
1b24cbe @tokuhirom new formula: kyoto-tycoon
tokuhirom authored
11
cec6de1 @jacknagel kyoto-tycoon: use patch DSL
jacknagel authored
12 patch :DATA if MacOS.version >= :mavericks
9728b91 @adamv kyoto-tycoon: use Formula[]
adamv authored
13
1b24cbe @tokuhirom new formula: kyoto-tycoon
tokuhirom authored
14 def install
6297b91 @m0t0k1ch1 kyoto-tycoon: locate kyoto-cabinet for non-/usr/local installs
m0t0k1ch1 authored
15 # Locate kyoto-cabinet for non-/usr/local builds
9728b91 @adamv kyoto-tycoon: use Formula[]
adamv authored
16 cabinet = Formula["kyoto-cabinet"].opt_prefix
17 args = ["--prefix=#{prefix}", "--with-kc=#{cabinet}"]
7d0848a @adamv kyoto-tycoon: find non-/usr/local lua
adamv authored
18
19 if build.with? "lua"
20 lua = Formula["lua"].opt_prefix
21 args << "--with-lua=#{lua}"
22 else
23 args << "--enable-lua"
24 end
1b24cbe @tokuhirom new formula: kyoto-tycoon
tokuhirom authored
25
26 system "./configure", *args
27 system "make"
28 system "make install"
29 end
30 end
3cf1542 @dcrosta kyoto-tycoon: build with clang on mavericks
dcrosta authored
31
32
33 __END__
34 --- a/ktdbext.h 2013-11-08 09:34:53.000000000 -0500
35 +++ b/ktdbext.h 2013-11-08 09:35:00.000000000 -0500
36 @@ -271,7 +271,7 @@
37 if (!logf("prepare", "started to open temporary databases under %s", tmppath.c_str()))
38 err = true;
39 stime = kc::time();
40 - uint32_t pid = getpid() & kc::UINT16MAX;
41 + uint32_t pid = kc::getpid() & kc::UINT16MAX;
42 uint32_t tid = kc::Thread::hash() & kc::UINT16MAX;
43 uint32_t ts = kc::time() * 1000;
44 for (size_t i = 0; i < dbnum_; i++) {
Something went wrong with that request. Please try again.