diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-11-15 18:43:12 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2011-11-16 00:39:46 +0100 |
commit | 3e437c5d5dac8e02403a49e6f105151b5d9cb1ef (patch) | |
tree | 76a685e76c71919d44679f8b19509df268f8bcf1 /net-libs | |
parent | 51162e361ac5b8fe4e02cfcf290522f98e10d569 (diff) | |
download | overlay-3e437c5d5dac8e02403a49e6f105151b5d9cb1ef.tar.gz overlay-3e437c5d5dac8e02403a49e6f105151b5d9cb1ef.tar.xz overlay-3e437c5d5dac8e02403a49e6f105151b5d9cb1ef.zip |
net-libs/npm: added ebuild
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/npm/Manifest | 2 | ||||
-rw-r--r-- | net-libs/npm/npm-1.0.105.ebuild | 38 |
2 files changed, 40 insertions, 0 deletions
diff --git a/net-libs/npm/Manifest b/net-libs/npm/Manifest new file mode 100644 index 0000000..8c2e6ac --- /dev/null +++ b/net-libs/npm/Manifest @@ -0,0 +1,2 @@ +DIST npm-1.0.105.tgz 1187840 RMD160 b1b58bed0296233e8eee906370c3f4f7f269e187 SHA1 782bfbd77b093d4fa70f1eee7d47537fc1796c81 SHA256 61a4f1c095131a26c377003ec70c50780af0d9b8bb758498d2bdf844b5bbbc40 +EBUILD npm-1.0.105.ebuild 748 RMD160 3e3706117cc5cae78b293b139890520a79f35cba SHA1 b42d744fe6680632eb0278ea1dbb20ea99c0fe5b SHA256 294f81c681600eb8439890d33259c75f1567a49eafd2cb0ceb1894824c971fcd diff --git a/net-libs/npm/npm-1.0.105.ebuild b/net-libs/npm/npm-1.0.105.ebuild new file mode 100644 index 0000000..f5fcb04 --- /dev/null +++ b/net-libs/npm/npm-1.0.105.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +inherit eutils + +DESCRIPTION="A package manager for nodejs." +HOMEPAGE="http://npmjs.org" +SRC_URI="http://registry.npmjs.org/npm/-/${P}.tgz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND} net-libs/nodejs" + +S="${WORKDIR}/package" + +src_configure() { + econf --prefix="${D}usr/" || die +} + +src_install() { + emake DESTDIR="${D}usr/" install || die + dodoc README.md CHANGES || die + dodoc -r doc/ || die + + # fix npm paths + sed -i "s~${D}usr~@PREFIX@~" ${D}usr/lib/node_modules/npm/npmrc +} + +pkg_postinst() { + #fix npm paths + sed -i "s~@PREFIX@~${ROOT}usr/~" ${ROOT}usr/lib/node_modules/npm/npmrc +} |