apache-spark: rename beeline to avoid hive conflict

Reference Homebrew/homebrew#39319.
This commit is contained in:
Tim D. Smith 2015-05-05 15:24:12 -07:00
parent 1a61ae40de
commit b64c358595

View file

@ -5,11 +5,13 @@ class ApacheSpark < Formula
head "https://github.com/apache/spark.git" head "https://github.com/apache/spark.git"
url "https://d3kbcqa49mib13.cloudfront.net/spark-1.3.1-bin-hadoop2.6.tgz" url "https://d3kbcqa49mib13.cloudfront.net/spark-1.3.1-bin-hadoop2.6.tgz"
version "1.3.1" version "1.3.1"
revision 1
sha1 "86911b6c8964230a93691bd45589f491c10d36c0" sha1 "86911b6c8964230a93691bd45589f491c10d36c0"
conflicts_with 'hive', :because => 'both install `beeline` binaries'
def install def install
# Rename beeline to distinguish it from hive's beeline
mv "bin/beeline", "bin/spark-beeline"
rm_f Dir["bin/*.cmd"] rm_f Dir["bin/*.cmd"]
libexec.install Dir["*"] libexec.install Dir["*"]
bin.write_exec_script Dir["#{libexec}/bin/*"] bin.write_exec_script Dir["#{libexec}/bin/*"]