[packages/nodejs-gyp] add -j N alias for build

glen glen at pld-linux.org
Sun Apr 7 22:03:04 CEST 2013


commit 55a30e86fd0a17b9d91025cb432703c8c141208e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Apr 7 23:02:32 2013 +0300

    add -j N alias for build
    
    upstream PR: https://github.com/TooTallNate/node-gyp/pull/234

 jobs-alias.patch | 10 ++++++++++
 nodejs-gyp.spec  |  4 +++-
 2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/nodejs-gyp.spec b/nodejs-gyp.spec
index a87d105..2088132 100644
--- a/nodejs-gyp.spec
+++ b/nodejs-gyp.spec
@@ -5,12 +5,13 @@
 Summary:	Node.js native addon build tool
 Name:		nodejs-gyp
 Version:	0.9.5
-Release:	0.1
+Release:	0.2
 License:	MIT
 Group:		Development/Libraries
 URL:		https://github.com/TooTallNate/node-gyp
 Source0:	http://registry.npmjs.org/node-gyp/-/node-gyp-%{version}.tgz
 # Source0-md5:	3d8a5cf4b5b92457af68035bb0e0e96f
+Patch0:		jobs-alias.patch
 BuildRequires:	sed >= 4.0
 Requires:	make
 Requires:	nodejs
@@ -49,6 +50,7 @@ replacement to the node-waf program which is removed for node v0.8.
 %prep
 %setup -qc
 mv package/* .
+%patch0 -p1
 
 # fix shebangs
 %{__sed} -i -e '1s,^#!.*node,#!/usr/bin/node,' \
diff --git a/jobs-alias.patch b/jobs-alias.patch
new file mode 100644
index 0000000..b763844
--- /dev/null
+++ b/jobs-alias.patch
@@ -0,0 +1,10 @@
+--- node-gyp/lib/node-gyp.js	2013-03-09 01:42:19.000000000 +0200
++++ nodejs-gyp-0.9.5/lib/node-gyp.js	2013-04-07 22:54:31.155021983 +0300
+@@ -97,6 +98,7 @@
+     release: '--no-debug'
+   , C: '--directory'
+   , debug: '--debug'
++  , j: '--jobs'
+   , silly: '--loglevel=silly'
+   , verbose: '--loglevel=verbose'
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nodejs-gyp.git/commitdiff/55a30e86fd0a17b9d91025cb432703c8c141208e



More information about the pld-cvs-commit mailing list