30 lines
888 B
Ruby
30 lines
888 B
Ruby
class Storm < Formula
|
|
include Language::Python::Shebang
|
|
|
|
desc "Distributed realtime computation system to process data streams"
|
|
homepage "https://storm.apache.org"
|
|
url "https://dlcdn.apache.org/storm/apache-storm-2.3.0/apache-storm-2.3.0.tar.gz"
|
|
sha256 "49c2255b26633c6fd96399c520339e459fcda29a0e7e6d0c8775cefcff6c3636"
|
|
license "Apache-2.0"
|
|
revision 1
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "3fef017e3bad462d37bab431a30e59923a1b7e17a532f01f1080e4586123d8f5"
|
|
end
|
|
|
|
depends_on "openjdk"
|
|
depends_on "python@3.10"
|
|
|
|
conflicts_with "stormssh", because: "both install 'storm' binary"
|
|
|
|
def install
|
|
libexec.install Dir["*"]
|
|
(bin/"storm").write_env_script libexec/"bin/storm", Language::Java.overridable_java_home_env
|
|
rewrite_shebang detected_python_shebang, libexec/"bin/storm.py"
|
|
end
|
|
|
|
test do
|
|
system bin/"storm", "version"
|
|
end
|
|
end
|