diff options
Diffstat (limited to 'dev-nodejs/esprima/esprima-1.0.2.ebuild')
-rw-r--r-- | dev-nodejs/esprima/esprima-1.0.2.ebuild | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/dev-nodejs/esprima/esprima-1.0.2.ebuild b/dev-nodejs/esprima/esprima-1.0.2.ebuild index fe865ee..cacad56 100644 --- a/dev-nodejs/esprima/esprima-1.0.2.ebuild +++ b/dev-nodejs/esprima/esprima-1.0.2.ebuild @@ -3,39 +3,28 @@ # $Header: $ EAPI=4 -NODEJS_MODULE=${PN} -inherit multilib +inherit npm DESCRIPTION="ECMAScript parsing infrastructure for multipurpose analysis." HOMEPAGE="https://npmjs.org/package/esprima" -SRC_URI="http://registry.npmjs.org/${PN}/-/${P}.tgz" +SRC_URI="http://registry.npmjs.org/${PN}/${PV}/${P}.tgz" LICENSE="BSD" SLOT="0" -KEYWORDS="~x86 ~amd64" +KEYWORDS="~amd64 ~x86" IUSE="doc example" -DEPEND=">=net-libs/nodejs-0.8.10" -RDEPEND="${DEPEND}" +RDEPEND=">=net-libs/nodejs-0.8.10" +DEPEND="" -src_unpack() { - unpack "${A}" - mv "${WORKDIR}/package" ${S} -} - -src_compile() { - true -} +NPM_EXTRA_FILES="component.json" 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}/{${PN}.js,component.json,package.json} ${node_modules} + npm_src_install dobin bin/* - dodoc README* LICENSE.BSD if use doc; then dodoc -r doc/* |