homebrew-core/Formula/dmd.rb
Stefan 71ee678bfa dmd 2.063
Closes Homebrew/homebrew#20161.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-30 10:22:54 -07:00

27 lines
668 B
Ruby

require 'formula'
class Dmd < Formula
homepage 'http://www.digitalmars.com/d/'
url 'http://downloads.dlang.org.s3-website-us-east-1.amazonaws.com/releases/2013/dmd.2.063.zip'
sha1 '589e6d87e10fb7a9bbfbcadb702ba7c05000d0bf'
def install
# clean it up a little first
rm Dir['src/*.mak']
mv 'license.txt', 'COPYING'
mv 'README.TXT', 'README'
cd 'osx/bin' do
mv 'dmdx.conf', 'dmd.conf'
inreplace 'dmd.conf', '~/dmd2', prefix
end
rmtree 'src/dmd'
prefix.install 'osx/bin', 'osx/lib', 'src'
man.install 'man/man1'
man5.install man1/'dmd.conf.5'
(share+'d/examples').install Dir['samples/d/*.d']
end
end