freebsd-ports/www/offline-npm/Makefile
Kurt Jaeger 5f1c9aab00 New Port: www/offline-npm
Hassle-free npm pack including all dependencies for offline installation
with npm install

Add offline-npm to your project to serve a npm compatible tgz file
which contains all dependencies for offline installation with npm install.

Additionally you can use offline-npm -n to install packages from your
local npm cache directory (could be useful e.g. on travelling).

WWW: https://github.com/commenthol/offline-npm

PR:		202398
Submitted by:	Carlos J Puga Medina <cpm@fbsd.es>
2015-08-18 05:21:28 +00:00

30 lines
624 B
Makefile

# Created by: Carlos J Puga Medina <cpm@fbsd.es>
# $FreeBSD$
PORTNAME= offline-npm
PORTVERSION= 0.2.0
DISTVERSIONPREFIX= v
CATEGORIES= www
MAINTAINER= cpm@fbsd.es
COMMENT= Offline installation with npm install
LICENSE= MIT
BUILD_DEPENDS= npm>0:${PORTSDIR}/www/npm
RUN_DEPENDS= npm>0:${PORTSDIR}/www/npm
USE_GITHUB= yes
GH_ACCOUNT= commenthol
GH_PROJECT= offline-npm
NO_BUILD= yes
do-install:
(cd ${STAGEDIR}${PREFIX}/lib && ${SETENV} \
HOME=${WRKDIR} npm install ${WRKSRC})
# this is a dirty hack
${LN} -s ${PREFIX}/lib/node_modules/.bin/offline-npm ${STAGEDIR}${PREFIX}/bin/offline-npm
.include <bsd.port.mk>