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:
Baptiste Fontaine 2015-04-18 14:40:50 +02:00 committed by Mike McQuaid
parent 0d99759618
commit 631cea72f3

View file

@ -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