diff options
| author | Baptiste Fontaine | 2015-04-18 14:40:50 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2015-04-19 21:54:44 +0100 |
| commit | cd6e0093151411b01d66aaf16e6e3c0cc1a44ed2 (patch) | |
| tree | 63330341181ef5dc5cc55d9ac426e17fb5dcb214 /Library/Formula | |
| parent | 46229c77e9237928719e0ac75268675a65ec203f (diff) | |
| download | homebrew-cd6e0093151411b01d66aaf16e6e3c0cc1a44ed2.tar.bz2 | |
jmxtrans 20150330
The real version is 249 but I kept the YYYYMMDD numbering to be
consistent with the previous version.
Closes #38791.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/jmxtrans.rb | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/Library/Formula/jmxtrans.rb b/Library/Formula/jmxtrans.rb index f6ff9a4bd..0113b3a9b 100644 --- a/Library/Formula/jmxtrans.rb +++ b/Library/Formula/jmxtrans.rb @@ -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 |
