mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
Upgrading nodejs to version 0.8.0.
This commit is contained in:
parent
70296161d8
commit
b67822e3ed
@ -9,7 +9,7 @@
|
||||
# Contributor: TIanyi Cui <tianyicui@gmail.com>
|
||||
|
||||
pkgname=nodejs
|
||||
pkgver=0.6.19
|
||||
pkgver=0.8.0
|
||||
pkgrel=1
|
||||
pkgdesc="Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications."
|
||||
arch=('i686' 'x86_64')
|
||||
@ -19,21 +19,12 @@ depends=('python2' 'openssl')
|
||||
checkdepends=('curl') # curl used for check()
|
||||
options=('!emptydirs')
|
||||
source=("http://nodejs.org/dist/v${pkgver}/node-v${pkgver}.tar.gz")
|
||||
md5sums=('f5669a9717422b811c6bad1cc961b1e5')
|
||||
md5sums=('7efde00ad3292d4c56ad607ab676d935')
|
||||
|
||||
build() {
|
||||
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
|
||||
|
||||
./configure --prefix=/usr
|
||||
|
||||
make
|
||||
@ -41,10 +32,7 @@ build() {
|
||||
|
||||
check() {
|
||||
cd "node-v${pkgver}"
|
||||
|
||||
# test failures in 0.6 are known
|
||||
# specifically https://github.com/joyent/node/pull/1699
|
||||
make test || true
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
|
Loading…
Reference in New Issue
Block a user