apache-forrest: add Java dep, audit fixes
Addresses breakage in Homebrew/homebrew#44605 Closes Homebrew/homebrew#44627. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
b03826a8ac
commit
9090de4e51
1 changed files with 4 additions and 2 deletions
|
@ -4,6 +4,8 @@ class ApacheForrest < Formula
|
|||
url "https://www.apache.org/dyn/closer.cgi?path=forrest/apache-forrest-0.9-sources.tar.gz"
|
||||
sha256 "c6ac758db2eb0d4d91bd1733bbbc2dec4fdb33603895c464bcb47a34490fb64d"
|
||||
|
||||
depends_on :java
|
||||
|
||||
resource "deps" do
|
||||
url "https://www.apache.org/dyn/closer.cgi?path=forrest/apache-forrest-0.9-dependencies.tar.gz"
|
||||
sha256 "33146b4e64933691d3b779421b35da08062a704618518d561281d3b43917ccf1"
|
||||
|
@ -11,7 +13,7 @@ class ApacheForrest < Formula
|
|||
|
||||
def install
|
||||
libexec.install Dir["*"]
|
||||
bin.install_symlink "#{libexec}/bin/forrest"
|
||||
(bin/"forrest").write_env_script libexec/"bin/forrest", Language::Java.java_home_env
|
||||
|
||||
resource("deps").stage do
|
||||
# To avoid conflicts with directory names already installed from the
|
||||
|
@ -24,7 +26,7 @@ class ApacheForrest < Formula
|
|||
"tools/ant",
|
||||
"tools/forrestbot/lib",
|
||||
"tools/forrestbot/webapp/lib",
|
||||
"tools/jetty"
|
||||
"tools/jetty",
|
||||
]
|
||||
deps_to_install.each do |dep|
|
||||
(libexec+dep).install Dir["#{dep}/*"]
|
||||
|
|
Loading…
Reference in a new issue