aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorStevan Vučenović2012-02-16 14:15:11 +0100
committerAdam Vandenberg2012-02-19 17:16:44 -0800
commit929a47783d6aa6c46bfeaa3f1ca90370c0a7b5a2 (patch)
tree6c8e9197482e14b0cba7978ec834f3145783e53a /Library/Formula
parentf69d95878c3ae4c115ec123990b130c627f40e95 (diff)
downloadhomebrew-929a47783d6aa6c46bfeaa3f1ca90370c0a7b5a2.tar.bz2
dmd 2.058
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/dmd.rb22
1 files changed, 10 insertions, 12 deletions
diff --git a/Library/Formula/dmd.rb b/Library/Formula/dmd.rb
index 4a2c6d52a..682657774 100644
--- a/Library/Formula/dmd.rb
+++ b/Library/Formula/dmd.rb
@@ -2,8 +2,8 @@ require 'formula'
class Dmd < Formula
homepage 'http://www.digitalmars.com/d/'
- url 'https://github.com/downloads/D-Programming-Language/dmd/dmd.2.057.zip'
- md5 '531c4b60eb002ea8abbe5c80b2eb677d'
+ url 'http://cloud.github.com/downloads/D-Programming-Language/dmd/dmd.2.058.zip'
+ md5 '81a0fe7b635d3a38ecbefff6048a37fe'
def doc
#use d and not dmd, rationale: meh
@@ -11,26 +11,24 @@ class Dmd < Formula
end
def install
- ohai "Installing dmd"
-
# clean it up a little first
- Dir['src/*.mak'].each {|f| File.unlink f}
+ rm Dir['src/*.mak']
mv 'license.txt', 'COPYING'
mv 'README.TXT', 'README'
mv 'src/phobos/phoboslicense.txt', 'src/phobos/COPYING.phobos'
- prefix.install 'osx/lib'
- prefix.install 'osx/bin'
- prefix.install 'src'
+ prefix.install 'osx/bin', 'osx/lib', 'src'
man.install 'man/man1'
(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']
- (bin+'dmd.conf').open('w') do |f|
- f.puts "[Environment]"
- f.puts "DFLAGS=-I#{prefix}/src/phobos -I#{prefix}/src/druntime/import"
- end
+ # @adamv: this should not go into bin!
+ # but I'm too lazy to fix since I'm just pulling a change
+ (bin+'dmd.conf').write <<-EOS.undent
+ [Environment]
+ DFLAGS=-I#{prefix}/src/phobos -I#{prefix}/src/druntime/import
+ EOS
end
end