aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorZach Moazeni2012-04-30 21:38:50 -0400
committerAdam Vandenberg2012-06-07 21:45:02 -0700
commit696e4a5bbfc443a909bb0fe68d1f2a0b7423ab90 (patch)
treea14446e55b59fe483ee6b23b335c11e8b5b29bc3 /Library
parente5192e3fa910f3536976f9b92b41a35fb7715a15 (diff)
downloadhomebrew-696e4a5bbfc443a909bb0fe68d1f2a0b7423ab90.tar.bz2
leveldb 1.5.0
LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/leveldb.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/leveldb.rb b/Library/Formula/leveldb.rb
new file mode 100644
index 000000000..db3efefa8
--- /dev/null
+++ b/Library/Formula/leveldb.rb
@@ -0,0 +1,20 @@
+require 'formula'
+
+class Leveldb < Formula
+ homepage 'https://code.google.com/p/leveldb/'
+ url 'https://leveldb.googlecode.com/files/leveldb-1.5.0.tar.gz'
+ sha1 'b5b45ff74065f242c37f465b13dafb925972ca43'
+
+ depends_on 'snappy' => :build
+
+ def install
+ system "make"
+ include.install "include/leveldb"
+
+ mv "libleveldb.dylib.1.5", "libleveldb.1.5.dylib"
+ rm "libleveldb.dylib"
+ ln_s "libleveldb.1.5.dylib", "libleveldb.dylib"
+
+ lib.install Dir["libleveldb.{a,dylib}"]
+ end
+end