summaryrefslogtreecommitdiff
path: root/community/nodejs/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-06 23:15:07 +0000
committerroot <root@rshg054.dnsready.net>2011-11-06 23:15:07 +0000
commita4d309341dbcd3c28ee68e818c1d5ef54114adf8 (patch)
treed8b088a03f5cb2b56b2b7508933b4efcfd67f0b2 /community/nodejs/PKGBUILD
parent82fd7f658509afe9737e14e8d1ee9fefe13c9d1f (diff)
Sun Nov 6 23:15:07 UTC 2011
Diffstat (limited to 'community/nodejs/PKGBUILD')
-rw-r--r--community/nodejs/PKGBUILD21
1 files changed, 10 insertions, 11 deletions
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 <tianyicui@gmail.com>
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() {