aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2015-02-24 16:15:12 +0800
committerXu Cheng2015-02-24 16:38:26 +0800
commit4420f4d6c0ed418e90ea9325e68a23ea9d11d8f6 (patch)
tree41aa1c021ce9739be631e0c0e80b304fd23d77fe
parent2fa3619f0f4a3740d94d8dda4978f12ee924666b (diff)
downloadhomebrew-4420f4d6c0ed418e90ea9325e68a23ea9d11d8f6.tar.bz2
couchdb-lucene: set JAVA_HOME by :java
Closes #37140. Signed-off-by: Xu Cheng <xucheng@me.com>
-rw-r--r--Library/Formula/couchdb-lucene.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Formula/couchdb-lucene.rb b/Library/Formula/couchdb-lucene.rb
index fd188e91d..8312941a5 100644
--- a/Library/Formula/couchdb-lucene.rb
+++ b/Library/Formula/couchdb-lucene.rb
@@ -1,13 +1,13 @@
class CouchdbLucene < Formula
- homepage 'https://github.com/rnewson/couchdb-lucene'
- url 'https://github.com/rnewson/couchdb-lucene/archive/v1.0.2.tar.gz'
- sha1 '75e0c55a87f47903c6cd122286ea3e4568809f7e'
+ homepage "https://github.com/rnewson/couchdb-lucene"
+ url "https://github.com/rnewson/couchdb-lucene/archive/v1.0.2.tar.gz"
+ sha1 "75e0c55a87f47903c6cd122286ea3e4568809f7e"
- depends_on 'couchdb'
- depends_on 'maven' => :build
+ depends_on "couchdb"
+ depends_on "maven" => :build
+ depends_on :java
def install
- ENV["JAVA_HOME"] = `/usr/libexec/java_home`.chomp
system "mvn"
system "tar", "-xzf", "target/couchdb-lucene-#{version}-dist.tar.gz", "--strip", "1"