Skip to content

Instantly share code, notes, and snippets.

@cspanring
Created October 27, 2011 20:59
Show Gist options
  • Save cspanring/1320855 to your computer and use it in GitHub Desktop.
Save cspanring/1320855 to your computer and use it in GitHub Desktop.
Maven 2.2.1 homebrew formula (required for GeoNode build environment)
require 'formula'
class Maven2 <Formula
url 'http://www.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.tar.gz'
homepage 'http://maven.apache.org/'
if ARGV.build_head?
md5 'a40881f56a3087828545f30921ff393f'
else
md5 '3f829ed854cbacdaca8f809e4954c916'
end
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 binaries
bin.mkpath
Dir["#{libexec}/bin/*"].each do |f|
ln_s f, bin+File.basename(f)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment