From fa390b2f258d55406ec92b1c70f1d3623892f018 Mon Sep 17 00:00:00 2001
From: Bryan Drewery <bdrewery@FreeBSD.org>
Date: Thu, 10 Apr 2014 12:37:05 +0000
Subject: - Fix staging with pkg_install by not using absolute paths in plist

Reported by:	swills/Jenkins
---
 www/npm/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'www/npm')

diff --git a/www/npm/Makefile b/www/npm/Makefile
index cce2afecdeb6..40773c2ca39f 100644
--- a/www/npm/Makefile
+++ b/www/npm/Makefile
@@ -3,6 +3,7 @@
 
 PORTNAME=	npm
 PORTVERSION=	1.3.11
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	LOCAL/sunpoet
 
@@ -20,7 +21,7 @@ USES=		tar:xz
 MAKE_ARGS+=	npm_config_prefix=${STAGEDIR}${PREFIX}
 
 MANPREFIX=	${PREFIX}/lib/node_modules/npm
-PLIST_SUB+=	MANPREFIX="${MANPREFIX}"
+PLIST_SUB+=	MANPREFIX="${MANPREFIX:S,${PREFIX}/,,}"
 
 .include <bsd.port.options.mk>
 
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0