diff options
author | Jesus Rivero <jesus.riveroa@gmail.com> | 2013-05-13 17:29:59 -0400 |
---|---|---|
committer | Jesus Rivero <jesus.riveroa@gmail.com> | 2013-05-13 17:29:59 -0400 |
commit | d546335b949fbcf660b63d2c4a3082fa5b4e7d19 (patch) | |
tree | ca9284dc76487a2457d4c79d642d75a3bf588380 | |
parent | dev-nodejs/grunt-rigger: Updated Manifest (diff) | |
download | neurogeek-d546335b949fbcf660b63d2c4a3082fa5b4e7d19.tar.gz neurogeek-d546335b949fbcf660b63d2c4a3082fa5b4e7d19.tar.bz2 neurogeek-d546335b949fbcf660b63d2c4a3082fa5b4e7d19.zip |
dev-nodejs/resolve: Initial commit
-rw-r--r-- | dev-nodejs/resolve/Manifest | 2 | ||||
-rw-r--r-- | dev-nodejs/resolve/resolve-0.3.1.ebuild | 43 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-nodejs/resolve/Manifest b/dev-nodejs/resolve/Manifest new file mode 100644 index 0000000..e62c77e --- /dev/null +++ b/dev-nodejs/resolve/Manifest @@ -0,0 +1,2 @@ +DIST resolve-0.3.1.tgz 5777 SHA256 2e9424747b687ff5cabd8c51e3fbd48152fe0cc89ba37f8d6a6e926ea741a092 SHA512 9b1c7f23fc0b8f1b6bc8306daeb6f464dcda60445559a1e92745b402b9bc37897c6fe8e25ff539c8a72c8f4cd0a45f54b8a375bb3f341144ceb9d38de8e3ee69 WHIRLPOOL f8f7a100ca75f94ea20e1b7f11ab7429e9e888ff1e107629627f46c2a6f6a04583edd2f0fa39536b618c818f1259bd55b5b857db8d71e7144a7f2a90a49583ee +EBUILD resolve-0.3.1.ebuild 853 SHA256 669f3316ee2db68ec96acfea814db47744cf2b28e1b9becd7ed92f08a7f86bb4 SHA512 7f519b72c6fd3d29394ad697b400102c80371e60430e45213d059508578ca93cb002b94dba39b9f42bbc92cd666640b45e3fd7f463eaf36de898eecee4cc89fe WHIRLPOOL 3ef9ed5ae64c9c21ab934551125921cb9e5384be4a64a6515f40943760537001954c6b2aa5d75eeb427a1ce625592ba4f4b3c735e9f583aeb56c0268c887fe1a diff --git a/dev-nodejs/resolve/resolve-0.3.1.ebuild b/dev-nodejs/resolve/resolve-0.3.1.ebuild new file mode 100644 index 0000000..c1d749f --- /dev/null +++ b/dev-nodejs/resolve/resolve-0.3.1.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="Resolve like require.resolve() on behalf of files asynchronously +and synchronously." +HOMEPAGE="https://npmjs.org/package/resolve" +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}/{lib,index.js,package.json} ${node_modules} + + dodoc readme* LICENSE + + if use example; then + dodoc -r example + fi +} |