mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
8c68d20ae2
- Update CONFLICTS_INSTALL
44 lines
1013 B
Makefile
44 lines
1013 B
Makefile
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= npm
|
|
PORTVERSION= 4.6.1
|
|
CATEGORIES= www
|
|
MASTER_SITES= LOCAL/sunpoet
|
|
PKGNAMESUFFIX= 4
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Node package manager
|
|
|
|
LICENSE= MIT
|
|
|
|
RUN_DEPENDS= gmake:devel/gmake \
|
|
node>=0.8.0:www/node
|
|
|
|
CONFLICTS_INSTALL= npm npm2 npm3
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
REINPLACE_ARGS= -i ''
|
|
USES= cpe python:2,run tar:xz
|
|
|
|
CPE_VENDOR= npmjs
|
|
CPE_PRODUCT= node_packaged_modules
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "i386"
|
|
# Workaround for kernel bug 178881
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-bug-178881
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/etc/man.d/npm.conf
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp
|
|
@${FIND} ${WRKSRC}/ -name '*.sh' -exec ${REINPLACE_CMD} -e '1 s|/usr/local|${LOCALBASE}|' {} +
|
|
|
|
do-install:
|
|
cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/
|
|
|
|
.include <bsd.port.post.mk>
|