diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-11-16 12:01:39 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2011-11-16 19:00:22 +0100 |
commit | 071bbbc40127afcaec75fc0ae31814344e5aa9c7 (patch) | |
tree | 957584862e3292475869c3fea6b9bf3ddf6c22c6 /net-libs/npm | |
parent | 3e437c5d5dac8e02403a49e6f105151b5d9cb1ef (diff) | |
download | overlay-071bbbc40127afcaec75fc0ae31814344e5aa9c7.tar.gz overlay-071bbbc40127afcaec75fc0ae31814344e5aa9c7.tar.xz overlay-071bbbc40127afcaec75fc0ae31814344e5aa9c7.zip |
net-libs/npm: added doc useflag
Diffstat (limited to '')
-rw-r--r-- | net-libs/npm/Manifest | 2 | ||||
-rw-r--r-- | net-libs/npm/npm-1.0.105.ebuild | 19 |
2 files changed, 15 insertions, 6 deletions
diff --git a/net-libs/npm/Manifest b/net-libs/npm/Manifest index 8c2e6ac..77c41cf 100644 --- a/net-libs/npm/Manifest +++ b/net-libs/npm/Manifest @@ -1,2 +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 +EBUILD npm-1.0.105.ebuild 989 RMD160 77909108aa5ea67607d888334735a1b03acef65c SHA1 a995763521570f5a3ea480c78062683b32e6460a SHA256 3d349c1bf10b12e74660ef2d005af79ebc4ef9462e5dceaa1cdbef80d3e9a648 diff --git a/net-libs/npm/npm-1.0.105.ebuild b/net-libs/npm/npm-1.0.105.ebuild index f5fcb04..ef9ff0b 100644 --- a/net-libs/npm/npm-1.0.105.ebuild +++ b/net-libs/npm/npm-1.0.105.ebuild @@ -12,7 +12,7 @@ SRC_URI="http://registry.npmjs.org/npm/-/${P}.tgz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="" +IUSE="doc" DEPEND="" RDEPEND="${DEPEND} net-libs/nodejs" @@ -25,14 +25,23 @@ src_configure() { src_install() { emake DESTDIR="${D}usr/" install || die - dodoc README.md CHANGES || die - dodoc -r doc/ || 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 + 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 + sed -i "s~@PREFIX@~${ROOT}usr/~" "${ROOT}usr/lib/node_modules/npm/npmrc" } |