Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
javarepl: bottle unneeded
Browse files Browse the repository at this point in the history
  • Loading branch information
DomT4 committed Mar 24, 2016
1 parent 286e2ad commit 65b3f16
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Library/Formula/javarepl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,14 @@ class Javarepl < Formula
url "https://s3.amazonaws.com/albertlatacz.published/repo/javarepl/javarepl/282/javarepl-282.jar"
sha256 "7e53bd10ff9395e3114ed10a65b5bfbe0e7280a0d67620787e330244e7f26644"

bottle do
cellar :any
sha256 "68d447e17b9d3aedef0ca0416b089c93155105894fc737947546c69e830e57d2" => :yosemite
sha256 "b994f2504b01a392c914357087dfd0aaf5b8e6a653b42386220ffcee1f29bf6e" => :mavericks
sha256 "641690079299271cd51623cf6bc0e8e6b786aa0f984e240a78e248d3129cf893" => :mountain_lion
end
bottle :unneeded

def install
libexec.install "javarepl-#{version}.jar"
bin.write_jar_script libexec/"javarepl-#{version}.jar", "javarepl"
end

test do
assert_match %r{65536}, pipe_output("#{bin}/javarepl", "System.out.println(64*1024)\n:quit\n")
assert_match "65536", pipe_output("#{bin}/javarepl", "System.out.println(64*1024)\n:quit\n")
end
end

0 comments on commit 65b3f16

Please sign in to comment.