diff options
author | Kurt Jaeger <pi@FreeBSD.org> | 2015-08-18 05:21:28 +0000 |
---|---|---|
committer | Kurt Jaeger <pi@FreeBSD.org> | 2015-08-18 05:21:28 +0000 |
commit | 5f1c9aab006fb7eeca59711b0116c8636e03e120 (patch) | |
tree | 414210fe49dae6251be48d358b7cd3e3e3988785 /www | |
parent | 43e7e2afa7abbb6580cdfbf7a6df918c27c9bd56 (diff) |
Notes
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/offline-npm/Makefile | 30 | ||||
-rw-r--r-- | www/offline-npm/distinfo | 2 | ||||
-rw-r--r-- | www/offline-npm/pkg-descr | 10 | ||||
-rw-r--r-- | www/offline-npm/pkg-plist | 12 |
5 files changed, 55 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 63959d4a35b2..202fcbed37ac 100644 --- a/www/Makefile +++ b/www/Makefile @@ -571,6 +571,7 @@ SUBDIR += nspluginwrapper SUBDIR += ocaml-net SUBDIR += ocsigen + SUBDIR += offline-npm SUBDIR += ojs2 SUBDIR += ompload SUBDIR += opencart diff --git a/www/offline-npm/Makefile b/www/offline-npm/Makefile new file mode 100644 index 000000000000..822c47f3c6e6 --- /dev/null +++ b/www/offline-npm/Makefile @@ -0,0 +1,30 @@ +# 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> diff --git a/www/offline-npm/distinfo b/www/offline-npm/distinfo new file mode 100644 index 000000000000..b4ce3431d37a --- /dev/null +++ b/www/offline-npm/distinfo @@ -0,0 +1,2 @@ +SHA256 (commenthol-offline-npm-v0.2.0_GH0.tar.gz) = 250f1d3533f1a359292f69375db6e5ec21da325e0b5eeb68bb0413fc4cb25aa1 +SIZE (commenthol-offline-npm-v0.2.0_GH0.tar.gz) = 14182 diff --git a/www/offline-npm/pkg-descr b/www/offline-npm/pkg-descr new file mode 100644 index 000000000000..8b8aa6878215 --- /dev/null +++ b/www/offline-npm/pkg-descr @@ -0,0 +1,10 @@ +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 diff --git a/www/offline-npm/pkg-plist b/www/offline-npm/pkg-plist new file mode 100644 index 000000000000..fb8728d03657 --- /dev/null +++ b/www/offline-npm/pkg-plist @@ -0,0 +1,12 @@ +bin/offline-npm +lib/node_modules/.bin/offline-npm +lib/node_modules/offline-npm/LICENSE +lib/node_modules/offline-npm/README.md +lib/node_modules/offline-npm/TUTORIAL.md +lib/node_modules/offline-npm/offline-npm.js +lib/node_modules/offline-npm/package.json +lib/node_modules/offline-npm/test/cli.mocha.js +lib/node_modules/offline-npm/test/mocha.opts +lib/node_modules/offline-npm/test/proxy.js +lib/node_modules/offline-npm/test/semver.mocha.js +lib/node_modules/offline-npm/test/test.sh |