aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2012-05-15 02:57:45 +0800
committersunpoet <sunpoet@FreeBSD.org>2012-05-15 02:57:45 +0800
commit7c252f17085ebad793a51ed538928ef2dc7ba2b5 (patch)
treee1090ffda93f4747d6bfa732cc213aa2627450a3 /www
parent722d1ceffd655e5c2261c1c1167ea545ac313d32 (diff)
downloadfreebsd-ports-gnome-7c252f17085ebad793a51ed538928ef2dc7ba2b5.tar.gz
freebsd-ports-gnome-7c252f17085ebad793a51ed538928ef2dc7ba2b5.tar.zst
freebsd-ports-gnome-7c252f17085ebad793a51ed538928ef2dc7ba2b5.zip
- Make directory: PREFIX/lib/node_modules
- Add a message about npm - Bump PORTREVISION for package change Submitted by: sunpoet (myself, via IRC) Approved by: Jin-Sih Lin <linpct@gmail.com> (maintainer, via IRC)
Diffstat (limited to 'www')
-rw-r--r--www/node-devel/Makefile8
-rw-r--r--www/node-devel/pkg-plist2
2 files changed, 9 insertions, 1 deletions
diff --git a/www/node-devel/Makefile b/www/node-devel/Makefile
index 9d07acd4e387..baa1f85dcad5 100644
--- a/www/node-devel/Makefile
+++ b/www/node-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= node
PORTVERSION= 0.7.8
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://nodejs.org/dist/v${PORTVERSION}/
PKGNAMESUFFIX= -devel
@@ -35,6 +36,11 @@ post-patch:
@${RM} ${WRKSRC}/tools/wafadmin/Node.py.orig
post-install:
- @${INSTALL_MAN} ${WRKSRC}/doc/node.1 ${MANPREFIX}/man/man1/
+ ${MKDIR} ${PREFIX}/lib/node_modules/
+ ${TOUCH} ${PREFIX}/lib/node_modules/.keepme
+ ${INSTALL_MAN} ${WRKSRC}/doc/node.1 ${MANPREFIX}/man/man1/
+ @${ECHO_MSG}
+ @${ECHO_MSG} "Note: If you need npm (Node Package Manager), please install www/npm."
+ @${ECHO_MSG}
.include <bsd.port.mk>
diff --git a/www/node-devel/pkg-plist b/www/node-devel/pkg-plist
index ea2101132fec..ae1d62c92a9e 100644
--- a/www/node-devel/pkg-plist
+++ b/www/node-devel/pkg-plist
@@ -68,6 +68,8 @@ lib/node/wafadmin/__init__.py
lib/node/wafadmin/ansiterm.py
lib/node/wafadmin/pproc.py
lib/node/wafadmin/py3kfixes.py
+lib/node_modules/.keepme
+@dirrm lib/node_modules
@dirrm lib/node/wafadmin/Tools
@dirrm lib/node/wafadmin
@dirrm lib/node