mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
Delete npm012 port.
The node package manager 012 port depends on node 0.12, which was released over 24 months ago....an eternity in the Javascript world. This house cleaning is the equivilent to deleting a 16 bit C compiler for those who are not javascript-aware. PR: 217965 Submitted by: bradleythughes@fastmail.fm
This commit is contained in:
@@ -9143,5 +9143,6 @@ devel/rubygem-devise-rails4|devel/rubygem-devise|2017-03-16|Has expired: Please
|
||||
textproc/rubygem-github-markdown||2017-03-16|Has expired: This gem is not maintained and not supported by upstream
|
||||
chinese/irssi|irc/irssi|2017-03-17|Use irc/irssi, which can handle Chinese locales
|
||||
archivers/macutils||2017-03-19|Has expired: Not maintained in 16 years, many missing header inclusions
|
||||
www/npm012|www/npm|2017-03-20|Has expired: Depends on deprecated www/node012. Please use www/npm instead.
|
||||
sysutils/ucspi-ssl-tls|sysutils/ucspi-ssl|2017-03-20|Current ucspi-ssl supports TLS
|
||||
net/rubygem-signet|security/rubygem-signet|2017-03-20|Duplicate
|
||||
|
||||
@@ -559,7 +559,6 @@
|
||||
SUBDIR += npapi-xine
|
||||
SUBDIR += npc
|
||||
SUBDIR += npm
|
||||
SUBDIR += npm012
|
||||
SUBDIR += npm2
|
||||
SUBDIR += npm3
|
||||
SUBDIR += nspluginwrapper
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= npm
|
||||
PORTVERSION= 2.14.7
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= LOCAL/sunpoet
|
||||
PKGNAMESUFFIX= 012
|
||||
|
||||
MAINTAINER= jpaetzel@FreeBSD.org
|
||||
COMMENT= Node package manager
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
DEPRECATED= Depends on expiring www/node012
|
||||
EXPIRATION_DATE=2017-04-01
|
||||
|
||||
RUN_DEPENDS= node012>=0.12.0:www/node012
|
||||
|
||||
MAKE_ARGS= npm_config_prefix=${STAGEDIR}${PREFIX}
|
||||
MANPREFIX= ${PREFIX}/lib/node_modules/npm
|
||||
NO_ARCH= yes
|
||||
NO_BUILD= yes
|
||||
REINPLACE_ARGS= -i ''
|
||||
USES= cpe python:2 shebangfix tar:xz
|
||||
|
||||
CPE_VENDOR= npmjs
|
||||
CPE_PRODUCT= node_packaged_modules
|
||||
|
||||
SHEBANG_FILES= lib/utils/completion.sh \
|
||||
node_modules/node-gyp/test/docker.sh \
|
||||
node_modules/request/node_modules/node-uuid/benchmark/bench.sh \
|
||||
scripts/clean-old.sh \
|
||||
scripts/release.sh \
|
||||
scripts/relocate.sh \
|
||||
test/update-test.sh
|
||||
|
||||
.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|node cli.js|& --cache ${WRKDIR}/.cache|' ${WRKSRC}/Makefile
|
||||
@${ECHO_CMD} 'MANPATH ${PREFIX}/lib/node_modules/npm/man' > ${WRKDIR}/npm.conf
|
||||
@${REINPLACE_CMD} -e 's|exec python|exec ${PYTHON_CMD}|' ${WRKSRC}/node_modules/node-gyp/gyp/gyp
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKDIR}/npm.conf ${STAGEDIR}${PREFIX}/etc/man.d/npm.conf
|
||||
|
||||
# maintainer section:
|
||||
# require: bash, git, gmake, perl, node
|
||||
|
||||
MS_DISTNAME= ${PORTNAME}-${MS_VERSION}
|
||||
MS_PLIST= ${WRKDIR}/.ms-pkg-plist
|
||||
MS_RELEASES= ${MS_WRKSRC}/releases
|
||||
MS_VERSION= `${CAT} ${MS_VERSIONFILE}`
|
||||
MS_VERSIONFILE= ${MS_WRKSRC}/.version
|
||||
MS_WRKSRC= ${WRKSRC}/tmp
|
||||
|
||||
GITHUB_PROJECT= ${PORTNAME}
|
||||
GITHUB_RELEASES=https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/releases/latest
|
||||
GITHUB_TARBALL= https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/archive/${GITHUB_VERSION}.tar.gz
|
||||
GITHUB_USER= ${PORTNAME}
|
||||
GITHUB_VERSION= v${MS_VERSION}
|
||||
|
||||
genplist: do-clean stage
|
||||
@${MAKE_CMD} makeplist > ${MS_PLIST}
|
||||
@${SED} -i '' '1 d; /^lib\/node_modules\/npm\/bin\/node-gyp-bin\/node-gyp$$/ s|^|@(,,755) |' ${MS_PLIST}
|
||||
@${INSTALL} -m 600 ${MS_PLIST} ${PLIST}
|
||||
|
||||
maketar: do-clean
|
||||
@${MKDIR} ${MS_WRKSRC}/
|
||||
@${FETCH_BINARY} ${FETCH_ARGS:C/A//} -o ${MS_RELEASES} ${GITHUB_RELEASES}
|
||||
@${GREP} -o '/${GITHUB_USER}/${GITHUB_PROJECT}/archive/[^"]*\.tar\.gz' ${MS_RELEASES} | ${HEAD} -1 | ${CUT} -d/ -f5 | ${SED} 's|^v||; s|\.tar\.gz$$||' > ${MS_VERSIONFILE}
|
||||
@${ECHO_MSG} "*** Updating from ${PORTVERSION} to ${MS_VERSION} ..."
|
||||
@${FETCH_BINARY} ${FETCH_ARGS:C/A//} -o ${MS_WRKSRC}/${MS_DISTNAME}.tar.gz ${GITHUB_TARBALL}
|
||||
@${MKDIR} ${MS_WRKSRC}/${MS_DISTNAME}/
|
||||
@${TAR} -xf ${MS_WRKSRC}/${MS_DISTNAME}.tar.gz -C ${MS_WRKSRC}/${MS_DISTNAME}/ --strip-components 1
|
||||
@${REINPLACE_CMD} -e 's|${MAKE}|${GMAKE}|g; /^install: / s| docclean||' ${MS_WRKSRC}/${MS_DISTNAME}/Makefile
|
||||
@${REINPLACE_CMD} -e 's| && ${MAKE} -j8 doc||' ${MS_WRKSRC}/${MS_DISTNAME}/package.json
|
||||
@${REINPLACE_CMD} -e 's|linkBins, linkMans|linkBins|; /manRoot/ s|, "share"||' ${MS_WRKSRC}/${MS_DISTNAME}/lib/build.js ${MS_WRKSRC}/${MS_DISTNAME}/lib/unbuild.js
|
||||
@${REINPLACE_CMD} -e '1 s|#!/bin/bash|#!${LOCALBASE}/bin/bash|; s|${MAKE}|${GMAKE}|g; s|perl -pi|perl -p|' ${MS_WRKSRC}/${MS_DISTNAME}/scripts/doc-build.sh
|
||||
@${GREP} -lr share/man ${MS_WRKSRC}/${MS_DISTNAME}/doc/ ${MS_WRKSRC}/${MS_DISTNAME}/scripts/ | ${XARGS} -I % ${REINPLACE_CMD} 's|share/man|man|g' %
|
||||
@cd ${MS_WRKSRC}/${MS_DISTNAME}/ && ${GMAKE} docclean markedclean all html/doc/misc/npm-index.html
|
||||
@${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}/
|
||||
@${REINPLACE_CMD} -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_CMD} makesum
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
@@ -1,2 +0,0 @@
|
||||
SHA256 (npm-2.14.7.tar.xz) = bae5f33434527e14f5586d7797837164a611f30de73f9cd8d5720dc0531450d0
|
||||
SIZE (npm-2.14.7.tar.xz) = 2495000
|
||||
@@ -1,30 +0,0 @@
|
||||
--- lib/config/defaults.js.orig 2015-05-01 04:03:19 UTC
|
||||
+++ lib/config/defaults.js
|
||||
@@ -316,26 +316,7 @@ exports.types =
|
||||
}
|
||||
|
||||
function getLocalAddresses () {
|
||||
- var interfaces
|
||||
- // #8094: some environments require elevated permissions to enumerate
|
||||
- // interfaces, and synchronously throw EPERM when run without
|
||||
- // elevated privileges
|
||||
- try {
|
||||
- interfaces = os.networkInterfaces()
|
||||
- } catch (e) {
|
||||
- interfaces = {}
|
||||
- }
|
||||
-
|
||||
- return Object.keys(interfaces).map(function (nic) {
|
||||
- return interfaces[nic].filter(function (addr) {
|
||||
- return addr.family === 'IPv4'
|
||||
- })
|
||||
- .map(function (addr) {
|
||||
- return addr.address
|
||||
- })
|
||||
- }).reduce(function (curr, next) {
|
||||
- return curr.concat(next)
|
||||
- }, []).concat(undefined)
|
||||
+ return [ '127.0.0.1', undefined ]
|
||||
}
|
||||
|
||||
exports.shorthands =
|
||||
@@ -1,5 +0,0 @@
|
||||
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/npm/npm
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user