Fixes #757; Node.js hardcodes some paths

This way we can install anywhere, not just /usr/local and /opt/local.
This commit is contained in:
Max Howell committed 2010-02-19 17:34:40 +00:00
1 parent a47ddd8868
commit d03ebe3de0
1 file changed
+4
+4
View File
@@ -17,6 +17,10 @@ class Node <Formula
end
def install
inreplace %w{wscript configure} do |wscript|
wscript.gsub! '/usr/local', HOMEBREW_PREFIX
wscript.gsub! '/opt/local/lib', '/usr/lib'
end
ENV.gcc_4_2
system "./configure", "--prefix=#{prefix}"
system "make install"