[Lunar-commits] <moonbase-other> iojs: a fork of node.js.

Florin Braescu florin at lunar-linux.org
Fri Mar 6 15:37:29 CET 2015


commit 9a2e957f2ac973ef5cdbfe26d8199e42a3d55906
Author: Florin Braescu <florin at lunar-linux.org>
Date: Fri, 06 Mar 2015 16:37:04 +0200
URL: https://github.com/lunar-linux/moonbase-other/commit/9a2e957f2ac973ef5cdbfe26d8199e42a3d55906

iojs: a fork of node.js.
---
  aliases              | +1/-0     
  web/iojs/BUILD       | +6/-0     
  web/iojs/CONFLICTS   | +2/-0     
  web/iojs/DEPENDS     | +3/-0     
  web/iojs/DETAILS     | +14/-0    
  web/iojs/PKGBUILD    | +57/-0    
  web/nodejs/CONFLICTS | +2/-0     
  7 files changed, 85 insertions(+)

--- a/aliases
+++ b/aliases
@@ -16,3 +16,4 @@
 %BLUEZ:bluez-5 bluez
 %FLASH:pepperflash flash-plugin-11
 %MOZJS:spidermonkey mozjs
+%NODEJS:nodejs iojs
--- /dev/null
+++ b/web/iojs/BUILD
@@ -0,0 +1,6 @@
+./configure --prefix=/usr     \
+            --shared-zlib     \
+            --shared-openssl  \
+            --shared-libuv   &&
+
+default_make
--- /dev/null
+++ b/web/iojs/CONFLICTS
@@ -0,0 +1,2 @@
+conflicts node.js
+
--- /dev/null
+++ b/web/iojs/DEPENDS
@@ -0,0 +1,3 @@
+depends Python
+depends openssl
+depends libuv
--- /dev/null
+++ b/web/iojs/DETAILS
@@ -0,0 +1,14 @@
+          MODULE=iojs
+         VERSION=v1.4.3
+          SOURCE=$MODULE-$VERSION.tar.gz
+      SOURCE_URL=http://iojs.org/dist/$VERSION
+      SOURCE_VFY=sha256:86f89147606311a159dcb3d110f5e3b55fc614d1577b7cbe25d27df16b4e33b0
+        WEB_SITE=http://iojs.org/
+         ENTERED=20150227
+         UPDATED=20150306
+           SHORT="Evented I/O for V8 javascript - Node.js fork"
+
+cat << EOF
+Evented I/O for V8 javascript - Node.js fork.
+EOF
+
--- /dev/null
+++ b/web/iojs/PKGBUILD
@@ -0,0 +1,57 @@
+# Maintainer: Alexandre Ferrando <alferpal at gmail.com>
+
+pkgname=iojs
+pkgver=1.3.0
+_foldername=iojs-v${pkgver}
+pkgrel=1
+pkgdesc='Evented I/O for V8 JavaScript - Node.js fork'
+url='http://iojs.org/'
+license=('MIT')
+arch=('i686' 'x86_64')
+depends=('openssl' 'zlib' 'libuv')
+makedepends=('python2' 'git')
+optdepends=('python2: for node-gyp')
+provides=('nodejs')
+conflicts=('nodejs' 'iojs-bin')
+options=('!emptydirs')
+source=("https://iojs.org/dist/v${pkgver}/iojs-v${pkgver}.tar.gz")
+sha256sums=('eb652fb854274e04b4a309b1b8cd4d5bb3eb45882e9442bacb129d247e9de021')
+
+prepare() {
+
+  cd "${srcdir}/${_foldername}"
+
+  msg "preparing python version"
+
+  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 's_python _python2 _' -i {} \;
+}
+
+build() {
+  cd "${srcdir}/${_foldername}"
+
+  export PYTHON=python2
+  ./configure \
+    --prefix=/usr \
+    --shared-openssl \
+    --shared-zlib \
+    --shared-libuv
+
+  make
+}
+
+check() {
+  cd "${_foldername}"
+  make test || warning "Tests failed"
+}
+
+package() {
+  cd "${srcdir}/${_foldername}"
+  make DESTDIR="$pkgdir" install
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/iojs/LICENSE
+}
--- /dev/null
+++ b/web/nodejs/CONFLICTS
@@ -0,0 +1,2 @@
+conflicts iojs
+




More information about the Lunar-commits mailing list