Without fixing 'rake doc', the documentation is never built, and the
'doc' directory does not exist; this caused pushd/popd to fail.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
RUBY_FAKEGEM_TASK_TEST=""
-RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_TASK_DOC="doc"
RUBY_FAKEGEM_EXTRADOC="ChangeLog.txt README.rdoc TODO.rdoc"
all_ruby_install() {
all_fakegem_install
- pushd doc &>/dev/null
- dohtml -r .
- popd &>/dev/null
+ if use doc; then
+ # If the doc build fails, the doc directory might not exist
+ pushd doc &>/dev/null || die "pushd doc failed"
+ dohtml -r .
+ popd &>/dev/null
+ fi
}