61b2307139
brewkit.rb changes ENV destructively, so lets not do that everytime a formula is required. Now it's possible for other tools to require a formula description without worrying about side-effects.
15 lines
407 B
Ruby
15 lines
407 B
Ruby
require 'formula'
|
|
|
|
# TODO common aliases: 'apache ant'
|
|
|
|
class Ant <Formula
|
|
@url='http://www.ibiblio.org/pub/mirrors/apache/ant/binaries/apache-ant-1.7.1-bin.tar.gz'
|
|
@homepage='http://ant.apache.org/'
|
|
@md5='cc5777c57c4e8269be5f3d1dc515301c'
|
|
|
|
def install
|
|
prefix.install Dir['*']
|
|
Dir['bin/*.cmd'].each { |file| File.unlink file }
|
|
Dir['bin/*.bat'].each { |file| File.unlink file }
|
|
end
|
|
end
|