From: Ioan-Adrian Ratiu Date: Mon, 15 Feb 2016 15:32:48 +0000 (+0200) Subject: ruby: break out ri-docs and rdoc into separate packages X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~26917 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adc53d40932151b4822ce2ac74cb31306684ba95;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git ruby: break out ri-docs and rdoc into separate packages The ri (Ruby Interactive) documentation for the Ruby standard library consumes a significant amount of space on disk. It is useful to developers, but is usually not necessary for users who just want to run applications written in Ruby. Break it out into a separate package so Ruby can be installed without it. Also break out the rdoc documentation generator in its own package. Signed-off-by: Ben Shelton Signed-off-by: Ioan-Adrian Ratiu Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/ruby/ruby_2.2.2.bb b/meta/recipes-devtools/ruby/ruby_2.2.2.bb index 9b807a7cd96..67150235653 100644 --- a/meta/recipes-devtools/ruby/ruby_2.2.2.bb +++ b/meta/recipes-devtools/ruby/ruby_2.2.2.bb @@ -31,7 +31,16 @@ do_install() { oe_runmake 'DESTDIR=${D}' install } -FILES_${PN} += "${datadir}/rubygems \ - ${datadir}/ri" +PACKAGES =+ "${PN}-ri-docs ${PN}-rdoc" + +SUMMARY_${PN}-ri-docs = "ri (Ruby Interactive) documentation for the Ruby standard library" +RDEPENDS_${PN}-ri-docs = "${PN}" +FILES_${PN}-ri-docs += "${datadir}/ri" + +SUMMARY_${PN}-rdoc = "RDoc documentation generator from Ruby source" +RDEPENDS_${PN}-rdoc = "${PN}" +FILES_${PN}-rdoc += "${libdir}/ruby/*/rdoc ${bindir}/rdoc" + +FILES_${PN} += "${datadir}/rubygems" BBCLASSEXTEND = "native"