jmxtrans 20150330
The real version is 249 but I kept the YYYYMMDD numbering to be consistent with the previous version. Closes Homebrew/homebrew#38791. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
0d99759618
commit
631cea72f3
1 changed files with 22 additions and 10 deletions
|
@ -1,15 +1,27 @@
|
|||
require 'formula'
|
||||
|
||||
class Jmxtrans < Formula
|
||||
homepage 'https://github.com/jmxtrans/jmxtrans'
|
||||
url 'https://github.com/downloads/jmxtrans/jmxtrans/jmxtrans-20121016-151320-36564abc7e.zip'
|
||||
version '20121016'
|
||||
sha1 '2b2dc4727de16a30e8b7ac84b9bb4cb7b1ea4a6f'
|
||||
homepage "https://github.com/jmxtrans/jmxtrans"
|
||||
url "https://github.com/jmxtrans/jmxtrans/archive/jmxtrans-249.tar.gz"
|
||||
version "20150330-249"
|
||||
sha256 "770699c04d3cbc36f877551821e15b6daa6dd9decf76b971f70534533854f7f2"
|
||||
|
||||
depends_on :java => "1.6+"
|
||||
depends_on "maven" => :build
|
||||
|
||||
def install
|
||||
prefix.install_metafiles
|
||||
libexec.install Dir['*']
|
||||
(libexec/'jmxtrans.sh').chmod 0755
|
||||
bin.install_symlink libexec/'jmxtrans.sh' => "jmxtrans"
|
||||
system "mvn", "package", "-DskipTests=true",
|
||||
"-Dmaven.javadoc.skip=true",
|
||||
"-Dcobertura.skip=true"
|
||||
|
||||
libexec.install Dir["*"]
|
||||
inreplace libexec/"jmxtrans.sh", '"jmxtrans-all.jar"',
|
||||
"\"#{libexec}/target/jmxtrans-249-all.jar\""
|
||||
|
||||
(libexec/"jmxtrans.sh").chmod 0755
|
||||
bin.install_symlink libexec/"jmxtrans.sh" => "jmxtrans"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_equal "jmxtrans is not running.",
|
||||
shell_output("#{bin}/jmxtrans status", 3).chomp
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue