diff --git a/srcpkgs/yarn-bin/patches/yarn.patch b/srcpkgs/yarn-bin/patches/yarn.patch index 9f406bcf0c1..4587c31d859 100644 --- a/srcpkgs/yarn-bin/patches/yarn.patch +++ b/srcpkgs/yarn-bin/patches/yarn.patch @@ -1,10 +1,11 @@ ---- bin/yarn.js.orig 2017-07-04 18:50:29.701379167 -0500 -+++ bin/yarn.js 2017-07-04 17:27:32.749746288 -0500 -@@ -3,5 +3,5 @@ - /* eslint-disable flowtype/require-valid-file-annotation */ - 'use strict'; - --require('../lib/v8-compile-cache'); --module.exports = require('../lib/yarn-cli'); -+require('/usr/lib/yarn/v8-compile-cache'); -+module.exports = require('/usr/lib/yarn/yarn-cli'); +--- bin/yarn.js.orig 2017-09-14 18:50:29.701379167 -0500 ++++ bin/yarn.js 2017-09-14 17:27:32.749746288 -0500 +@@ -11,7 +11,7 @@ + console.error('Node version ' + ver + ' is not supported, please use Node.js 4.0 or higher.'); + process.exitCode = 1; + } else { +- var dirPath = '../lib/'; ++ var dirPath = '/usr/lib/yarn/'; + var v8CompileCachePath = dirPath + 'v8-compile-cache'; + var fs = require('fs'); + // We don't have/need this on legacy builds and dev builds diff --git a/srcpkgs/yarn-bin/template b/srcpkgs/yarn-bin/template index 9e2948b999c..0f49ebd3bca 100644 --- a/srcpkgs/yarn-bin/template +++ b/srcpkgs/yarn-bin/template @@ -1,6 +1,6 @@ # Template file for 'yarn-bin' pkgname=yarn-bin -version=0.28.4 +version=1.0.2 revision=1 depends="nodejs" short_desc="Fast, reliable, and secure dependency management - precompiled binaries" @@ -9,7 +9,7 @@ license="2-cause-BSD" homepage="https://yarnpkg.com/" distfiles="https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz" conflicts="yarn>=0" -checksum=057ef781107bb5d3e7a2a655d75054fbeb265a249a905375bc25bec10d42b31f +checksum=8a31f8fa50ab6d5f8852025fb0ea4a50f2f8b82792f060fa99de0acc370b0698 do_extract() { 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/bin 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 }