diff options
-rw-r--r-- | dev-nodejs/mkdirp/Manifest | 2 | ||||
-rw-r--r-- | dev-nodejs/mkdirp/mkdirp-0.3.5.ebuild | 42 |
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-nodejs/mkdirp/Manifest b/dev-nodejs/mkdirp/Manifest new file mode 100644 index 0000000..8331719 --- /dev/null +++ b/dev-nodejs/mkdirp/Manifest @@ -0,0 +1,2 @@ +DIST mkdirp-0.3.5.tgz 4162 SHA256 8ae9c5107acb41110106224f5e7be2b50b00d15d062ea7941301c111b863fd26 SHA512 f0e0aad037bf87d671b1eab3087f0ac3f16295fe6917fbcc23af811fb2eed235f3da9a980a34c0411a254b14488be031fa80828e5c6824c3f4610e1796b40d1e WHIRLPOOL 323497b5d74bebf9eb5dfa93e8f2e9942cae63cb6a1a99afa31ba2527697444c851498c2e22e8afd588bab361e291aac140308eb2b4c500fdcd5af288ba115d2 +EBUILD mkdirp-0.3.5.ebuild 799 SHA256 d4bb0c964731ef914f9c79119050ba844133b583c0a77707906f58497b1b54b4 SHA512 f19c1f8ecc1cf74cb4f3eef7fdd4a4e607684b7ee0bc4ec2e8fb8f3eab7f29d222e96a7bda81f3c6ad28f2ff4bc25218ce04a39151b10fada2d66008425a09e4 WHIRLPOOL f739dfb8e4fc9cb6d8d67571610683000778526d191d22156ecc79439f3ca1b9af01c2235995b759010df0432a392e048e41a40604605fa8ff3241cca807810a diff --git a/dev-nodejs/mkdirp/mkdirp-0.3.5.ebuild b/dev-nodejs/mkdirp/mkdirp-0.3.5.ebuild new file mode 100644 index 0000000..ed6e3bf --- /dev/null +++ b/dev-nodejs/mkdirp/mkdirp-0.3.5.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="Recursively mkdir, like 'mkdir -p'" +HOMEPAGE="https://npmjs.org/package/mkdirp" +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* LICENSE + + if use example; then + dodoc -r example + fi +} |