Upgrading nodejs to version 0.8.0.

This commit is contained in:
Daniele 2012-06-26 00:34:49 +00:00
parent 70296161d8
commit b67822e3ed

View File

@ -9,7 +9,7 @@
# Contributor: TIanyi Cui <tianyicui@gmail.com> # Contributor: TIanyi Cui <tianyicui@gmail.com>
pkgname=nodejs pkgname=nodejs
pkgver=0.6.19 pkgver=0.8.0
pkgrel=1 pkgrel=1
pkgdesc="Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications." pkgdesc="Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications."
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
@ -19,21 +19,12 @@ depends=('python2' 'openssl')
checkdepends=('curl') # curl used for check() checkdepends=('curl') # curl used for check()
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")
md5sums=('f5669a9717422b811c6bad1cc961b1e5') md5sums=('7efde00ad3292d4c56ad607ab676d935')
build() { build() {
cd "node-v${pkgver}" cd "node-v${pkgver}"
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/&2/' configure
export PYTHON=python2 export PYTHON=python2
./configure --prefix=/usr ./configure --prefix=/usr
make make
@ -41,10 +32,7 @@ build() {
check() { check() {
cd "node-v${pkgver}" cd "node-v${pkgver}"
make test
# test failures in 0.6 are known
# specifically https://github.com/joyent/node/pull/1699
make test || true
} }
package() { package() {