summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-nodejs/abbrev/abbrev-1.0.4.ebuild')
-rw-r--r--dev-nodejs/abbrev/abbrev-1.0.4.ebuild27
1 files changed, 3 insertions, 24 deletions
diff --git a/dev-nodejs/abbrev/abbrev-1.0.4.ebuild b/dev-nodejs/abbrev/abbrev-1.0.4.ebuild
index fadc916..8cc8bf7 100644
--- a/dev-nodejs/abbrev/abbrev-1.0.4.ebuild
+++ b/dev-nodejs/abbrev/abbrev-1.0.4.ebuild
@@ -3,36 +3,15 @@
# $Header: $
EAPI=4
-NODEJS_MODULE=${PN}
-inherit multilib
+inherit multilib npm
DESCRIPTION="Like ruby's abbrev module, but in js."
-HOMEPAGE="https://npmjs.org/package/abbrev"
-SRC_URI="http://registry.npmjs.org/${PN}/-/${P}.tgz"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~x86 ~amd64"
-IUSE=""
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
DEPEND=">=net-libs/nodejs-0.8.10"
RDEPEND="${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
-}