summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-nodejs/argparse/argparse-0.1.13.ebuild')
-rw-r--r--dev-nodejs/argparse/argparse-0.1.13.ebuild23
1 files changed, 3 insertions, 20 deletions
diff --git a/dev-nodejs/argparse/argparse-0.1.13.ebuild b/dev-nodejs/argparse/argparse-0.1.13.ebuild
index dba3aad..45071c8 100644
--- a/dev-nodejs/argparse/argparse-0.1.13.ebuild
+++ b/dev-nodejs/argparse/argparse-0.1.13.ebuild
@@ -3,18 +3,15 @@
# $Header: $
EAPI=4
-NODEJS_MODULE=${PN}
-inherit multilib
+inherit npm
DESCRIPTION="Very powerful CLI arguments parser. Native port of argparse -
python's options parsing library"
-HOMEPAGE="https://npmjs.org/package/argparse"
-SRC_URI="http://registry.npmjs.org/${PN}/-/${P}.tgz"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~x86 ~amd64"
+KEYWORDS="~amd64 ~x86"
IUSE="example"
DEPEND=">=net-libs/nodejs-0.8.10"
@@ -22,22 +19,8 @@ RDEPEND=">=dev-nodejs/underscore-1.4.4
>=dev-nodejs/underscore_string-2.3.1
${DEPEND}"
-src_unpack() {
- unpack "${A}"
- mv "${WORKDIR}/package" ${S}
-}
-
-src_compile() {
- true
-}
-
src_install() {
- local node_modules="${D}/usr/$(get_libdir)/node_modules/${NODEJS_MODULE}"
-
- mkdir -p ${node_modules} || die "Could not create DEST folder"
- cp -r ${S}/{lib,package.json} ${node_modules}
-
- dodoc README* LICENSE HISTORY.md index.js
+ npm-src_install
if use example; then
dodoc -r examples