summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-nodejs/mkdirp/mkdirp-0.3.5.ebuild')
-rw-r--r--dev-nodejs/mkdirp/mkdirp-0.3.5.ebuild42
1 files changed, 42 insertions, 0 deletions
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
+}