[arch-commits] Commit in nodejs-lts-boron (7 files)

Bruno Pagani archange at archlinux.org
Sun May 28 20:36:32 UTC 2017


    Date: Sunday, May 28, 2017 @ 20:36:31
  Author: archange
Revision: 230705

archrelease: copy trunk to community-i686, community-x86_64

Added:
  nodejs-lts-boron/repos/
  nodejs-lts-boron/repos/community-i686/
  nodejs-lts-boron/repos/community-i686/PKGBUILD
    (from rev 230704, nodejs-lts-boron/trunk/PKGBUILD)
  nodejs-lts-boron/repos/community-i686/nodejs-v8-icu59.patch
    (from rev 230704, nodejs-lts-boron/trunk/nodejs-v8-icu59.patch)
  nodejs-lts-boron/repos/community-x86_64/
  nodejs-lts-boron/repos/community-x86_64/PKGBUILD
    (from rev 230704, nodejs-lts-boron/trunk/PKGBUILD)
  nodejs-lts-boron/repos/community-x86_64/nodejs-v8-icu59.patch
    (from rev 230704, nodejs-lts-boron/trunk/nodejs-v8-icu59.patch)

----------------------------------------+
 community-i686/PKGBUILD                |   65 +++++++++++++++++++++++++++++++
 community-i686/nodejs-v8-icu59.patch   |   10 ++++
 community-x86_64/PKGBUILD              |   65 +++++++++++++++++++++++++++++++
 community-x86_64/nodejs-v8-icu59.patch |   10 ++++
 4 files changed, 150 insertions(+)

Copied: nodejs-lts-boron/repos/community-i686/PKGBUILD (from rev 230704, nodejs-lts-boron/trunk/PKGBUILD)
===================================================================
--- repos/community-i686/PKGBUILD	                        (rev 0)
+++ repos/community-i686/PKGBUILD	2017-05-28 20:36:31 UTC (rev 230705)
@@ -0,0 +1,65 @@
+# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange at archlinux.org>
+
+pkgname=nodejs-lts-boron
+pkgver=6.10.3
+pkgrel=1
+pkgdesc='Evented I/O for V8 javascript (LTS release: Boron)'
+arch=('i686' 'x86_64')
+url='https://nodejs.org/'
+license=('MIT')
+depends=('openssl-1.0' 'zlib' 'icu' 'libuv' 'http-parser' 'c-ares')
+makedepends=('python2' 'procps-ng')
+optdepends=('npm: nodejs package manager')
+provides=('nodejs')
+conflicts=('nodejs')
+source=("${url}/dist/v${pkgver}/node-v${pkgver}.tar.xz"
+        'nodejs-v8-icu59.patch')
+sha256sums=('82262a703e61164e09170a14d88b1726720651b0c7ee87a277654247b21b5388'
+            '15a78733b18b578ef1f0fb566e8ec19632cb91bad0844c9d4c3cfe473185e0d1')
+
+prepare() {
+  cd node-v${pkgver}
+
+  patch -p1 -i ../nodejs-v8-icu59.patch
+
+  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_^\( *exec \+\)python\( \+.*\)$_\1python2\2_'\
+    -e 's_^\(.*\)python\( \+-c \+.*\)$_\1python2\2_'\
+    -e "s_'python'_'python2'_" -i {} \;
+  find test/ -type f -exec sed 's_python _python2 _' -i {} \;
+}
+
+build() {
+  cd node-v${pkgver}
+  export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
+  export PYTHON=python2
+  ./configure \
+    --prefix=/usr \
+    --with-intl=system-icu \
+    --without-npm \
+    --shared-openssl \
+    --shared-zlib \
+    --shared-libuv \
+    --shared-http-parser \
+    --shared-cares
+
+  make
+}
+
+check() {
+  cd node-v${pkgver}
+  # At least two expected failures because of OpenSSL 1.1 vs 1.0
+  make test || warning "Tests failed"
+}
+
+package() {
+  cd node-v${pkgver}
+
+  make DESTDIR="${pkgdir}" install
+
+  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/nodejs/LICENSE
+}

Copied: nodejs-lts-boron/repos/community-i686/nodejs-v8-icu59.patch (from rev 230704, nodejs-lts-boron/trunk/nodejs-v8-icu59.patch)
===================================================================
--- repos/community-i686/nodejs-v8-icu59.patch	                        (rev 0)
+++ repos/community-i686/nodejs-v8-icu59.patch	2017-05-28 20:36:31 UTC (rev 230705)
@@ -0,0 +1,10 @@
+--- a/deps/v8/src/runtime/runtime-i18n.cc
++++ b/deps/v8/src/runtime/runtime-i18n.cc
+@@ -35,6 +35,7 @@
+ #include "unicode/unistr.h"
+ #include "unicode/unum.h"
+ #include "unicode/uversion.h"
++#include "unicode/normlzr.h"
+ 
+ 
+ namespace v8 {

Copied: nodejs-lts-boron/repos/community-x86_64/PKGBUILD (from rev 230704, nodejs-lts-boron/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD	                        (rev 0)
+++ repos/community-x86_64/PKGBUILD	2017-05-28 20:36:31 UTC (rev 230705)
@@ -0,0 +1,65 @@
+# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange at archlinux.org>
+
+pkgname=nodejs-lts-boron
+pkgver=6.10.3
+pkgrel=1
+pkgdesc='Evented I/O for V8 javascript (LTS release: Boron)'
+arch=('i686' 'x86_64')
+url='https://nodejs.org/'
+license=('MIT')
+depends=('openssl-1.0' 'zlib' 'icu' 'libuv' 'http-parser' 'c-ares')
+makedepends=('python2' 'procps-ng')
+optdepends=('npm: nodejs package manager')
+provides=('nodejs')
+conflicts=('nodejs')
+source=("${url}/dist/v${pkgver}/node-v${pkgver}.tar.xz"
+        'nodejs-v8-icu59.patch')
+sha256sums=('82262a703e61164e09170a14d88b1726720651b0c7ee87a277654247b21b5388'
+            '15a78733b18b578ef1f0fb566e8ec19632cb91bad0844c9d4c3cfe473185e0d1')
+
+prepare() {
+  cd node-v${pkgver}
+
+  patch -p1 -i ../nodejs-v8-icu59.patch
+
+  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_^\( *exec \+\)python\( \+.*\)$_\1python2\2_'\
+    -e 's_^\(.*\)python\( \+-c \+.*\)$_\1python2\2_'\
+    -e "s_'python'_'python2'_" -i {} \;
+  find test/ -type f -exec sed 's_python _python2 _' -i {} \;
+}
+
+build() {
+  cd node-v${pkgver}
+  export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
+  export PYTHON=python2
+  ./configure \
+    --prefix=/usr \
+    --with-intl=system-icu \
+    --without-npm \
+    --shared-openssl \
+    --shared-zlib \
+    --shared-libuv \
+    --shared-http-parser \
+    --shared-cares
+
+  make
+}
+
+check() {
+  cd node-v${pkgver}
+  # At least two expected failures because of OpenSSL 1.1 vs 1.0
+  make test || warning "Tests failed"
+}
+
+package() {
+  cd node-v${pkgver}
+
+  make DESTDIR="${pkgdir}" install
+
+  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/nodejs/LICENSE
+}

Copied: nodejs-lts-boron/repos/community-x86_64/nodejs-v8-icu59.patch (from rev 230704, nodejs-lts-boron/trunk/nodejs-v8-icu59.patch)
===================================================================
--- repos/community-x86_64/nodejs-v8-icu59.patch	                        (rev 0)
+++ repos/community-x86_64/nodejs-v8-icu59.patch	2017-05-28 20:36:31 UTC (rev 230705)
@@ -0,0 +1,10 @@
+--- a/deps/v8/src/runtime/runtime-i18n.cc
++++ b/deps/v8/src/runtime/runtime-i18n.cc
+@@ -35,6 +35,7 @@
+ #include "unicode/unistr.h"
+ #include "unicode/unum.h"
+ #include "unicode/uversion.h"
++#include "unicode/normlzr.h"
+ 
+ 
+ namespace v8 {



More information about the arch-commits mailing list