From d64cf051bedd26c04f67baa0fc1c57063feb04a7 Mon Sep 17 00:00:00 2001 From: Nicklaus McClendon Date: Tue, 4 Jul 2017 19:16:50 -0500 Subject: [PATCH] New Package: yarn-0.27.5 Closes: #6949 [via git-merge-pr] --- srcpkgs/yarn/patches/yarn-bundle-entry.patch | 10 ++++++ srcpkgs/yarn/template | 33 ++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 srcpkgs/yarn/patches/yarn-bundle-entry.patch create mode 100644 srcpkgs/yarn/template diff --git a/srcpkgs/yarn/patches/yarn-bundle-entry.patch b/srcpkgs/yarn/patches/yarn-bundle-entry.patch new file mode 100644 index 0000000000..f75de5bf8b --- /dev/null +++ b/srcpkgs/yarn/patches/yarn-bundle-entry.patch @@ -0,0 +1,10 @@ +--- bin/yarn-bundle-entry.js.orig 2017-07-04 18:50:29.701379167 -0500 ++++ bin/yarn-bundle-entry.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'); diff --git a/srcpkgs/yarn/template b/srcpkgs/yarn/template new file mode 100644 index 0000000000..32afaa18ab --- /dev/null +++ b/srcpkgs/yarn/template @@ -0,0 +1,33 @@ +# Template file for 'yarn' +pkgname=yarn +version=0.27.5 +revision=1 +hostmakedepends="yarn-bin" +depends="nodejs" +short_desc="Fast, reliable, and secure dependency management" +maintainer="Nicklaus McClendon " +license="2-cause-BSD" +homepage="https://yarnpkg.com/" +distfiles="https://github.com/yarnpkg/${pkgname}/archive/v${version}.tar.gz" +conflicts="yarn-bin>=0" +checksum=3b2ca8bf155e6157382e4f99ec9d84a53821344b475ea1cda486531372977bf4 + +pre_build() { + yarn +} + +do_build() { + yarn run build-dist +} + +do_install() { + vmkdir /usr/lib/yarn + vmkdir /usr/bin + vcopy dist/lib/v8-compile-cache.js /usr/lib/yarn + vcopy dist/lib/yarn-cli.js /usr/lib/yarn + vbin dist/bin/yarn.js yarn +} + +post_install() { + vlicense LICENSE +}