homebrew-core/Formula/henplus.rb
2016-09-29 09:45:00 -04:00

41 lines
1.4 KiB
Ruby

class Henplus < Formula
desc "SQL shell that can handle multiple sessions in parallel"
homepage "https://github.com/neurolabs/henplus"
url "https://github.com/downloads/neurolabs/henplus/henplus-0.9.8.tar.gz"
sha256 "ea7ca363d0503317235e97f66aa0efefe44463d8445e88b304ec0ac1748fe1ff"
revision 1
bottle do
cellar :any_skip_relocation
sha256 "2a66a4eeecd45406dc022d6f22a17aaf1ff3a22277296620a2771fb26a580afe" => :sierra
sha256 "529052e2809a6c83143e68f2352defef79b72a72c91a27a16c5d0b778a51d729" => :el_capitan
sha256 "8c3373e1459910f5c2df7c1849a881cf4caf71f75830f18b92bff9013b3178e8" => :yosemite
sha256 "21f7ee166b94b30dd78cee8a6757fecd285544b8b12b332db9141e6a94eb29a7" => :mavericks
end
depends_on :ant => :build
depends_on "libreadline-java"
depends_on :java => "1.6+"
def install
inreplace "bin/henplus" do |s|
s.gsub! "LD_LIBRARY_PATH", "DYLD_LIBRARY_PATH"
s.change_make_var! "DYLD_LIBRARY_PATH", Formula["libreadline-java"].opt_lib
s.gsub! "$THISDIR/..", HOMEBREW_PREFIX
s.gsub! "share/java/libreadline-java.jar",
"share/libreadline-java/libreadline-java.jar"
end
system "ant", "install", "-Dprefix=#{prefix}"
end
def caveats; <<-EOS.undent
You may need to set JAVA_HOME:
export JAVA_HOME="$(/usr/libexec/java_home)"
EOS
end
test do
system bin/"henplus", "--help"
end
end