summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesus Rivero <jesus.riveroa@gmail.com>2013-05-07 23:12:30 -0400
committerJesus Rivero <jesus.riveroa@gmail.com>2013-05-07 23:12:30 -0400
commite3c302da584f952e4444ead4709cb70a605a2fd3 (patch)
tree3bf3e475e6389b4b6f72acbb8ec8ed0543a1ebca /dev-nodejs
parentdev-nodejs/fstream: Initial commit (diff)
downloadneurogeek-e3c302da584f952e4444ead4709cb70a605a2fd3.tar.gz
neurogeek-e3c302da584f952e4444ead4709cb70a605a2fd3.tar.bz2
neurogeek-e3c302da584f952e4444ead4709cb70a605a2fd3.zip
dev-nodejs/hogan_js: Initial commit
Diffstat (limited to 'dev-nodejs')
-rw-r--r--dev-nodejs/hogan_js/Manifest2
-rw-r--r--dev-nodejs/hogan_js/hogan_js-2.0.0.ebuild41
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-nodejs/hogan_js/Manifest b/dev-nodejs/hogan_js/Manifest
new file mode 100644
index 0000000..8ab73fe
--- /dev/null
+++ b/dev-nodejs/hogan_js/Manifest
@@ -0,0 +1,2 @@
+DIST hogan.js-2.0.0.tgz 180194 SHA256 8b41a7f236cbde0a06a7565fc8f500654fc66b0ae498c1d28915e18e7d5bdab6 SHA512 bab4ea56f79f6a2bba66aa4855092591bbbab6ea94412bf4a5f8271b4da26de002e19146d118f6b838c7e397947081322c58cfb21d66c607aa77d05895d5ab82 WHIRLPOOL 740075eb502f02526857615ab1cdc0a79a05bb77010a7283dc17a9fe15c0268810cda4ad05eefba0f642520cc8defe58bbcab6bd08e3bca138641019a0b8d3f5
+EBUILD hogan_js-2.0.0.ebuild 817 SHA256 818e27f06b16a21cabb4bddc7a49a6abaf15f4743fedfcbe74d99878ecd22d92 SHA512 4fb4c0557ed19dd6c46a18215c3fd1a86540d3e3fe7d35860df5afa2741765572b9b6a7f8d08c8500ab2c885cf5a951274f29ede4e58f28940f548b85bc6c2d1 WHIRLPOOL b436d312587ec47577ee3aee056a0196f9fb8c5d1f78d1e52b8fe5d8c9738b677940b4414fb4a507b99f02c403ca55188342155f199faa51b039777355b97bd7
diff --git a/dev-nodejs/hogan_js/hogan_js-2.0.0.ebuild b/dev-nodejs/hogan_js/hogan_js-2.0.0.ebuild
new file mode 100644
index 0000000..3cd8939
--- /dev/null
+++ b/dev-nodejs/hogan_js/hogan_js-2.0.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+MY_PN="${PN/_/.}"
+MY_P="${MY_PN}-${PV}"
+NODEJS_MODULE=${MY_PN}
+
+inherit multilib
+
+DESCRIPTION="A mustache compiler."
+HOMEPAGE="https://npmjs.org/package/hogan.js"
+SRC_URI="http://registry.npmjs.org/${MY_PN}/-/${MY_P}.tgz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+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,package.json,tools,web,wrappers} ${node_modules}
+
+ dobin bin/*
+ dodoc README* LICENSE
+}