hbase: keep pollution of 'bin' down

Closes #1325.

Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
This commit is contained in:
Martin Afanasjew 2016-05-21 07:09:31 +02:00
parent dca1d9abbf
commit d859d5aebb

View file

@ -30,7 +30,12 @@ class Hbase < Formula
ENV.java_cache if build.with? "lzo"
rm_f Dir["bin/*.cmd", "conf/*.cmd"]
libexec.install %w[bin conf docs lib hbase-webapps]
bin.write_exec_script Dir["#{libexec}/bin/*"]
# Some binaries have really generic names (like `test`) and most seem to be
# too special-purpose to be permanently available via PATH.
%w[hbase start-hbase.sh stop-hbase.sh].each do |script|
bin.write_exec_script "#{libexec}/bin/#{script}"
end
if build.with? "lzo"
resource("hadoop-lzo").stage do