summaryrefslogtreecommitdiff
path: root/homebrew/leveldb
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/leveldb
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/leveldb')
-rw-r--r--homebrew/leveldb/.beer36
-rw-r--r--homebrew/leveldb/.make.sh-auto9
-rw-r--r--homebrew/leveldb/_metadata/description1
-rw-r--r--homebrew/leveldb/_metadata/homepage1
-rw-r--r--homebrew/leveldb/_metadata/name1
-rw-r--r--homebrew/leveldb/_metadata/version1
-rwxr-xr-xhomebrew/leveldb/download.sh1
7 files changed, 50 insertions, 0 deletions
diff --git a/homebrew/leveldb/.beer b/homebrew/leveldb/.beer
new file mode 100644
index 000000000..858aaed07
--- /dev/null
+++ b/homebrew/leveldb/.beer
@@ -0,0 +1,36 @@
+{
+ "name": "Leveldb",
+ "description": "Key-value storage library with ordered mapping",
+ "url": "https://github.com/google/leveldb/archive/1.21.tar.gz",
+ "mirror": null,
+ "homepage": "https://github.com/google/leveldb/",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ },
+ {
+ "depend": "gperftools",
+ "build-depend": false
+ },
+ {
+ "depend": "snappy",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [],
+ "install": [
+ "mkdir \"build\" do",
+ "system \"cmake\", \"..\", *std_cmake_args, \"-DBUILD_SHARED_LIBS=ON\"",
+ "system \"make\", \"install\"",
+ "bin.install \"leveldbutil\"",
+ "system \"make\", \"clean\"",
+ "system \"cmake\", \"..\", *std_cmake_args, \"-DBUILD_SHARED_LIBS=OFF\"",
+ "system \"make\"",
+ "lib.install \"libleveldb.a\""
+ ],
+ "version": "1.21",
+ "file": "leveldb.rb"
+} \ No newline at end of file
diff --git a/homebrew/leveldb/.make.sh-auto b/homebrew/leveldb/.make.sh-auto
new file mode 100644
index 000000000..a1ca7760a
--- /dev/null
+++ b/homebrew/leveldb/.make.sh-auto
@@ -0,0 +1,9 @@
+pkg:setup
+mkdir "build" && cd build
+cmake .. -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DBUILD_SHARED_LIBS=ON
+make DESTDIR=${PKG_DEST} install
+bin.install "leveldbutil"
+make clean
+cmake .. -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} -DBUILD_SHARED_LIBS=OFF
+make
+lib.install "libleveldb.a"
diff --git a/homebrew/leveldb/_metadata/description b/homebrew/leveldb/_metadata/description
new file mode 100644
index 000000000..f3fb761df
--- /dev/null
+++ b/homebrew/leveldb/_metadata/description
@@ -0,0 +1 @@
+Key-value storage library with ordered mapping
diff --git a/homebrew/leveldb/_metadata/homepage b/homebrew/leveldb/_metadata/homepage
new file mode 100644
index 000000000..1bdcea5c1
--- /dev/null
+++ b/homebrew/leveldb/_metadata/homepage
@@ -0,0 +1 @@
+https://github.com/google/leveldb/
diff --git a/homebrew/leveldb/_metadata/name b/homebrew/leveldb/_metadata/name
new file mode 100644
index 000000000..7d764719e
--- /dev/null
+++ b/homebrew/leveldb/_metadata/name
@@ -0,0 +1 @@
+Leveldb
diff --git a/homebrew/leveldb/_metadata/version b/homebrew/leveldb/_metadata/version
new file mode 100644
index 000000000..d2ab029d3
--- /dev/null
+++ b/homebrew/leveldb/_metadata/version
@@ -0,0 +1 @@
+1.21
diff --git a/homebrew/leveldb/download.sh b/homebrew/leveldb/download.sh
new file mode 100755
index 000000000..226c62d9c
--- /dev/null
+++ b/homebrew/leveldb/download.sh
@@ -0,0 +1 @@
+wget https://github.com/google/leveldb/archive/1.21.tar.gz \ No newline at end of file