blob: 5a76e7b2a221acb37f817406c31b9b95b0ca61c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
require 'formula'
class Lmdb < Formula
homepage 'http://symas.com/mdb/'
url 'https://gitorious.org/mdb/mdb/archive/LMDB_0.9.13.tar.gz'
sha1 'c9aa0facfaa0fa0fd95ec92b47d9825da93addae'
head 'git://git.openldap.org/openldap.git', :branch => 'mdb.master'
bottle do
cellar :any
sha1 "55a9e7543df012aa3e9431805c8e55d00597f6f5" => :mavericks
sha1 "fbfc5f6cbe2ec4799cfa153672217a028374bcb2" => :mountain_lion
sha1 "61d3a5414a97a5e69b91aea6fbf108c192cde088" => :lion
end
def install
inreplace "libraries/liblmdb/Makefile" do |s|
s.gsub! ".so", ".dylib"
s.gsub! "$(DESTDIR)$(prefix)/man/man1", "$(DESTDIR)$(prefix)/share/man/man1"
end
man1.mkpath
bin.mkpath
lib.mkpath
include.mkpath
system "make", "-C", "libraries/liblmdb", "install", "prefix=#{prefix}"
end
end
|