Created
January 7, 2015 17:18
-
-
Save mitallast/c685cab2e5adf1bbd88f to your computer and use it in GitHub Desktop.
apache ant homebrew formula
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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