30 lines
802 B
Bash
30 lines
802 B
Bash
SUMMARY="Node dependency management"
|
|
DESCRIPTION="Fast, reliable, and secure dependency management."
|
|
HOMEPAGE="https://classic.yarnpkg.com"
|
|
COPYRIGHT="2016-present, Yarn Contributors"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/yarnpkg/yarn/releases/download/v$portVersion/yarn-v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="7e433d4a77e2c79e6a7ae4866782608a8e8bcad3ec6783580577c59538381a6e"
|
|
SOURCE_DIR="yarn-v$portVersion"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
yarn = $portVersion
|
|
cmd:yarn = $portVersion
|
|
cmd:yarnpkg = $portVersion
|
|
"
|
|
REQUIRES="
|
|
cmd:node
|
|
"
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $libDir/node_modules/yarn $prefix/bin
|
|
cp -R * $libDir/node_modules/yarn
|
|
|
|
ln -sr $libDir/node_modules/yarn/bin/yarn.js $prefix/bin/yarn
|
|
ln -sr $libDir/node_modules/yarn/bin/yarn.js $prefix/bin/yarnpkg
|
|
}
|