aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/hbase.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-07 11:20:52 -0700
committerAdam Vandenberg2012-10-27 19:28:49 -0700
commitce2f7e1bd664e7260e48ffa37bf3fc909232a555 (patch)
tree1a9b07793f59951405a7ee7dbc15a1cf5145229e /Library/Formula/hbase.rb
parentb40e5323ca055bf890406b634c97fccef49d9c68 (diff)
downloadhomebrew-ce2f7e1bd664e7260e48ffa37bf3fc909232a555.tar.bz2
Use script helpers
Diffstat (limited to 'Library/Formula/hbase.rb')
-rw-r--r--Library/Formula/hbase.rb15
1 files changed, 2 insertions, 13 deletions
diff --git a/Library/Formula/hbase.rb b/Library/Formula/hbase.rb
index 71286358a..cbf6dcce8 100644
--- a/Library/Formula/hbase.rb
+++ b/Library/Formula/hbase.rb
@@ -1,28 +1,17 @@
require 'formula'
class Hbase < Formula
- url 'http://www.apache.org/dyn/closer.cgi?path=hbase/hbase-0.94.0/hbase-0.94.0.tar.gz'
homepage 'http://hbase.apache.org'
+ url 'http://www.apache.org/dyn/closer.cgi?path=hbase/hbase-0.94.0/hbase-0.94.0.tar.gz'
sha1 'a77f4b70bddbf8555bfe11e4db197d3cbb0c20d1'
depends_on 'hadoop'
- def shim_script target
- <<-EOS.undent
- #!/bin/bash
- exec "#{libexec}/bin/#{target}" "$@"
- EOS
- end
-
def install
rm_f Dir["bin/*.bat"]
libexec.install %w[bin conf docs lib hbase-webapps]
libexec.install Dir['*.jar']
- bin.mkpath
- Dir["#{libexec}/bin/*"].each do |b|
- n = Pathname.new(b).basename
- (bin+n).write shim_script(n)
- end
+ bin.write_exec_script Dir["#{libexec}/bin/*"]
inreplace "#{libexec}/conf/hbase-env.sh",
"# export JAVA_HOME=/usr/java/jdk1.6.0/",