diff options
author | Ed Robinson <ed.robinson@reevoo.com> | 2017-05-22 15:25:08 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-06-07 23:28:18 +0200 |
commit | 3d51e66748ac73ccbcf01d631e9c8162c194dcd2 (patch) | |
tree | cb653507fb485f2e84d6cbc2267dc6691bbb93ec | |
parent | 5c1ff074fcbe7050105c2e3de7362f13220dd33b (diff) | |
download | aports-3d51e66748ac73ccbcf01d631e9c8162c194dcd2.tar.bz2 aports-3d51e66748ac73ccbcf01d631e9c8162c194dcd2.tar.xz |
community/yarn: update to 0.24.6
-rw-r--r-- | community/yarn/APKBUILD | 41 | ||||
-rw-r--r-- | community/yarn/remove-support-for-legacy-nodejs.patch | 23 |
2 files changed, 8 insertions, 56 deletions
diff --git a/community/yarn/APKBUILD b/community/yarn/APKBUILD index a45c8ccfe6..d0735c7aee 100644 --- a/community/yarn/APKBUILD +++ b/community/yarn/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Ed Robinson <ed@reevoo.com> # Maintainer: Ed Robinson <ed@reevoo.com> pkgname=yarn -pkgver=0.23.3 +pkgver=0.24.6 pkgrel=0 pkgdesc="Fast, reliable, and secure dependency management for Node.js" url="https://yarnpkg.com/" @@ -10,47 +10,22 @@ license="BSD-2" depends="nodejs" options="!check" source="https://yarnpkg.com/downloads/$pkgver/$pkgname-v$pkgver.tar.gz - apk-install-method.patch - remove-support-for-legacy-nodejs.patch" + apk-install-method.patch" builddir="$srcdir/dist" -prepare() { - default_prepare || return 1 - - cd "$builddir" - - # Remove support for legacy nodejs. - rm -r lib-legacy - - # Remove some unneeded files. - # Node does not load *.min.js files, so these are useless for us. - # We respect licenses, but really don't wanna waste disk space (~1 MiB) - # with dozens copies of the same files. - rm yarn.lock jenkins_jobs.groovy - find . \( -iname '*.md' \ - -o -iname '*.md~' \ - -o -iname '*.cmd' \ - -o -name '*.min.js' \ - -o -name '*.map' \ - -o -name 'bower.json' \ - -o -name 'Dockerfile.*' \ - -o -name 'Gruntfile.js' \ - -o -iname 'license*' -a ! -name '*.js' \ - -o -type f -a -name '.*' \) \ - -delete -} - package() { local destdir="usr/share/node_modules/$pkgname" mkdir -p "$pkgdir"/$destdir - cp -R "$builddir"/* "$pkgdir"/$destdir/ || return 1 + cp -R "$builddir"/* "$pkgdir"/$destdir/ + + # Remove windows specific files. + rm "$pkgdir"/$destdir/bin/*.cmd mkdir -p "$pkgdir"/usr/bin ln -s /$destdir/bin/yarn "$pkgdir"/usr/bin/yarn ln -s /$destdir/bin/yarn "$pkgdir"/usr/bin/yarnpkg } -sha512sums="cad26e826e485a396027fc063f762d4739af66f01bc3606958190db5ec218694bf2ffe5e1b776dd5b0319fe4ae5fae9940f18171876e5e3575c768438c808076 yarn-v0.23.3.tar.gz -30431f7aa5fe7382e062b92e413ea8d118e157d89aa043353c18ff7d1721d0e3ecfbe68de1f0058b3b70cee5cf9baa08d28f1718beb5d14fcb0cf2881dff1eac apk-install-method.patch -b1d0f8e4bee9fb73002f7dbe7cdc5cafdb5bac53e4649bd9d98dbce9afb7950bafd392a4b8433d76aa90f931c2f92972b8ae41fe61f506690439d5959b6c09d5 remove-support-for-legacy-nodejs.patch" +sha512sums="470189d4f7c12ef4c25dc29157da034424d5df66eb36a70b02aeedbdd21fd95db93c7119ea94c80c9a78cb08eb09786c9a23e96238a9dd313993763835191717 yarn-v0.24.6.tar.gz +30431f7aa5fe7382e062b92e413ea8d118e157d89aa043353c18ff7d1721d0e3ecfbe68de1f0058b3b70cee5cf9baa08d28f1718beb5d14fcb0cf2881dff1eac apk-install-method.patch" diff --git a/community/yarn/remove-support-for-legacy-nodejs.patch b/community/yarn/remove-support-for-legacy-nodejs.patch deleted file mode 100644 index f3c291ea6d..0000000000 --- a/community/yarn/remove-support-for-legacy-nodejs.patch +++ /dev/null @@ -1,23 +0,0 @@ ---- dist/bin/yarn.js -+++ dist/bin/yarn.js -@@ -13,10 +13,8 @@ - - if (semver.satisfies(ver, '>=5.0.0')) { - path = '../lib/cli/index.js'; --} else if (semver.satisfies(ver, '>=4.0.0')) { -- path = '../lib-legacy/cli/index.js'; - } else { -- console.log(require('chalk').red('Node version ' + ver + ' is not supported, please use Node.js 4.0 or higher.')); -+ console.log(require('chalk').red('Node version ' + ver + ' is not supported, please use Node.js 5.0 or higher.')); - process.exit(1); - } - -@@ -27,7 +25,7 @@ - - // ensure cache directory exists - var mkdirp = require('mkdirp'); --var constants = require('../lib-legacy/constants'); -+var constants = require('../lib/constants'); - mkdirp.sync(constants.MODULE_CACHE_DIRECTORY); - - // init roadrunner |