summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIoan-Adrian Ratiu <adrian.ratiu@ni.com>2016-02-15 17:32:48 +0200
committerArmin Kuster <akuster808@gmail.com>2018-02-22 10:53:19 -0800
commit076e7e5bcbccf123874e11b8f6f5daee5e7d9ac8 (patch)
tree669786f04b79f4eb26e2358377e89fefa6c2f3db
parent6af6e285e8bed16b02dee27c8466e9f4f9f21e30 (diff)
downloadopenembedded-core-contrib-076e7e5bcbccf123874e11b8f6f5daee5e7d9ac8.tar.gz
openembedded-core-contrib-076e7e5bcbccf123874e11b8f6f5daee5e7d9ac8.tar.bz2
openembedded-core-contrib-076e7e5bcbccf123874e11b8f6f5daee5e7d9ac8.zip
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 <ben.shelton@ni.com> Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit adc53d40932151b4822ce2ac74cb31306684ba95) Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta/recipes-devtools/ruby/ruby_2.2.2.bb13
1 files changed, 11 insertions, 2 deletions
diff --git a/meta/recipes-devtools/ruby/ruby_2.2.2.bb b/meta/recipes-devtools/ruby/ruby_2.2.2.bb
index 78c943cc6f..ae9b3b05ee 100644
--- a/meta/recipes-devtools/ruby/ruby_2.2.2.bb
+++ b/meta/recipes-devtools/ruby/ruby_2.2.2.bb
@@ -31,8 +31,17 @@ 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"
FILES_${PN}-dbg += "${libdir}/ruby/*/.debug \
${libdir}/ruby/*/*/.debug \