summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesus Rivero <jesus.riveroa@gmail.com>2013-05-09 10:14:37 -0400
committerJesus Rivero <jesus.riveroa@gmail.com>2013-05-09 10:14:37 -0400
commit2696a93b53a458d378f3915c4e25e0871904fac2 (patch)
treeaba681ab7c4915c127aaa17dc171e96843bcfb41
parentdev-nodejs/mute-stream: Initial commit (diff)
downloadneurogeek-2696a93b53a458d378f3915c4e25e0871904fac2.tar.gz
neurogeek-2696a93b53a458d378f3915c4e25e0871904fac2.tar.bz2
neurogeek-2696a93b53a458d378f3915c4e25e0871904fac2.zip
dev-nodejs/read: Initial commit
-rw-r--r--dev-nodejs/read/Manifest2
-rw-r--r--dev-nodejs/read/read-1.0.4.ebuild43
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-nodejs/read/Manifest b/dev-nodejs/read/Manifest
new file mode 100644
index 0000000..5e7364d
--- /dev/null
+++ b/dev-nodejs/read/Manifest
@@ -0,0 +1,2 @@
+DIST read-1.0.4.tgz 4154 SHA256 8be269afeaa7cc62feb4672e8e61e5133152266dc5347b23cf5b05bc40789601 SHA512 1cd5b2db585dc8cefe091f8371bdbf549cbc8cc607ed065f40d94208c43fe9f0201ba187949ef09fa7a24f3435f84eb29f4608c6c2984443a5b99be8cddd434c WHIRLPOOL 78fa667fd79d47739f547535872f5721ce88bbf7661ffce02cc4d7f48e24d15b54635a986023a087967d4c148929aa107d401bcc3add5114a1944122414e7040
+EBUILD read-1.0.4.ebuild 819 SHA256 de0b6e265d7ac7df02ad7d13da3aa9c3b6f34124703f704734b6240aa1fbead3 SHA512 3565bff6d36d6f8754561541c9ed410749f6bc2efb7854d0481e9e44f5d161d5907b752a00f6c3c925ca4dd192dfdecc60b05758a5943a86f7e30416b6e1f16d WHIRLPOOL d735c29c803217edbdc711959524feee3efbb467d7f896cb772f5f2925dc4cb6e4146127facaa7d62f59cdda6a1a429643bf00504b33b4b65843a01fdbe58e65
diff --git a/dev-nodejs/read/read-1.0.4.ebuild b/dev-nodejs/read/read-1.0.4.ebuild
new file mode 100644
index 0000000..f505d66
--- /dev/null
+++ b/dev-nodejs/read/read-1.0.4.ebuild
@@ -0,0 +1,43 @@
+# 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="read(1) for Node.js programs"
+HOMEPAGE="https://npmjs.org/package/read"
+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/mute-stream-0.0.3
+ ${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* LICEN*
+
+ if use example; then
+ dodoc -r example
+ fi
+}