diff options
| author | Jon Buffington | 2011-02-27 15:52:00 -0500 | 
|---|---|---|
| committer | Adam Vandenberg | 2011-02-27 13:28:54 -0800 | 
| commit | 517c312f675586dac4211676130a1b284a69b4fd (patch) | |
| tree | e74d8a0502e69c11ec3fa00441e1234418dacd56 /Library/Formula/maven-shell.rb | |
| parent | d9822732946146aba8d77c902d64ee0b359fbba3 (diff) | |
| download | homebrew-517c312f675586dac4211676130a1b284a69b4fd.tar.bz2 | |
Maven Shell 1.0.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/maven-shell.rb')
| -rw-r--r-- | Library/Formula/maven-shell.rb | 20 | 
1 files changed, 20 insertions, 0 deletions
| diff --git a/Library/Formula/maven-shell.rb b/Library/Formula/maven-shell.rb new file mode 100644 index 000000000..59fb919b7 --- /dev/null +++ b/Library/Formula/maven-shell.rb @@ -0,0 +1,20 @@ +require 'formula' + +class MavenShell <Formula +  url 'http://repo1.maven.org/maven2/org/sonatype/maven/shell/dist/mvnsh-assembly/1.0.1/mvnsh-assembly-1.0.1-bin.tar.gz' +  homepage 'http://shell.sonatype.org/' +  md5 '5b0f47c8838aa7525f454f2bca9dbed9' + +  def install +    # Remove windows files. +    rm_f Dir["bin/*.bat"] + +    # Install jars in libexec to avoid conflicts. +    prefix.install %w{ NOTICE.txt LICENSE.txt README.txt } +    libexec.install Dir['*'] + +    # Symlink the boot script. +    bin.mkpath +    ln_s "#{libexec}/bin/mvnsh", bin+"mvnsh" +  end +end | 
