diff options
author | 2013-05-10 10:30:51 -0400 | |
---|---|---|
committer | 2013-05-10 10:30:51 -0400 | |
commit | 77c9e7b9c72beee693c96e638214625ca63d57bf (patch) | |
tree | fffb88025ba96d5e6d91b125b145833a9ff40745 | |
parent | dev-nodejs/wordwrap: Initial commit (diff) | |
download | neurogeek-77c9e7b9c72beee693c96e638214625ca63d57bf.tar.gz neurogeek-77c9e7b9c72beee693c96e638214625ca63d57bf.tar.bz2 neurogeek-77c9e7b9c72beee693c96e638214625ca63d57bf.zip |
dev-nodejs/optimist: Initial commit
-rw-r--r-- | dev-nodejs/optimist/Manifest | 2 | ||||
-rw-r--r-- | dev-nodejs/optimist/optimist-0.4.0.ebuild | 43 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-nodejs/optimist/Manifest b/dev-nodejs/optimist/Manifest new file mode 100644 index 0000000..025103a --- /dev/null +++ b/dev-nodejs/optimist/Manifest @@ -0,0 +1,2 @@ +DIST optimist-0.4.0.tgz 12765 SHA256 bbbd3c9e8c1e8f59e7097271a78fa628c6dc76de894a02fc625872b72bc99555 SHA512 bffb9e16a8a08701107809f0f192687ee12c1c3bc08941b27e88ed25d2aeaf17782946a7ce7c6f2bd849a1c6b15a99fe9c001bc53038a9f87ba2b60780d64858 WHIRLPOOL fb5a34a697f4bca6d47ad9cdbbf0577f32d3cb08cb514176ad8b3d6e0a171859b8421a7b6a3515137ed3a5b9824bbf4c7c86a161c892eb531240945469ab4357 +EBUILD optimist-0.4.0.ebuild 826 SHA256 f31ebf6de3fc3116ae23761105e59357fce3e5a46e03dc3f9824bb02600dd9b4 SHA512 311bbc6491eb91c0918b5f5d4a7b0c239f0cb3083d49394aefc76cce0b5ca93522b99e7310b4e7ca36f76165bfa6476f15e560015a8a73bac9688695d289afcf WHIRLPOOL 0a192cf4a58ead181740225350da7f2f2ec2b3a0b6099acd3ab82a434543e048c88b7eacc44788801d64cd6d6c183fdcd162db506f0442b620e3d2d4b89a9b2e diff --git a/dev-nodejs/optimist/optimist-0.4.0.ebuild b/dev-nodejs/optimist/optimist-0.4.0.ebuild new file mode 100644 index 0000000..ab3b281 --- /dev/null +++ b/dev-nodejs/optimist/optimist-0.4.0.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="Light-weight option parsing with an argv hash. No optstrings +attached." +HOMEPAGE="https://npmjs.org/package/optimist" +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 LICENSE + + if use example; then + dodoc example + fi +} |