New Package: yarn-0.27.5

Closes: #6949 [via git-merge-pr]
This commit is contained in:
Nicklaus McClendon 2017-07-04 19:16:50 -05:00 committed by Michael Aldridge
parent 5b5f162b43
commit d64cf051be
2 changed files with 43 additions and 0 deletions

View file

@ -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');

33
srcpkgs/yarn/template Normal file
View file

@ -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 <nicklaus@kulinacs.com>"
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
}