From b4f6d7c471e13e5b0c9bb12b5d3dffa2be615785 Mon Sep 17 00:00:00 2001 From: Jesus Rivero Date: Wed, 10 Jul 2013 10:50:58 -0400 Subject: Modifications to use npm.eclass --- dev-nodejs/abbrev/Manifest | 2 +- dev-nodejs/abbrev/abbrev-1.0.4.ebuild | 27 +++------------------------ 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/dev-nodejs/abbrev/Manifest b/dev-nodejs/abbrev/Manifest index 08fe53c..a6caca6 100644 --- a/dev-nodejs/abbrev/Manifest +++ b/dev-nodejs/abbrev/Manifest @@ -1,2 +1,2 @@ DIST abbrev-1.0.4.tgz 2295 SHA256 8dc0f480571a4a19e74f1abd4f31f6a70f94953d1ccafa16ed1a544a19a6f3a8 SHA512 c6857500b65859d304b283926b355ee09dbfd138a6d593cabf3db1be6a718e912b064179a3b5505a2bd5afc57194084e75eb23bca1ca9bada5d2034478be3ed8 WHIRLPOOL 39b07bcf6d2b7283f8922543c7ec8bfe6e6fb829ca091722c65f09974c9d89ea6db33ed2e10a8fb2de8cb4d628f559c5ab82b72979aef1ab7acdf112b9eaacac -EBUILD abbrev-1.0.4.ebuild 744 SHA256 a15fa6a3eaeb821ff6b6d6e9df55165205c03acffd33987f038a8686a0133f54 SHA512 b19dfdf18b25f39d03e4883af1e4b00aff8190bf1b41396366a860d57ccf3b18a2334f6a697621124a02187ea7ff5c92b79f9b06c424bf12b553745839a879b2 WHIRLPOOL 984fe131f0c53c84c7de82ed0055f33a2ff3acff20559361def2e06d523e6321d51cdb41379855c6dec6bb2f43b4715cf81acafec5e851950df3ba870e99b325 +EBUILD abbrev-1.0.4.ebuild 316 SHA256 523c3ab742dcaf1537808643515e9861fc59acad83948c47e64ef4deb8f15395 SHA512 a8c23d8be0e8d639d6ac6a06858a4612d4f6e63c595fcce3b7fe04d525d78c8e94c8e08463c22778eeca3f22951af3412c83454a2e39d42a82413d4e52f77325 WHIRLPOOL a70e0ec52404330ef42d556dc6fa9dd50f022fe0865ba9f1bbbe16a72e00cfb6fb6c105637b4917f850e753371c472adaba51b81b81093c968d0648d14f47b2a 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 -} -- cgit v1.2.3-65-gdbad