Skip to content

Instantly share code, notes, and snippets.

@iangreenleaf
Created August 21, 2011 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iangreenleaf/1160281 to your computer and use it in GitHub Desktop.
Save iangreenleaf/1160281 to your computer and use it in GitHub Desktop.
npm ebuild
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
inherit eutils git
DESCRIPTION="A package manager for nodejs."
HOMEPAGE="https://github.com/isaacs/npm/"
SRC_URI=""
EGIT_REPO_URI="https://github.com/isaacs/npm.git"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND} net-libs/nodejs"
src_configure() {
econf --prefix="${D}"
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc README.md CHANGES || die
dodoc doc/*.md || die
for m in man1/*.1
do
newman "$m" "npm-`basename "$m"`"
done || die
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment