1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/devel/npm-commander/Makefile
2017-12-27 09:30:47 +00:00

39 lines
1.0 KiB
Makefile

# Created by: Rodrigo Osorio <rodrigo@freebsd.org>
# $FreeBSD$
PORTNAME= npm-commander
PORTVERSION= 2.9.0
DISTVERSIONPREFIX= v
CATEGORIES= devel www
MAINTAINER= rodrigo@FreeBSD.org
COMMENT= node.js command-line interfaces made easy
LICENSE= APACHE20
DEPRECATED= Broken for more than 6 months
EXPIRATION_DATE= 2018-01-27
BUILD_DEPENDS= npm>=0:www/npm
RUN_DEPENDS= npm>=0:www/npm \
${LOCALBASE}/lib/node_modules/graceful-readlink/index.js:devel/npm-graceful-readlink
USE_GITHUB= yes
GH_ACCOUNT= tj
GH_PROJECT= commander.js
# npm install both builds and installs. To avoid building in the stage phase,
# allow npm to install in a temporary directory and move from there.
# Moreover, only a fraction of what is installed by npm needs to be packaged
do-build:
${MKDIR} ${WRKDIR}/build-lib
(cd ${WRKDIR}/build-lib && \
${SETENV} HOME=${WRKDIR} npm install ${WRKSRC})
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/node_modules/ && \
${MV} ${WRKDIR}/build-lib/node_modules/commander \
${STAGEDIR}${PREFIX}/lib/node_modules/
.include <bsd.port.mk>