freebsd-ports/www/node-devel/files/patch-gyp-common.py
Sunpoet Po-Chuan Hsieh 0653f86f9c - Update to 0.7.8
- Do not install bundled npm, users who requires npm can install www/npm
- While I'm here:
  - Restrict USE_PYTHON range
  - Add post-install: to remove .orig

Changes:	https://github.com/joyent/node/blob/v0.7.8/ChangeLog
PR:		ports/164862
Submitted by:	Jin-Sih Lin <linpct@gmail.com> (maintainer)
2012-05-08 03:13:41 +00:00

14 lines
434 B
Python

--- tools/gyp/pylib/gyp/common.py.orig 2012-02-02 03:37:12.000000000 +0800
+++ tools/gyp/pylib/gyp/common.py 2012-02-08 01:20:58.000000000 +0800
@@ -352,7 +352,10 @@
'freebsd7': 'freebsd',
'freebsd8': 'freebsd',
}
- flavor = flavors.get(sys.platform, 'linux')
+ if 'freebsd' in sys.platform:
+ flavor = 'freebsd'
+ else:
+ flavor = flavors.get(sys.platform, 'linux')
return params.get('flavor', flavor)