aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-02-19 19:09:32 -0800
committerAdam Vandenberg2012-02-19 19:10:56 -0800
commit6b4d345c3f16a4c5bbc780442db0f138cda7fa18 (patch)
tree46c709cc5cb2a2e2a606a11de0eb1b766a59081b /Library/Formula
parent18672b95bb90f8acedabf3e46525440a19363083 (diff)
downloadhomebrew-6b4d345c3f16a4c5bbc780442db0f138cda7fa18.tar.bz2
dmd: fix writing conf file
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/dmd.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/dmd.rb b/Library/Formula/dmd.rb
index 682657774..c8ff22174 100644
--- a/Library/Formula/dmd.rb
+++ b/Library/Formula/dmd.rb
@@ -24,8 +24,10 @@ class Dmd < Formula
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 fix since I'm just pulling a change
+ # 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