aboutsummaryrefslogtreecommitdiffstats
path: root/dev-util
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-11-16 19:00:06 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2011-11-16 19:00:28 +0100
commit93b291cce8fd6ab130ab760ac61f7034834c87cf (patch)
tree656a7cf0ae68adc0a0fe04835f174b814daf13e2 /dev-util
parent071bbbc40127afcaec75fc0ae31814344e5aa9c7 (diff)
downloadoverlay-93b291cce8fd6ab130ab760ac61f7034834c87cf.tar.gz
overlay-93b291cce8fd6ab130ab760ac61f7034834c87cf.tar.xz
overlay-93b291cce8fd6ab130ab760ac61f7034834c87cf.zip
dev-util/npm: moved from net-libs
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/npm/Manifest2
-rw-r--r--dev-util/npm/npm-1.0.105.ebuild47
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-util/npm/Manifest b/dev-util/npm/Manifest
new file mode 100644
index 0000000..77c41cf
--- /dev/null
+++ b/dev-util/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 989 RMD160 77909108aa5ea67607d888334735a1b03acef65c SHA1 a995763521570f5a3ea480c78062683b32e6460a SHA256 3d349c1bf10b12e74660ef2d005af79ebc4ef9462e5dceaa1cdbef80d3e9a648
diff --git a/dev-util/npm/npm-1.0.105.ebuild b/dev-util/npm/npm-1.0.105.ebuild
new file mode 100644
index 0000000..ef9ff0b
--- /dev/null
+++ b/dev-util/npm/npm-1.0.105.ebuild
@@ -0,0 +1,47 @@
+# 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="doc"
+
+DEPEND=""
+RDEPEND="${DEPEND} net-libs/nodejs"
+
+S="${WORKDIR}/package"
+
+src_configure() {
+ econf --prefix="${D}usr/" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}usr/" install || die
+
+ # remove doc directories form wrong pathq
+ rm -rf "${D}usr/lib/node_modules/npm/doc/"
+ rm -rf "${D}usr/lib/node_modules/npm/html/"
+
+ dodoc README.md CHANGES AUTHORS || die
+ if use doc ; then
+ # install doc and api html pages
+ dodoc -r html/doc/ || die
+ dodoc -r html/api/ || die
+ fi
+
+ # 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"
+}