diff options
| author | Tomasz Pajor | 2014-06-14 19:42:51 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-06-15 14:31:04 +0100 |
| commit | 9c8565eb8e70ffc848d263537588a6954d3c013b (patch) | |
| tree | da8c96e12b39cd750e8c0fafbcafdfd4c68eb922 /Library | |
| parent | f130435289e5ea16b6ab14446a2b7d2f119e324c (diff) | |
| download | homebrew-9c8565eb8e70ffc848d263537588a6954d3c013b.tar.bz2 | |
geocouch: cleanup and fix formula.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/geocouch.rb | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Library/Formula/geocouch.rb b/Library/Formula/geocouch.rb index ddf54c9e6..ece1098d3 100644 --- a/Library/Formula/geocouch.rb +++ b/Library/Formula/geocouch.rb @@ -8,6 +8,9 @@ class Geocouch < Formula head 'https://github.com/couchbase/geocouch.git' + depends_on "couchdb" + depends_on "erlang" => :build + def couchdb_share HOMEBREW_PREFIX/'share/couchdb' end @@ -15,19 +18,13 @@ class Geocouch < Formula HOMEBREW_PREFIX/'share/geocouch' end - # Leverage generic couchdb.rb formula for couchdb (and therefore geocouch) - # dependencies. - depends_on 'couchdb' - # GeoCouch currently supports couch_version(s) 1.1.x and 1.2.x (other # versions at your own risk). This formula supports GeoCouch 1.3.0 on top # of Apache couchdb 1.3.0. def install - # Grab couchdb 1.3.x. - couchdb_dir = buildpath/'couchdb-src' - couchdb = Formula["couchdb"] - couchdb.brew { couchdb_dir.install Dir['*'] } - ENV['COUCH_SRC'] = couchdb_dir/"src/couchdb" + couchdb_dir = buildpath/"couchdb-src" + Formula["couchdb"].brew { couchdb_dir.install Dir["*"] } + ENV["COUCH_SRC"] = couchdb_dir/"src/couchdb" # Build geocouch. system "make" |
