Skip to content

Commit

Permalink
npm - a package manager for node.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ramereth committed Aug 23, 2011
1 parent b0622a9 commit e873cdf
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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
14 changes: 14 additions & 0 deletions 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>

32 changes: 32 additions & 0 deletions 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
}

0 comments on commit e873cdf

Please sign in to comment.