From b74c1c99c4f363ac8288a4de7ab686a6f69ba84b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 5 Sep 2013 11:27:23 -0500 Subject: node: fix compilation on 10.6 --- Library/Formula/node.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index a21583d5d..bfda5f39c 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -53,7 +53,15 @@ class Node < Formula end # fixes gyp's detection of system paths on CLT-only systems - def patches; DATA; end + # fix compilation of libuv on <= 10.6, fixed upstream + def patches + p = [DATA] + + if build.stable? && MacOS.version <= :snow_leopard + p << "https://gist.github.com/jacknagel/6452630/raw/4d2af17010bad40c14ad9c920ef5562a646fb449/fsevents.diff" + end + p + end def install args = %W{--prefix=#{prefix}} -- cgit v1.2.3