community/nodejs => v0.8.8 stable

This commit is contained in:
WarheadsSE 2012-08-22 22:24:27 -04:00
parent 9d14d841f3
commit 332f4256df

View file

@ -7,7 +7,7 @@
# Contributor: Jason Plum <max@warheads.net>
pkgname=nodejs
pkgver=0.8.7
pkgver=0.8.8
pkgrel=1
pkgdesc='Evented I/O for V8 javascript'
arch=('i686' 'x86_64' 'arm')
@ -18,14 +18,11 @@ checkdepends=('curl') # curl used for check()
optdepends=('openssl: TLS support')
options=('!emptydirs')
source=("http://nodejs.org/dist/v${pkgver}/node-v${pkgver}.tar.gz")
sha1sums=('58ffb5884304e2f8415d8cee7921c42f66fc8d7b')
sha1sums=('5ddafc059d2f774e35e6375f5b61157879a46f0f')
build() {
cd node-v${pkgver}
# fs#30766 # moved back to install.py
# 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 {} \;