From 1bb89e5c66b9f2cea3aa9b15b3cb6c0da13e07c4 Mon Sep 17 00:00:00 2001 From: Jesus Rivero Date: Mon, 6 May 2013 15:22:09 -0400 Subject: dev-nodejs/js-yaml: Initial commit --- dev-nodejs/js-yaml/Manifest | 2 ++ dev-nodejs/js-yaml/js-yaml-2.0.5.ebuild | 45 +++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 dev-nodejs/js-yaml/Manifest create mode 100644 dev-nodejs/js-yaml/js-yaml-2.0.5.ebuild diff --git a/dev-nodejs/js-yaml/Manifest b/dev-nodejs/js-yaml/Manifest new file mode 100644 index 0000000..b3ae5fd --- /dev/null +++ b/dev-nodejs/js-yaml/Manifest @@ -0,0 +1,2 @@ +DIST js-yaml-2.0.5.tgz 27642 SHA256 aa921bbb4364458a6be0f774239eed02e39c4619161387a1601384baaeee96fa SHA512 54429c224b1c903054860d894bcef8c55a2e88f932c15521e32c9498b0837b5660ddb09de8cf85d5e18f7a73de1cb7365c2f29a7d1bc6ecba87cad0d784a9190 WHIRLPOOL ead483ff0655cd360938d14debb82d33cace061de45ba4235c85ff11756a7936bb46259217cd41d0413327c3f8763d4341f294094c2a1e306f0af1027a40b4d5 +EBUILD js-yaml-2.0.5.ebuild 901 SHA256 b2c0419adadcdbc4df6185f6f1575c512e7de8fe3359729d0d9a2b28caca358d SHA512 d494f71786d0deb50a60aac656bdb871afabb88d2ea94943daee29cb4009726e535dd9f7e6776288ccbb41f3d5236d0ab0e7ce94709bbbc4e3ccd77929622ab8 WHIRLPOOL 1779f2f30212225abc0c212615f00a6f497439e03be313e54bc1c9120c828ba3bede9dd9a24c4e280f9689e711ee2da17fe74c5cb580a33bab356ef980db60f7 diff --git a/dev-nodejs/js-yaml/js-yaml-2.0.5.ebuild b/dev-nodejs/js-yaml/js-yaml-2.0.5.ebuild new file mode 100644 index 0000000..a200be7 --- /dev/null +++ b/dev-nodejs/js-yaml/js-yaml-2.0.5.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +NODEJS_MODULE=${PN} + +inherit multilib + +DESCRIPTION="YAML 1.2 parser and serializer." +HOMEPAGE="https://npmjs.org/package/js-yaml" +SRC_URI="http://registry.npmjs.org/${PN}/-/${P}.tgz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="example" + +DEPEND=">=net-libs/nodejs-0.8.10" +RDEPEND=">=dev-nodejs/argparse-0.1.13 + >=dev-nodejs/esprima-1.0.2 + ${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} + + dobin bin/${PN}.js + dodoc README* LICENSE HISTORY.md index.js + + if use example; then + dodoc -r examples + fi +} -- cgit v1.2.3-65-gdbad