Created
August 21, 2011 07:18
-
-
Save iangreenleaf/1160281 to your computer and use it in GitHub Desktop.
npm ebuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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