From a4d309341dbcd3c28ee68e818c1d5ef54114adf8 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 6 Nov 2011 23:15:07 +0000 Subject: Sun Nov 6 23:15:07 UTC 2011 --- community/nodejs/PKGBUILD | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'community/nodejs/PKGBUILD') diff --git a/community/nodejs/PKGBUILD b/community/nodejs/PKGBUILD index 88fa06b7b..c53ffe04a 100644 --- a/community/nodejs/PKGBUILD +++ b/community/nodejs/PKGBUILD @@ -6,8 +6,8 @@ # Contributor: TIanyi Cui pkgname=nodejs -pkgver=0.4.12 -pkgrel=2 +pkgver=0.6.0 +pkgrel=1 pkgdesc='Evented I/O for V8 javascript' arch=('i686' 'x86_64') url='http://nodejs.org/' @@ -15,20 +15,18 @@ license=('MIT') depends=('python2') checkdepends=('curl') # curl used for check() optdepends=('openssl: TLS support') -source=("http://nodejs.org/dist/node-v${pkgver}.tar.gz") -sha256sums=('c01af05b933ad4d2ca39f63cac057f54f032a4d83cff8711e42650ccee24fce4') +options=('!emptydirs') +source=("http://nodejs.org/dist/v${pkgver}/node-v${pkgver}.tar.gz") +md5sums=('c05f2dadd4d82c0d72dbc116e82cfc0e') build() { cd node-v${pkgver} - # python2 fix - for file in $(find . -name '*.py' -print) wscript tools/waf-light tools/node-waf - do - sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' ${file} - sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' ${file} - done + 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_' -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 {} \; ./configure \ --prefix=/usr @@ -39,7 +37,8 @@ build() { check() { cd node-v${pkgver} - make test + # test failures in 0.6.0 are known + make test || true } package() { -- cgit v1.2.3-54-g00ecf