From 58c16bbc61cdbccc3c1921aeca8742cf559d21d4 Mon Sep 17 00:00:00 2001 From: Carlos Chacin Date: Tue, 30 Sep 2014 23:16:45 -0300 Subject: [PATCH] tomee-jax-rs 1.7.1 --- Formula/tomee-jax-rs.rb | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/Formula/tomee-jax-rs.rb b/Formula/tomee-jax-rs.rb index 23c316f2081..5e234d053b9 100644 --- a/Formula/tomee-jax-rs.rb +++ b/Formula/tomee-jax-rs.rb @@ -1,18 +1,30 @@ -require 'formula' +require "formula" class TomeeJaxRs < Formula - homepage 'http://tomee.apache.org/' - url 'http://www.apache.org/dyn/closer.cgi?path=tomee/tomee-1.6.0.2/apache-tomee-1.6.0.2-jaxrs.tar.gz' - version '1.6.0.2' - sha1 '53e438f72edb455f4d01464d2e00855fa055ad6b' + homepage "http://tomee.apache.org/" + url "http://www.apache.org/dyn/closer.cgi?path=tomee/tomee-1.7.1/apache-tomee-1.7.1-jaxrs.tar.gz" + version "1.7.1" + sha1 "5abce8176d034fefc19eb6c81fd5d64bc888d0a9" def install # Remove Windows scripts - rm_rf Dir['bin/*.bat'] + rm_rf Dir["bin/*.bat"] # Install files prefix.install %w{ NOTICE LICENSE RELEASE-NOTES RUNNING.txt } - libexec.install Dir['*'] + libexec.install Dir["*"] bin.install_symlink "#{libexec}/bin/startup.sh" => "tomee-jax-rs-startup" end + + def caveats; <<-EOS.undent + The home of Apache TomEE JAX-RS is: + #{opt_libexec} + To run Apache TomEE: + #{opt_libexec}/bin/tomee-jax-rs-startup + EOS + end + + test do + system "#{opt_libexec}/bin/configtest.sh" + end end