node: link npm manpages

Fixes Homebrew/homebrew#22397.
master
Jack Nagel 2013-11-17 14:49:43 -06:00
parent 2804767442
commit 56d40d0914
1 changed files with 8 additions and 0 deletions

View File

@ -74,6 +74,14 @@ class Node < Formula
unless build.include? 'without-npm'
(lib/"node_modules/npm/npmrc").write("prefix = #{npm_prefix}\n")
# Link npm manpages
Pathname.glob("#{lib}/node_modules/npm/man/*").each do |man|
dir = send(man.basename)
man.children.each do |file|
dir.install_symlink(file.relative_path_from(dir))
end
end
end
end