homebrew-core/Formula/maven-shell.rb

18 lines
513 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class MavenShell < Formula
homepage 'http://shell.sonatype.org/'
2012-02-12 22:40:52 +00:00
url 'http://repo1.maven.org/maven2/org/sonatype/maven/shell/dist/mvnsh-assembly/1.0.1/mvnsh-assembly-1.0.1-bin.tar.gz'
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['*']
2012-02-12 22:40:52 +00:00
bin.install_symlink "#{libexec}/bin/mvnsh"
end
end