aboutsummaryrefslogtreecommitdiff
path: root/network/iojs
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryan.q@linux.com>2015-08-20 19:58:02 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-08-22 23:42:04 +0700
commit9ca306ceb84422fbb1b307b6fdf653eaf480bc8b (patch)
treea334b60a7adbecb3c768213581b8cb9a105be18b /network/iojs
parentce1eb7081f187bf6670e7b8e5eab67c83842b4db (diff)
network/iojs: Updated for version 3.1.0.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'network/iojs')
-rw-r--r--network/iojs/iojs.SlackBuild2
-rw-r--r--network/iojs/iojs.info6
-rw-r--r--network/iojs/npm.sh17
3 files changed, 15 insertions, 10 deletions
diff --git a/network/iojs/iojs.SlackBuild b/network/iojs/iojs.SlackBuild
index d7afe2481811b..c534715df6ebc 100644
--- a/network/iojs/iojs.SlackBuild
+++ b/network/iojs/iojs.SlackBuild
@@ -25,7 +25,7 @@
# not, see <http://www.gnu.org/licenses/>.
PRGNAM=iojs
-VERSION=${VERSION:-3.0.0}
+VERSION=${VERSION:-3.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
diff --git a/network/iojs/iojs.info b/network/iojs/iojs.info
index 7155808d2b9f2..b685f4a342020 100644
--- a/network/iojs/iojs.info
+++ b/network/iojs/iojs.info
@@ -1,8 +1,8 @@
PRGNAM="iojs"
-VERSION="3.0.0"
+VERSION="3.1.0"
HOMEPAGE="https://iojs.org/"
-DOWNLOAD="https://iojs.org/dist/v3.0.0/iojs-v3.0.0.tar.xz"
-MD5SUM="07814de7acf29bf1d2cf84a1b247ce1b"
+DOWNLOAD="https://iojs.org/dist/v3.1.0/iojs-v3.1.0.tar.xz"
+MD5SUM="0bd4a7724ee2177a619b502bf38086e2"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/network/iojs/npm.sh b/network/iojs/npm.sh
index 3c7a3590d80f7..c0a293c917c64 100644
--- a/network/iojs/npm.sh
+++ b/network/iojs/npm.sh
@@ -7,17 +7,21 @@
# Or, maybe: npm completion > /usr/local/etc/bash_completion.d/npm
#
-COMP_WORDBREAKS=${COMP_WORDBREAKS/=/}
-COMP_WORDBREAKS=${COMP_WORDBREAKS/@/}
-export COMP_WORDBREAKS
-
if type complete &>/dev/null; then
_npm_completion () {
+ local words cword
+ if type _get_comp_words_by_ref &>/dev/null; then
+ _get_comp_words_by_ref -n = -n @ -w words -i cword
+ else
+ cword="$COMP_CWORD"
+ words=("${COMP_WORDS[@]}")
+ fi
+
local si="$IFS"
- IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \
+ IFS=$'\n' COMPREPLY=($(COMP_CWORD="$cword" \
COMP_LINE="$COMP_LINE" \
COMP_POINT="$COMP_POINT" \
- npm completion -- "${COMP_WORDS[@]}" \
+ npm completion -- "${words[@]}" \
2>/dev/null)) || return $?
IFS="$si"
}
@@ -52,3 +56,4 @@ elif type compctl &>/dev/null; then
compctl -K _npm_completion npm
fi
###-end-npm-completion-###
+