parent
8a4d6cd1b0
commit
446678f8e3
1 changed files with 10 additions and 7 deletions
|
@ -1,19 +1,19 @@
|
|||
class Druid < Formula
|
||||
desc "High-performance, column-oriented, distributed data store"
|
||||
homepage "http://druid.io"
|
||||
url "http://static.druid.io/artifacts/releases/druid-0.10.1-bin.tar.gz"
|
||||
sha256 "3a32395305cc95c0cc351f2aa14de2f60ddd206ceb63e59a2b36bc96b98c421f"
|
||||
url "http://static.druid.io/artifacts/releases/druid-0.11.0-bin.tar.gz"
|
||||
sha256 "d50218d11f97612acc1447914e113f1869997640de586daabd85828440c4c546"
|
||||
|
||||
bottle :unneeded
|
||||
|
||||
option "with-mysql", "Build with mysql-metadata-storage plugin"
|
||||
|
||||
depends_on "zookeeper"
|
||||
depends_on :java => "1.8+"
|
||||
depends_on :java => "1.8"
|
||||
|
||||
resource "mysql-metadata-storage" do
|
||||
url "http://static.druid.io/artifacts/releases/mysql-metadata-storage-0.10.1.tar.gz"
|
||||
sha256 "b6b3e18a2bdfc8d08c0c4dd09f0cdd95ce44bfcdb9e453ddfcd1af276fdd148d"
|
||||
url "http://static.druid.io/artifacts/releases/mysql-metadata-storage-0.11.0.tar.gz"
|
||||
sha256 "13fd978cdcfa7f9bac715642f37ddc8bdaf572ce05a2326c455ab8284d457141"
|
||||
end
|
||||
|
||||
def install
|
||||
|
@ -46,8 +46,11 @@ class Druid < Formula
|
|||
", \"mysql-metadata-storage\"", ""
|
||||
end
|
||||
|
||||
Pathname.glob("#{libexec}/bin/*.sh") do |file|
|
||||
bin.install_symlink file => "druid-#{file.basename}"
|
||||
bin.install Dir["#{libexec}/bin/*.sh"]
|
||||
bin.env_script_all_files(libexec/"bin", Language::Java.java_home_env("1.8"))
|
||||
|
||||
Pathname.glob("#{bin}/*.sh") do |file|
|
||||
mv file, bin/"druid-#{file.basename}"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue