From ec8fd4d918d3d1ca7693b4a871d5ec51bc90c5e5 Mon Sep 17 00:00:00 2001 From: Jesus Rivero Date: Fri, 10 May 2013 10:26:33 -0400 Subject: dev-nodejs/wordwrap: Initial commit --- dev-nodejs/wordwrap/Manifest | 2 ++ dev-nodejs/wordwrap/wordwrap-0.0.2.ebuild | 42 +++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 dev-nodejs/wordwrap/Manifest create mode 100644 dev-nodejs/wordwrap/wordwrap-0.0.2.ebuild diff --git a/dev-nodejs/wordwrap/Manifest b/dev-nodejs/wordwrap/Manifest new file mode 100644 index 0000000..cb1c40e --- /dev/null +++ b/dev-nodejs/wordwrap/Manifest @@ -0,0 +1,2 @@ +DIST wordwrap-0.0.2.tgz 13772 SHA256 66a2fa688509738922c3ad62a6159fe3c93268bd3bca2bff24df4bc02cc31582 SHA512 c5206c09e87e83e7629e806fdc600e58ce0b71554eebcc0b5d16a789bb4149d52f906590446784f4fec8c14f449830e2e2303a2f8e25cf5e4218cc1dc3d379f9 WHIRLPOOL 990139e1ce480c4ebde6e5c6f1ae257266c3a0ad95abf15fb6ba3cd2b3955825dae4a42f928e6d9d2184a1acebc880603f749270fbac08d63047e620adfe67f2 +EBUILD wordwrap-0.0.2.ebuild 818 SHA256 05fdfad1029721b2334660224eaef65aea3fb5f5af9277208782a2b8b41ad3ed SHA512 195020376a88998e81196dba89f27e333d4da891c87b4f5062986cf36da98966731e54387f2275ab6ef905b14c7f8d9768450882e6e6c3593083607e711a33fd WHIRLPOOL c674f8cdf35e76b2fae946261a3354285e2d9c2cc64b67ebdb9bbfd8cdde1764a4b4371c4402d6608fc75d3547fd03e0ffb5bc7a487632b9f051c87fb3ea368e diff --git a/dev-nodejs/wordwrap/wordwrap-0.0.2.ebuild b/dev-nodejs/wordwrap/wordwrap-0.0.2.ebuild new file mode 100644 index 0000000..dbad1a3 --- /dev/null +++ b/dev-nodejs/wordwrap/wordwrap-0.0.2.ebuild @@ -0,0 +1,42 @@ +# 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="Wrap those words. Show them at what columns to start and stop." +HOMEPAGE="https://npmjs.org/package/wordwrap" +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="${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}/{index.js,package.json} ${node_modules} + + dodoc README* + + if use example; then + dodoc example + fi +} -- cgit v1.2.3-65-gdbad