the check on the doc use flag is not implemented correctly: original ebuild code: IUSE="" ruby_add_bdepend "doc? ( dev-ruby/rdoc )" all_ruby_compile() { rdoc-2 -o htmldoc/rdoc --main README --title kramdown lib README || die "Unable to generate documentation" } better ebuild code: IUSE="doc" ruby_add_bdepend "doc? ( dev-ruby/rdoc )" all_ruby_compile() { if use doc; then rdoc-2 -o htmldoc/rdoc --main README --title kramdown lib README || die "Unable to generate documentation" fi } Reproducible: Always Steps to Reproduce: 1.USE="-doc" emerge -av dev-ruby/kramdown Actual Results: emerge may fail because rdoc is not installed and docs are attempted to be build Expected Results: docs should not be build
This is now fixed in dev-ruby/kramdown-0.13.3. Thanks for the report and proposed fix.