Wed Jan 24 12:40:07 2018 UTC ()
yarn: Import version 1.3.2 into pkgsrc.

Yarn is a package manager for your code.  It allows you to use and share
code with other developers from around the world.  Yarn does this quickly,
securely, and reliably so you don't ever have to worry.

Yarn allows you to use other developers' solutions to different problems,
making it easier for you to develop your software.  If you have problems,
you can report issues or contribute back, and when the problem is fixed,
you can use Yarn to keep it all up to date.

Code is shared through something called a package (sometimes referred to
as a module).  A package contains all the code being shared as well as a
package.json file which describes the package.


(jperkin)
diff -r0 -r1.1 pkgsrc/devel/yarn/DESCR
diff -r0 -r1.1 pkgsrc/devel/yarn/Makefile
diff -r0 -r1.1 pkgsrc/devel/yarn/PLIST
diff -r0 -r1.1 pkgsrc/devel/yarn/distinfo
diff -r0 -r1.1 pkgsrc/devel/yarn/files/yarn.sh

File Added: pkgsrc/devel/yarn/DESCR
Yarn is a package manager for your code.  It allows you to use and share
code with other developers from around the world.  Yarn does this quickly,
securely, and reliably so you don't ever have to worry.

Yarn allows you to use other developers' solutions to different problems,
making it easier for you to develop your software.  If you have problems,
you can report issues or contribute back, and when the problem is fixed,
you can use Yarn to keep it all up to date.

Code is shared through something called a package (sometimes referred to
as a module).  A package contains all the code being shared as well as a
package.json file which describes the package.

File Added: pkgsrc/devel/yarn/Makefile
# $NetBSD: Makefile,v 1.1 2018/01/24 12:40:07 jperkin Exp $

DISTNAME=	yarn-v1.3.2
PKGNAME=	${DISTNAME:S/-v/-/}
CATEGORIES=	devel
MASTER_SITES=	https://yarnpkg.com/downloads/${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_INTERPRETER+=	nodejs
REPLACE.nodejs.old=	.*node
REPLACE.nodejs.new=	${PREFIX}/bin/node
REPLACE_FILES.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 "../../mk/bsd.pkg.mk"

File Added: pkgsrc/devel/yarn/PLIST
@comment $NetBSD: PLIST,v 1.1 2018/01/24 12:40:07 jperkin Exp $
bin/yarn
bin/yarnpkg
libexec/yarn/bin/yarn.js
libexec/yarn/lib/cli.js
libexec/yarn/lib/v8-compile-cache.js

File Added: pkgsrc/devel/yarn/distinfo
$NetBSD: distinfo,v 1.1 2018/01/24 12:40:07 jperkin Exp $

SHA1 (yarn-v1.3.2.tar.gz) = 5939762581b5b4ddcd3418c0f6be42df3aee195f
RMD160 (yarn-v1.3.2.tar.gz) = b2e2cb3ad6979ab1e3fa9713f4269f7dfe9ce10f
SHA512 (yarn-v1.3.2.tar.gz) = d488ae56b60884bb42e5e2ac8a0359c6947e234ed8b5bba12a93f24abb4419b4a6fef708c35df8caa9e68edca3fe570d1dcda9295d29438e45a32ef5d029aedf
Size (yarn-v1.3.2.tar.gz) = 886500 bytes

File Added: pkgsrc/devel/yarn/files/yarn.sh
#!@SH@
exec "@PREFIX@/libexec/yarn/bin/yarn.js" "$@"