summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesus Rivero <jesus.riveroa@gmail.com>2013-05-06 15:11:32 -0400
committerJesus Rivero <jesus.riveroa@gmail.com>2013-05-06 15:11:32 -0400
commit9aca24e5590eb3612a1223ef349c0f566af9032d (patch)
treefb0ac9b7104daea0422fdc0c401df9b2e5ad47ae /dev-nodejs
parentdev-nodejs/esprima: Initial commit (diff)
downloadneurogeek-9aca24e5590eb3612a1223ef349c0f566af9032d.tar.gz
neurogeek-9aca24e5590eb3612a1223ef349c0f566af9032d.tar.bz2
neurogeek-9aca24e5590eb3612a1223ef349c0f566af9032d.zip
dev-nodejs/underscore: Initial commit
Diffstat (limited to 'dev-nodejs')
-rw-r--r--dev-nodejs/underscore/Manifest2
-rw-r--r--dev-nodejs/underscore/underscore-1.4.4.ebuild38
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-nodejs/underscore/Manifest b/dev-nodejs/underscore/Manifest
new file mode 100644
index 0000000..8f123cd
--- /dev/null
+++ b/dev-nodejs/underscore/Manifest
@@ -0,0 +1,2 @@
+DIST underscore-1.4.4.tgz 41763 SHA256 a848a28193850d58d7b98249d70844bc7f35a7d8b6b5ed75e08e829aa6e763d3 SHA512 66a1ab0206aaa9933b2c64733632e7c397a57af59be4cf0b1280cc69dc485b73966dcbfbdb030c80a77038aa5de45ab17bc721a0b0fc1cdde24a3dd3521fe089 WHIRLPOOL e6db94eccc6bb3dd82f43c795112dc3242bd7a3f7a61f51dc32b91eb100f5e761c8b537ebcbeae95fb5b8976120dd5a1d5b22012aeade9bbb78b4369df841b5f
+EBUILD underscore-1.4.4.ebuild 807 SHA256 49d383e76af5e4ce07c1fef632ea23fbe7a5c7b85da5ad4f6fee82d82dec1ef7 SHA512 c58f3969632d5b93811612c0a6e078a921f821ee9357b09261db2fd6a69514ee42a74f9f6996877f232913762d9d517b2e0c59b64e6fc0b5d0d0a77b91409d61 WHIRLPOOL 50d61fe903b38407aa77598c8db9cb6da091f7791f82ae31d1a534b7f957259e90656828bbfe22125addbb61f65482f24249be5188df9ec640d189c1a96bbfd9
diff --git a/dev-nodejs/underscore/underscore-1.4.4.ebuild b/dev-nodejs/underscore/underscore-1.4.4.ebuild
new file mode 100644
index 0000000..4414446
--- /dev/null
+++ b/dev-nodejs/underscore/underscore-1.4.4.ebuild
@@ -0,0 +1,38 @@
+# 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="JavaScript's functional programming helper library."
+HOMEPAGE="https://npmjs.org/package/underscore"
+SRC_URI="http://registry.npmjs.org/${PN}/-/${P}.tgz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+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}/{${PN}*.js,package.json} ${node_modules}
+
+ dodoc README* LICENSE CNAME CONTRIBUTING* favicon.ico index*
+}