1 diff -ur node-v0.8.15-o/Makefile node-v0.8.15/Makefile
2 --- node-v0.8.15-o/Makefile 2012-11-26 08:51:39.000000000 -0700
3 +++ node-v0.8.15/Makefile 2012-12-02 10:04:42.000000000 -0700
5 out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/zlib/zlib.gyp deps/v8/build/common.gypi deps/v8/tools/gyp/v8.gyp node.gyp config.gypi
6 $(PYTHON) tools/gyp_node -f make
9 - $(PYTHON) tools/install.py $@ $(DESTDIR)
10 +install: all justinstall
13 + $(PYTHON) tools/install.py install $(DESTDIR) $(LIBDIR)
16 - $(PYTHON) tools/install.py $@ $(DESTDIR)
17 + $(PYTHON) tools/install.py $@ $(DESTDIR) $(LIBDIR)
20 -rm -rf out/Makefile node node_g out/$(BUILDTYPE)/node blog.html email.md
21 diff -ur node-v0.8.15-o/node.gyp node-v0.8.15/node.gyp
22 --- node-v0.8.15-o/node.gyp 2012-11-26 08:51:39.000000000 -0700
23 +++ node-v0.8.15/node.gyp 2012-12-02 10:04:42.000000000 -0700
29 + 'deps/uv/uv.gyp:uv',
36 + '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
41 + # node.gyp is added to the project by default.
46 + 'NODE_WANT_INTERNALS=1',
47 + 'ARCH="<(target_arch)"',
52 + 'target_name': 'libnode',
53 + 'type': 'shared_library',
54 + 'product_extension': 'so.8.0.0',
55 + 'soname_version': '8.0.0',
58 'deps/http_parser/http_parser.gyp:http_parser',
63 'src/node_http_parser.cc',
64 'src/node_javascript.cc',
68 'src/node_stat_watcher.cc',
69 diff -ur node-v0.8.15-o/tools/install.py node-v0.8.15/tools/install.py
70 --- node-v0.8.15-o/tools/install.py 2012-12-01 22:39:50.000000000 -0700
71 +++ node-v0.8.15/tools/install.py 2012-12-02 10:04:52.000000000 -0700
75 node_prefix = None # dst_dir without DESTDIR prefix
77 target_defaults = None
81 assert(0) # unhandled action type
85 action(['deps/uv/include/ares.h',
86 'deps/uv/include/ares_version.h',
87 'deps/uv/include/uv.h',
89 'include/node/uv-private/')
90 action(['doc/node.1'], 'share/man/man1/')
91 action(['out/Release/node'], 'bin/node')
92 + action(['out/Release/lib.target/libnode.so.8.0.0'], lib_dir + '/libnode.so.8.0.0')
94 # install unconditionally, checking if the platform supports dtrace doesn't
95 # work when cross-compiling and besides, there's at least one linux flavor
97 if 'true' == variables.get('node_install_npm'): npm_files(action)
100 - global dst_dir, node_prefix, target_defaults, variables
101 + global dst_dir, node_prefix, target_defaults, variables, lib_dir
103 # chdir to the project's top-level directory
104 os.chdir(abspath(os.path.dirname(__file__), '..'))
106 # argv[2] is a custom install prefix for packagers (think DESTDIR)
107 dst_dir = node_prefix = variables.get('node_prefix') or '/usr/local'
108 if len(args) > 2: dst_dir = abspath(args[2] + '/' + dst_dir)
109 + if len(args) > 3: lib_dir = args[3]
111 cmd = args[1] if len(args) > 1 else 'install'
112 if cmd == 'install': return files(install)