Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

npm - a package manager for node.js

  • Loading branch information...
commit e873cdf9aeb8408b630be91560189b73fb3205dc 1 parent b0622a9
@ramereth authored
View
2  sys-apps/npm/Manifest
@@ -0,0 +1,2 @@
+EBUILD npm-1.0.26.ebuild 630 RMD160 3f7c725614af367e7e935f5ccbe44cf45312c0ce SHA1 2ad4d87fd83739701f13658745485735ae94396e SHA256 d40335c9a9975583c97d43063ee73feefab7a14196c5ee8b7967408cab3eb0ab
+MISC metadata.xml 454 RMD160 40f9c7847d0ae51a88c59ccd3872dd7fee5e4209 SHA1 c4174368a685a465b8302e793b3860b3f0003b5b SHA256 8f3b8839636a4f0493c366625c4a4d3b363289d5bffee90c06b89102340757c0
View
14 sys-apps/npm/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>ramereth@gentoo.org</email>
+ <name>Lance Albertson</name>
+ </maintainer>
+ <longdescription lang="en">
+ npm is a package manager for node. You can use it to install and publish
+ your node programs. It manages dependencies and does other cool stuff.
+ </longdescription>
+</pkgmetadata>
+
View
32 sys-apps/npm/npm-1.0.26.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit git-2
+
+DESCRIPTION="A package manager for nodejs"
+HOMEPAGE="http://npmjs.org/"
+SRC_URI=""
+EGIT_REPO_URI="git://github.com/isaacs/npm.git"
+EGIT_COMMIT="v${PV}"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="net-libs/nodejs
+ dev-vcs/git"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ # nasty hack around the lack of DESTDIR not working. npm uses relative links
+ # anyways so this should work.
+ econf --prefix="${D}/usr"
+}
+
+src_install() {
+ node cli.js install -g -f --unsafe-perm
+}
Please sign in to comment.
Something went wrong with that request. Please try again.