aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/wine.rb15
1 files changed, 6 insertions, 9 deletions
diff --git a/Library/Formula/wine.rb b/Library/Formula/wine.rb
index f7c69f129..375418fc3 100644
--- a/Library/Formula/wine.rb
+++ b/Library/Formula/wine.rb
@@ -85,6 +85,12 @@ class Wine < Formula
# Including /usr/lib because wine, as of 1.3.15, tries to dlopen
# libncurses.5.4.dylib, and fails to find it without the fallback path.
+ def library_path
+ path = %W[#{HOMEBREW_PREFIX}/lib /usr/lib]
+ paths.unshift(MacOS::X11.lib) unless build.without? 'x11'
+ paths.join(':')
+ end
+
def wine_wrapper; <<-EOS.undent
#!/bin/sh
DYLD_FALLBACK_LIBRARY_PATH="#{library_path}" "#{bin}/wine.bin" "$@"
@@ -173,13 +179,4 @@ class Wine < Formula
end
return s
end
-
- private
-
- def library_path
- paths = ["#{HOMEBREW_PREFIX}/lib", '/usr/lib']
- paths.unshift(MacOS::X11.lib) unless build.without? 'x11'
-
- paths.join(':')
- end
end