Skip to content

Instantly share code, notes, and snippets.

@mitallast
Created January 7, 2015 17:18
Show Gist options
  • Save mitallast/c685cab2e5adf1bbd88f to your computer and use it in GitHub Desktop.
Save mitallast/c685cab2e5adf1bbd88f to your computer and use it in GitHub Desktop.
apache ant homebrew formula
class ApacheAnt < Formula
homepage "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.tar.gz"
url "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.tar.gz"
sha1 "6344bb150f22dc335462bafa87de45085d51a5be"
def install
rm Dir["bin/*.{bat,cmd,dll,exe}"]
libexec.install Dir["*"]
bin.install_symlink Dir["#{libexec}/bin/*"]
if build.with? "ivy"
resource("ivy").stage do
(libexec/"lib").install Dir["ivy-*.jar"]
end
end
if build.with? "bcel"
resource("bcel").stage do
(libexec/"lib").install Dir["bcel-*.jar"]
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment