diff options
| author | Stefan | 2013-03-04 03:00:44 +0100 |
|---|---|---|
| committer | Jack Nagel | 2013-03-07 16:10:48 -0600 |
| commit | d9e371566be3acc89472b74d5803a78e0124acb3 (patch) | |
| tree | ec2ba490657752828fe21b62c1d043b34184c37b | |
| parent | bb8b70124f7aea876483ebea267c0fbf81942497 (diff) | |
| download | homebrew-d9e371566be3acc89472b74d5803a78e0124acb3.tar.bz2 | |
dmd 2.062
Closes #18216.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Formula/dmd.rb | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/Library/Formula/dmd.rb b/Library/Formula/dmd.rb index 36438a150..b834c4191 100644 --- a/Library/Formula/dmd.rb +++ b/Library/Formula/dmd.rb @@ -2,13 +2,8 @@ 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.061.zip' - sha1 'c50fca6f5abe292d38fcbb87fc19c0324d6a605b' - - def doc - #use d and not dmd, rationale: meh - prefix+'share/doc/d' - end + url 'http://downloads.dlang.org.s3-website-us-east-1.amazonaws.com/releases/2013/dmd.2.062.zip' + sha1 '02caec18aeb55ff2d2251925e867340f58617c80' def install # clean it up a little first @@ -16,20 +11,17 @@ class Dmd < Formula 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' - (prefix+'src/dmd').rmtree # we don't need the dmd sources thanks - man5.install man1+'dmd.conf.5' # oops (share+'d/examples').install Dir['samples/d/*.d'] - - # Rewrite the DFLAGS to point to the prefix. - # @adamv: this should not go into bin! - # But I'm too lazy to figure out how to fix right now. - rm bin+'dmd.conf' - (bin+'dmd.conf').write <<-EOS.undent - [Environment] - DFLAGS=-I#{prefix}/src/phobos -I#{prefix}/src/druntime/import - EOS end end |
