aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build.rb
diff options
context:
space:
mode:
authorJack Nagel2013-06-10 17:24:44 -0500
committerJack Nagel2013-06-10 17:38:52 -0500
commitd6ff5fb1bfd8ecb034a90d331cca7c7ec91e4d3b (patch)
treec25da0909915aea4d15721ea67b753e42f0b8180 /Library/Homebrew/build.rb
parenteaeb18827cca99d2bcd0b518479bb45d40d9b7ed (diff)
downloadhomebrew-d6ff5fb1bfd8ecb034a90d331cca7c7ec91e4d3b.tar.bz2
Cast deps to formula before passing them to superenv
Dependency names retain the "tap prefix", e.g. the "homebrew/dupes" part of "homebrew/dupes/zlib". However formula objects do not, and this is desired because we do not record the tap name as part of the installation prefix. So we need to ensure the correct dep names are passed to superenv, otherwise it will not add the correct directories to various environment variables.
Diffstat (limited to 'Library/Homebrew/build.rb')
-rwxr-xr-xLibrary/Homebrew/build.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 96245f022..461d71118 100755
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -108,14 +108,14 @@ class Build
pre_superenv_hacks
require 'superenv'
- deps.each do |dep|
+ deps.map(&:to_formula).each do |dep|
opt = HOMEBREW_PREFIX/:opt/dep
- fixopt(dep.to_formula) unless opt.directory? or ARGV.ignore_deps?
+ fixopt(dep) unless opt.directory? or ARGV.ignore_deps?
end
if superenv?
ENV.keg_only_deps = keg_only_deps.map(&:to_s)
- ENV.deps = deps.map(&:to_s)
+ ENV.deps = deps.map { |d| d.to_formula.to_s }
ENV.x11 = reqs.any? { |rq| rq.kind_of?(X11Dependency) }
ENV.setup_build_environment
post_superenv_hacks