Skip to content

Instantly share code, notes, and snippets.

@lazyval
Last active December 14, 2015 20:29
Show Gist options
  • Save lazyval/5144258 to your computer and use it in GitHub Desktop.
Save lazyval/5144258 to your computer and use it in GitHub Desktop.
Homebrew formula for ant 1.9.0
require 'formula'
class Ant < Formula
homepage 'http://ant.apache.org/'
url 'http://www.apache.org/dyn/closer.cgi?path=ant/binaries/apache-ant-1.9.0-bin.tar.gz'
sha1 '791418e7e80e3f28d6347528e8992a14f09058e7'
def install
rm Dir['bin/*.{bat,cmd,dll,exe}']
libexec.install Dir['*']
bin.mkpath
Dir["#{libexec}/bin/*"].each do |f|
ln_s f, bin+File.basename(f)
end
end
def test
system "ant -version"
end
end
@lazyval
Copy link
Author

lazyval commented Mar 12, 2013

Issue brew install https://gist.github.com/lazyval/5144258/raw/443d89ee79eb40833b950b79177f03b9937de84a/ant.rb to install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment