rds-command-line-tools: depend on openjdk

master
Markus Reiter 2020-02-04 19:03:16 +01:00 committed by Alexander Bayandin
parent c824fcf79d
commit cf496984f6
1 changed files with 3 additions and 2 deletions

View File

@ -3,13 +3,14 @@ class RdsCommandLineTools < Formula
homepage "https://aws.amazon.com/developertools/2928"
url "https://rds-downloads.s3.amazonaws.com/RDSCli-1.19.004.zip"
sha256 "298c15ccd04bd91f1be457645d233455364992e7dd27e09c48230fbc20b5950c"
revision 1
bottle :unneeded
depends_on :java
depends_on "openjdk"
def install
env = Language::Java.java_home_env.merge(:AWS_RDS_HOME => libexec)
env = { :JAVA_HOME => Formula["openjdk"].opt_prefix, :AWS_RDS_HOME => libexec }
rm Dir["bin/*.cmd"] # Remove Windows versions
etc.install "credential-file-path.template"
libexec.install Dir["*"]