mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
- Update to 1.4.6
- Convert to new options helper - Update GITHUB_TAGSURL and GITHUB_USER - Update WWW - While I'm here, sort PLIST and respect MANPREFIX PR: ports/188599 Submitted by: adamw
This commit is contained in:
parent
79f35e7294
commit
3114f86711
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352312
@ -2,8 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= npm
|
||||
PORTVERSION= 1.3.11
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.4.6
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= LOCAL/sunpoet
|
||||
|
||||
@ -18,18 +17,13 @@ NODE_DEVEL_DESC=Use www/node-devel instead of www/node
|
||||
NO_BUILD= yes
|
||||
USES= tar:xz
|
||||
|
||||
MAKE_ARGS+= npm_config_prefix=${STAGEDIR}${PREFIX}
|
||||
MAKE_ARGS= npm_config_prefix=${STAGEDIR}${PREFIX}
|
||||
|
||||
MANPREFIX= ${PREFIX}/lib/node_modules/npm
|
||||
PLIST_SUB+= MANPREFIX="${MANPREFIX:S,${PREFIX}/,,}"
|
||||
PLIST_SUB= MANPREFIX=lib/node_modules/npm
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MNODE_DEVEL}
|
||||
RUN_DEPENDS+= node-devel>=0.8.0:${PORTSDIR}/www/node-devel
|
||||
.else
|
||||
RUN_DEPENDS+= node>=0.8.0:${PORTSDIR}/www/node
|
||||
.endif
|
||||
NODE_DEVEL_RUN_DEPENDS= node-devel>=0.8.0:${PORTSDIR}/www/node-devel
|
||||
NODE_DEVEL_RUN_DEPENDS_OFF= node>=0.8.0:${PORTSDIR}/www/node
|
||||
|
||||
post-patch:
|
||||
@${SED} -i '' -e 's|node cli.js|& --cache ${WRKDIR}/.cache|; /^install: / s| docclean||' ${WRKSRC}/Makefile
|
||||
@ -50,9 +44,9 @@ MS_VERSIONFILE= ${MS_WRKSRC}/.version
|
||||
MS_WRKSRC= ${WRKSRC}/tmp
|
||||
|
||||
GITHUB_PROJECT= ${PORTNAME}
|
||||
GITHUB_TAGSURL= https://github.com/isaacs/npm/tags
|
||||
GITHUB_TAGSURL= https://github.com/npm/npm/tags
|
||||
GITHUB_TARBALL= https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/archive/${GITHUB_VERSION}.tar.gz
|
||||
GITHUB_USER= isaacs
|
||||
GITHUB_USER= npm
|
||||
GITHUB_VERSION= v${MS_VERSION}
|
||||
|
||||
maketar: do-clean extract
|
||||
@ -66,13 +60,13 @@ maketar: do-clean extract
|
||||
@${SED} -i '' -e '/manRoot/ s|, "share"||' ${MS_WRKSRC}/${MS_DISTNAME}/lib/build.js ${MS_WRKSRC}/${MS_DISTNAME}/lib/unbuild.js
|
||||
@${SED} -i '' -e '1 s|#!/bin/bash|#!${LOCALBASE}/bin/bash|' ${MS_WRKSRC}/${MS_DISTNAME}/scripts/doc-build.sh
|
||||
@${GREP} -lr share/man ${MS_WRKSRC}/${MS_DISTNAME}/doc/ ${MS_WRKSRC}/${MS_DISTNAME}/scripts/ | ${XARGS} -I % ${SED} -i '' 's|share/man|man|g' %
|
||||
@cd ${MS_WRKSRC}/${MS_DISTNAME}/ && ${GMAKE}
|
||||
@cd ${MS_WRKSRC}/${MS_DISTNAME}/ && ${MAKE_CMD}
|
||||
@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type d -exec ${CHMOD} 755 '{}' \;
|
||||
@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type f -exec ${CHMOD} 644 '{}' \;
|
||||
@${FIND} ${MS_WRKSRC}/${MS_DISTNAME}/ -type f -name '*.sh' -exec ${CHMOD} 755 '{}' \;
|
||||
@cd ${MS_WRKSRC}/ && ${TAR} -Jcf ${MS_DISTNAME}.tar.xz ${MS_DISTNAME}/
|
||||
@${SED} -i '' -e '/^PORTVERSION=/ s|${PORTVERSION}|'${MS_VERSION}'|; /^PORTREVISION=/d' ${.CURDIR}/Makefile
|
||||
@sudo ${INSTALL} -m 644 ${MS_WRKSRC}/${PORTNAME}-${MS_VERSION}.tar.xz ${DISTDIR}/
|
||||
@cd ${.CURDIR}/ && ${MAKE} makesum
|
||||
@cd ${.CURDIR}/ && ${MAKE_CMD} makesum
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (npm-1.3.11.tar.xz) = dd617f878240e7d4263bd860b0b13c668a5fbafd51b195a577b993cd326a25a6
|
||||
SIZE (npm-1.3.11.tar.xz) = 1785108
|
||||
SHA256 (npm-1.4.6.tar.xz) = df5c621f2c51d9e5cc7f210165d1e837f4addc2892c5b0e6ed4350b04bd82cfa
|
||||
SIZE (npm-1.4.6.tar.xz) = 1783848
|
||||
|
@ -2,4 +2,4 @@ npm is a package manager for node. You can use it to install and publish your
|
||||
node programs. It manages dependencies and does other cool stuff.
|
||||
|
||||
WWW: http://npmjs.org/
|
||||
WWW: https://github.com/isaacs/npm
|
||||
WWW: https://github.com/npm/npm
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user