diff options
author | Audrius Kažukauskas <audrius@neutrino.lt> | 2011-12-17 23:38:47 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-12-17 23:38:47 -0600 |
commit | 77766d1785a073a89a1408c27b377c3b79618ae1 (patch) | |
tree | 07ace6fa3b2245d67563203b5dab5418099270ac /network/node/node.SlackBuild | |
parent | 9d2aeabb209ea6e3f7fe394fdc2b3d3810cd9b3b (diff) | |
download | slackbuilds-77766d1785a073a89a1408c27b377c3b79618ae1.tar.gz |
network/node: Updated for version 0.6.6.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/node/node.SlackBuild')
-rw-r--r-- | network/node/node.SlackBuild | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/network/node/node.SlackBuild b/network/node/node.SlackBuild index 6f97b2b4b5..ec78a79aee 100644 --- a/network/node/node.SlackBuild +++ b/network/node/node.SlackBuild @@ -4,7 +4,7 @@ # Written by Audrius Kažukauskas <audrius@neutrino.lt> PRGNAM=node -VERSION=${VERSION:-0.4.7} +VERSION=${VERSION:-0.6.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -46,9 +46,18 @@ cd $PRGNAM-v$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -sed -i "s|share/man|man|" wscript -sed -i "s|\"lib\"|\"lib$LIBDIRSUFFIX\"|" tools/node-waf -sed -i "s|/lib|/lib$LIBDIRSUFFIX|" tools/nodejs.pc.in +# Fix man page path. +sed -i 's|/share||' wscript +sed -i '/var manRoot/ s/"share",//' deps/npm/lib/build.js + +# Make `npm help' to look for gzipped man pages. +sed -i 's/\." + num/." + num + ".gz"/' deps/npm/lib/help.js + +# Fix libdir for 64-bit. +sed -i "s|/lib/|/lib${LIBDIRSUFFIX}/|" wscript +sed -i "s/'lib'/'lib${LIBDIRSUFFIX}'/" \ + lib/module.js tools/wafadmin/Tools/node_addon.py +sed -i "s|\"lib\"|\"lib${LIBDIRSUFFIX}\"|" deps/npm/lib/npm.js tools/node-waf CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -62,9 +71,15 @@ make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -find $PKG/usr/man -type f -exec gzip -9 {} \; +find $PKG/usr/man $PKG/usr/lib${LIBDIRSUFFIX}/node_modules/npm/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +# Add bash completion file for npm. +install -D -m 644 $CWD/npm.sh $PKG/etc/bash_completion.d/npm + +# Remove unneeded files. +find $PKG/usr \( -name '.git*' -o -name '.travis.yml' \) -exec rm -f {} \; + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS ChangeLog LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |