1.22.10 (and prior) Tweak the preinstall check to not cause errors when Node is installed as root (as a downside, it won't run at all on Windows, which should be an acceptable tradeoff): https://github.com/yarnpkg/yarn/issues/8358 1.22.7 This release doesn't change anything and was caused by a publish issue. 1.22.6 Running yarn init with the -2 flag won't print the set version output anymore. A new preinstall check will ensure that npm install -g yarn works even under Corepack. It doesn't have any effect on other setups.
36 lines
977 B
Makefile
36 lines
977 B
Makefile
# $NetBSD: Makefile,v 1.15 2020/10/03 06:27:18 adam Exp $
|
|
|
|
DISTNAME= yarn-v1.22.10
|
|
PKGNAME= ${DISTNAME:S/-v/-/}
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=yarnpkg/}
|
|
GITHUB_RELEASE= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://yarnpkg.com/
|
|
COMMENT= JavaScript package manager
|
|
LICENSE= 2-clause-bsd
|
|
|
|
DEPENDS+= nodejs-[0-9]*:../../lang/nodejs
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
INSTALLATION_DIRS= bin libexec/yarn/bin libexec/yarn/lib
|
|
|
|
REPLACE_NODEJS= bin/yarn.js
|
|
|
|
do-build:
|
|
${SED} ${FILES_SUBST_SED} ${FILESDIR}/yarn.sh >${WRKSRC}/yarn.sh
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/yarn.js \
|
|
${DESTDIR}${PREFIX}/libexec/yarn/bin/yarn.js
|
|
${INSTALL_DATA} ${WRKSRC}/lib/*.js \
|
|
${DESTDIR}${PREFIX}/libexec/yarn/lib/
|
|
${INSTALL_SCRIPT} ${WRKSRC}/yarn.sh \
|
|
${DESTDIR}${PREFIX}/bin/yarn
|
|
${INSTALL_SCRIPT} ${WRKSRC}/yarn.sh \
|
|
${DESTDIR}${PREFIX}/bin/yarnpkg
|
|
|
|
.include "../../lang/nodejs/application.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|