summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesus Rivero <jesus.riveroa@gmail.com>2013-07-10 10:36:28 -0400
committerJesus Rivero <jesus.riveroa@gmail.com>2013-07-10 10:36:28 -0400
commita6f4db7e7bbff2a525c344ea8994d6bbc99d6c1a (patch)
treed1f430bc5f76f6acd74330522e11271d72b15d76
parentFixes to npm.eclass and Updated ebuild (diff)
downloadneurogeek-a6f4db7e7bbff2a525c344ea8994d6bbc99d6c1a.tar.gz
neurogeek-a6f4db7e7bbff2a525c344ea8994d6bbc99d6c1a.tar.bz2
neurogeek-a6f4db7e7bbff2a525c344ea8994d6bbc99d6c1a.zip
Use whitespace instead of tabs
-rw-r--r--eclass/npm.eclass42
1 files changed, 21 insertions, 21 deletions
diff --git a/eclass/npm.eclass b/eclass/npm.eclass
index 745242b..2258c44 100644
--- a/eclass/npm.eclass
+++ b/eclass/npm.eclass
@@ -12,8 +12,8 @@
# Requires EAPI=2 or later.
case ${EAPI} in
- 2|3|4|5) : ;;
- *) die "npm.eclass: unsupported EAPI=${EAPI:-0}" ;;
+ 2|3|4|5) : ;;
+ *) die "npm.eclass: unsupported EAPI=${EAPI:-0}" ;;
esac
inherit multilib
@@ -62,8 +62,8 @@ SRC_URI="http://registry.npmjs.org/${PN}/-/${P}.tgz"
# unpacks the source code, then renames the 'package' dir to $S
npm_src_unpack() {
- unpack "${A}"
- mv "${WORKDIR}/package" ${S}
+ unpack "${A}"
+ mv "${WORKDIR}/package" ${S}
}
# @FUNCTION: npm-src_compile
@@ -71,7 +71,7 @@ npm_src_unpack() {
# This function does nothing.
npm_src_compile() {
- true
+ true
}
# @FUNCTION: npm-src_install
@@ -80,28 +80,28 @@ npm_src_compile() {
# also taking care of NPM_FILES, NPM_EXTRA_FILES, NPM_DOCS and NPM_EXTRA_DOCS
npm_src_install() {
- local npm_files="${NPM_FILES} ${NPM_EXTRA_FILES}"
- local node_modules="${D}/usr/$(get_libdir)/node_modules/${NPM_MODULE}"
+ local npm_files="${NPM_FILES} ${NPM_EXTRA_FILES}"
+ local node_modules="${D}/usr/$(get_libdir)/node_modules/${NPM_MODULE}"
- mkdir -p ${node_modules} || die "Could not create DEST folder"
+ mkdir -p ${node_modules} || die "Could not create DEST folder"
- for f in ${npm_files}
- do
+ for f in ${npm_files}
+ do
if [[ -e "${S}/$f" ]]; then
cp -r "${S}/$f" ${node_modules}
fi
done
-
- if use doc; then
- local npm_docs="${NPM_DOCS} ${NPM_EXTRA_DOCS}"
-
- for f in $npm_docs
- do
- if [[ -e "${S}/$f" ]]; then
- dodoc -r "${S}/$f"
- fi
- done
- fi
+
+ if use doc; then
+ local npm_docs="${NPM_DOCS} ${NPM_EXTRA_DOCS}"
+
+ for f in $npm_docs
+ do
+ if [[ -e "${S}/$f" ]]; then
+ dodoc -r "${S}/$f"
+ fi
+ done
+ fi
}
EXPORT_FUNCTIONS src_unpack src_compile src_install