diff options
Diffstat (limited to 'community/nodejs')
-rw-r--r-- | community/nodejs/PKGBUILD | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/community/nodejs/PKGBUILD b/community/nodejs/PKGBUILD index 945ebab4a..84155cea3 100644 --- a/community/nodejs/PKGBUILD +++ b/community/nodejs/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 74081 2012-07-19 18:54:00Z bpiotrowski $ +# $Id: PKGBUILD 74092 2012-07-20 09:07:43Z bpiotrowski $ # Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: James Campos <james.r.campos@gmail.com> @@ -9,7 +9,7 @@ pkgname=nodejs pkgver=0.8.3 -pkgrel=1 +pkgrel=2 pkgdesc='Evented I/O for V8 javascript' arch=('i686' 'x86_64') url='http://nodejs.org/' @@ -24,13 +24,13 @@ md5sums=('53604d2e3773d62e90fa5a340a362e08') build() { cd node-v${pkgver} - msg 'fixing for python2 name' + # fs#30766 + sed -i "s|var npmDir = path.resolve(node_prefix, 'lib/node_modules/npm');|var npmDir = path.join(dest_dir, node_prefix, 'lib/node_modules/npm');|" tools/installer.js + + msg 'Fixing for python2 name' find -type f -exec sed -e 's_^#!/usr/bin/env python$_&2_' -e 's_^\(#!/usr/bin/python2\).[45]$_\1_' -e 's_^#!/usr/bin/python$_&2_' -e "s_'python'_'python2'_" -i {} \; find test -type f -exec sed -e "s|python |python2 |" -i {} \; - #sed -i "s|cmd_R = 'python |cmd_R = 'python2 |" wscript sed -i "s|python |python2 |" Makefile - #find test -type f -exec sed -e 's/python/&2/' -i {} \; - #sed -i "s/python/python2/" configure export PYTHON=python2 @@ -43,9 +43,6 @@ build() { check() { cd node-v${pkgver} - - # test failures in 0.6 are known - # specifically https://github.com/joyent/node/pull/1699 make test || true } |