community/nodejs to 0.8.3-2

This commit is contained in:
Kevin Mihelich 2012-07-20 10:41:16 -04:00
parent f381ed7358
commit eed90fffe1

View file

@ -7,8 +7,8 @@
# Contributor: Jason Plum <max@warheads.net> # Contributor: Jason Plum <max@warheads.net>
pkgname=nodejs pkgname=nodejs
pkgver=0.8.2 pkgver=0.8.3
pkgrel=3 pkgrel=2
pkgdesc='Evented I/O for V8 javascript' pkgdesc='Evented I/O for V8 javascript'
arch=('i686' 'x86_64' 'arm') arch=('i686' 'x86_64' 'arm')
url='http://nodejs.org/' url='http://nodejs.org/'
@ -18,17 +18,18 @@ checkdepends=('curl') # curl used for check()
optdepends=('openssl: TLS support') optdepends=('openssl: TLS support')
options=('!emptydirs') options=('!emptydirs')
source=("http://nodejs.org/dist/v${pkgver}/node-v${pkgver}.tar.gz") source=("http://nodejs.org/dist/v${pkgver}/node-v${pkgver}.tar.gz")
sha1sums=('0e743d21b487151e67950f09198def058db19a1e') md5sums=('53604d2e3773d62e90fa5a340a362e08')
build() { build() {
cd node-v${pkgver} cd node-v${pkgver}
# 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' 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 -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 {} \; find test -type f -exec sed -e "s|python |python2 |" -i {} \;
sed -i "s|python |python2 |" Makefile 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 export PYTHON=python2
# we're going to attept to make use of this example # we're going to attept to make use of this example
@ -49,7 +50,6 @@ build() {
check() { check() {
cd node-v${pkgver} cd node-v${pkgver}
# test failures in 0.6 are known
make test || true make test || true
} }