{
  'targets': [{
    'target_name': 'pty',
	'type' : 'loadable_module',
    'conditions': [
      # http://www.gnu.org/software/gnulib/manual/html_node/forkpty.html
      #   One some systems (at least including Cygwin, Interix,
      #   OSF/1 4 and 5, and Mac OS X) linking with -lutil is not required.
      ['OS=="mac" or OS=="solaris" or OS=="linux"', {
        'libraries!': [
          '-lutil'
        ],
		'sources': [
			'src/unix/pty.cc'
		],
      }],
	  ['OS=="win"', {
		'include_dirs' : [
			'deps/winpty/include',
		],
		'dependencies' : [
			'deps/winpty/winpty.gyp:winpty-agent',
			'deps/winpty/winpty.gyp:libwinpty'
		],
		'sources' : [
			'src/win/pty.cc'
		]
	  }]
    ]
  }]
}

@@ -41,35 +41,95 @@
 y',%0A
-%09'type' : 'loadable_module'
+    'sources': %5B%0A      'src/unix/pty.cc'%0A    %5D,%0A    'libraries': %5B%0A      '-lutil'%0A    %5D
 ,%0A  
@@ -397,23 +397,8 @@
 ris%22
- or OS==%22linux%22
 ', %7B
@@ -454,50 +454,8 @@
    %5D
-,%0A%09%09'sources': %5B%0A%09%09%09'src/unix/pty.cc'%0A%09%09%5D,
 %0A   
@@ -461,17 +461,20 @@
     %7D%5D,%0A
-%09
+    
   %5B'OS==
@@ -483,18 +483,24 @@
 in%22', %7B%0A
-%09%09
+        
 'include
@@ -506,27 +506,36 @@
 e_dirs' : %5B%0A
-%09%09%09
+            
 'deps/winpty
@@ -545,23 +545,35 @@
 clude',%0A
-%09%09%5D,%0A%09%09
+        %5D,%0A        
 'depende
@@ -583,19 +583,28 @@
 es' : %5B%0A
-%09%09%09
+            
 'deps/wi
@@ -634,19 +634,28 @@
 agent',%0A
-%09%09%09
+            
 'deps/wi
@@ -685,15 +685,27 @@
 ty'%0A
-%09%09%5D,%0A%09%09
+        %5D,%0A        
 'sou
@@ -718,11 +718,20 @@
 : %5B%0A
-%09%09%09
+            
 'src
@@ -747,13 +747,22 @@
 cc'%0A
-%09%09%5D%0A%09
+        %5D%0A    
   %7D%5D

Fix formatting and unbreak unix build.