summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-nodejs/promptly/Manifest2
-rw-r--r--dev-nodejs/promptly/promptly-0.1.0.ebuild39
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-nodejs/promptly/Manifest b/dev-nodejs/promptly/Manifest
new file mode 100644
index 0000000..1e09a51
--- /dev/null
+++ b/dev-nodejs/promptly/Manifest
@@ -0,0 +1,2 @@
+DIST promptly-0.1.0.tgz 5218 SHA256 e41e726fa8588fa4950b1cf24270616262bb13aac22ab705b44ab1c69ecd470b SHA512 7856fe17e0fbb6db1480e7d45b98f156119ab9a5930059bf9d0fce5d3681e08a0fdbc372f47f3ed387332e5d99804bbd22f0211d198603117ebda64a59de2787 WHIRLPOOL 4e2dda43ed3d67455331ba57a76a9350c1359e171a21087d262d174ab8c9a8065047a0f56b0411637e6adf4223436841f3cd4d11476dd47032e6f049844633e1
+EBUILD promptly-0.1.0.ebuild 779 SHA256 4b0ebc1a46cecbdec619d72b63346751d27212a07200d64e1912eb411e055183 SHA512 30f3e4102ea4796c24ba3f31ad63f7d22cdb4ec441948fdadb83c47dcbb631d528086a00c06fdfd397c0b3bb417c85770edbb4967afa7376fd096932e71e6d6d WHIRLPOOL a5f9e8ef85278ed8734c357b2fe924ab70827903ea31aa277a89f113f27a679cf432e09533ab27cca35888fe56ea4841eb46d15bcb6bffecf213b31ad4ed751c
diff --git a/dev-nodejs/promptly/promptly-0.1.0.ebuild b/dev-nodejs/promptly/promptly-0.1.0.ebuild
new file mode 100644
index 0000000..de5aa33
--- /dev/null
+++ b/dev-nodejs/promptly/promptly-0.1.0.ebuild
@@ -0,0 +1,39 @@
+# 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="Simple command line prompting utility."
+HOMEPAGE="https://npmjs.org/package/promptly"
+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=">=dev-nodejs/read-1.0.4
+ ${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
+}