yarn-bin: update to 1.0.2.

This commit is contained in:
Nicklaus McClendon 2017-09-14 14:58:58 -05:00 committed by Michael Gehring
parent 3b0577922b
commit 74f41dcced
2 changed files with 14 additions and 13 deletions

View File

@ -1,10 +1,11 @@
--- bin/yarn.js.orig 2017-07-04 18:50:29.701379167 -0500 --- bin/yarn.js.orig 2017-09-14 18:50:29.701379167 -0500
+++ bin/yarn.js 2017-07-04 17:27:32.749746288 -0500 +++ bin/yarn.js 2017-09-14 17:27:32.749746288 -0500
@@ -3,5 +3,5 @@ @@ -11,7 +11,7 @@
/* eslint-disable flowtype/require-valid-file-annotation */ console.error('Node version ' + ver + ' is not supported, please use Node.js 4.0 or higher.');
'use strict'; process.exitCode = 1;
} else {
-require('../lib/v8-compile-cache'); - var dirPath = '../lib/';
-module.exports = require('../lib/yarn-cli'); + var dirPath = '/usr/lib/yarn/';
+require('/usr/lib/yarn/v8-compile-cache'); var v8CompileCachePath = dirPath + 'v8-compile-cache';
+module.exports = require('/usr/lib/yarn/yarn-cli'); var fs = require('fs');
// We don't have/need this on legacy builds and dev builds

View File

@ -1,6 +1,6 @@
# Template file for 'yarn-bin' # Template file for 'yarn-bin'
pkgname=yarn-bin pkgname=yarn-bin
version=0.28.4 version=1.0.2
revision=1 revision=1
depends="nodejs" depends="nodejs"
short_desc="Fast, reliable, and secure dependency management - precompiled binaries" short_desc="Fast, reliable, and secure dependency management - precompiled binaries"
@ -9,7 +9,7 @@ license="2-cause-BSD"
homepage="https://yarnpkg.com/" homepage="https://yarnpkg.com/"
distfiles="https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz" distfiles="https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz"
conflicts="yarn>=0" conflicts="yarn>=0"
checksum=057ef781107bb5d3e7a2a655d75054fbeb265a249a905375bc25bec10d42b31f checksum=8a31f8fa50ab6d5f8852025fb0ea4a50f2f8b82792f060fa99de0acc370b0698
do_extract() { do_extract() {
tar xfz ${XBPS_SRCDISTDIR}/${pkgname}-${version}/yarn-v${version}.tar.gz --strip-components=1 -C ${wrksrc} tar xfz ${XBPS_SRCDISTDIR}/${pkgname}-${version}/yarn-v${version}.tar.gz --strip-components=1 -C ${wrksrc}
@ -19,7 +19,7 @@ do_install() {
vmkdir /usr/lib/yarn vmkdir /usr/lib/yarn
vmkdir /usr/bin vmkdir /usr/bin
vcopy lib/v8-compile-cache.js /usr/lib/yarn vcopy lib/v8-compile-cache.js /usr/lib/yarn
vcopy lib/yarn-cli.js /usr/lib/yarn vcopy lib/cli.js /usr/lib/yarn
vbin bin/yarn.js yarn vbin bin/yarn.js yarn
} }