Skip to content

Instantly share code, notes, and snippets.

@oliverdaff
Created March 28, 2012 06:19
Show Gist options
  • Save oliverdaff/2224172 to your computer and use it in GitHub Desktop.
Save oliverdaff/2224172 to your computer and use it in GitHub Desktop.
Nexus Homebrew
require 'formula'
class Nexus < Formula
homepage 'http://www.sonatype.org/nexus/'
url 'http://www.sonatype.org/downloads/nexus-2.0.2-bundle.tar.gz'
md5 '7403fbcb06eea8d20f85c5ed36661570'
skip_clean :all
def install
rm_rf Dir['bin/*.bat']
prefix.install %w{ nexus-2.0.2/NOTICE.txt nexus-2.0.2/LICENSE.txt }
libexec.install Dir['*']
bin.install_symlink "#{libexec}/nexus-2.0.2/bin/nexus" => "nexus"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment