Changeset View
Changeset View
Standalone View
Standalone View
www/yarn/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= yarn | PORTNAME= yarn | ||||
PORTVERSION= 0.23.2 | PORTVERSION= 0.24.6 | ||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | ||||
PORTREVISION= 1 | PORTREVISION= 1 | ||||
CATEGORIES= www | CATEGORIES= www | ||||
MASTER_SITES= https://yarnpkg.com/downloads/${PORTVERSION}/ | MASTER_SITES= https://yarnpkg.com/downloads/${PORTVERSION}/ | ||||
MAINTAINER= luca.pizzamiglio@gmail.com | MAINTAINER= luca.pizzamiglio@gmail.com | ||||
COMMENT= Package manager for node, alternative to npm | COMMENT= Package manager for node, alternative to npm | ||||
Show All 11 Lines | |||||
NODE_RUN_DEPENDS= node>=0.8.0:www/node | NODE_RUN_DEPENDS= node>=0.8.0:www/node | ||||
NODE6_RUN_DEPENDS= node6>=0.8.0:www/node6 | NODE6_RUN_DEPENDS= node6>=0.8.0:www/node6 | ||||
NODE4_RUN_DEPENDS= node4>=0.8.0:www/node4 | NODE4_RUN_DEPENDS= node4>=0.8.0:www/node4 | ||||
NO_ARCH= yes | NO_ARCH= yes | ||||
NO_BUILD= yes | NO_BUILD= yes | ||||
post-patch: | post-patch: | ||||
@${RM} ${WRKSRC}/node_modules/cli-width/coverage/lcov.info | @${RM} ${WRKSRC}/node_modules/cli-width/coverage/lcov.info | ||||
@${RM} ${WRKSRC}/node_modules/mute-stream/coverage/lcov.info | @${RM} ${WRKSRC}/node_modules/mute-stream/coverage/lcov.info | ||||
jlduran_gmail.com: I'm sorry. I think the convention is to do it this way:
```
REINPLACE_ARGS= -i ''
post-patch… | |||||
@${RM} -r ${WRKSRC}/node_modules/sshpk/man | @${RM} -r ${WRKSRC}/node_modules/sshpk/man | ||||
do-install: | do-install: | ||||
${MKDIR} ${STAGEDIR}${PREFIX}/lib/node_modules/yarn | ${MKDIR} ${STAGEDIR}${PREFIX}/lib/node_modules/yarn | ||||
(cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/node_modules/yarn) | (cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/node_modules/yarn) | ||||
${LN} -sf ../lib/node_modules/yarn/bin/yarn.js ${STAGEDIR}${PREFIX}/bin/yarn | ${LN} -sf ../lib/node_modules/yarn/bin/yarn.js ${STAGEDIR}${PREFIX}/bin/yarn | ||||
jlduran_gmail.comUnsubmitted Done Inline ActionsAlso add the link to yarnpkg: ${LN} -sf ../lib/node_modules/yarn/bin/yarnpkg ${STAGEDIR}${PREFIX}/bin/yarnpkg jlduran_gmail.com: Also add the link to `yarnpkg`:
${LN} -sf ../lib/node_modules/yarn/bin/yarnpkg… | |||||
Done Inline ActionsBoth these lines should probably use the RLN macro, so that you can use fully qualified paths. Something like: ${RLN} ${STAGEDIR}${PREFIX}/lib/node_modules/yarn/bin/yarn.js \ ${STAGEDIR}${PREFIX}/bin/yarn mat: Both these lines should probably use the RLN macro, so that you can use fully qualified paths. | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
I'm sorry. I think the convention is to do it this way: