summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesus Rivero <jesus.riveroa@gmail.com>2013-08-23 17:32:35 -0400
committerJesus Rivero <jesus.riveroa@gmail.com>2013-08-23 17:32:35 -0400
commita07b459620a4aa05b667fc2de0c6df13e1d4eb8c (patch)
treef6604e82cfa7d3443e1939b131ee60c4747f9100
parentNew packages and some version bumps (diff)
downloadneurogeek-a07b459620a4aa05b667fc2de0c6df13e1d4eb8c.tar.gz
neurogeek-a07b459620a4aa05b667fc2de0c6df13e1d4eb8c.tar.bz2
neurogeek-a07b459620a4aa05b667fc2de0c6df13e1d4eb8c.zip
Don't override NPM_MODULE if it was already defined
-rw-r--r--eclass/npm.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/npm.eclass b/eclass/npm.eclass
index b6a2cde..e4a064e 100644
--- a/eclass/npm.eclass
+++ b/eclass/npm.eclass
@@ -24,13 +24,15 @@ inherit multilib
# The Default value for NPM_MODULE is ${PN}
#
# Example: NPM_MODULE="${MY_PN}"
-NPM_MODULE="${PN}"
+if [[ -z $NPM_MODULE ]]; then
+ NPM_MODULE="${PN}"
+fi
# @ECLASS-VARIABLE: NPM_FILES
# @INTERNAL
# @DESCRIPTION:
# Files and directories that usually come in a standard NodeJS/npm module.
-NPM_FILES="index.js lib package.json ${PN}.js"
+NPM_FILES="index.js lib package.json ${NPM_MODULE}.js"
# @ECLASS-VARIABLE: NPM_DOCS
# @DESCRIPTION: