All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] ruby: break out ri-docs and rdoc into separate packages
@ 2016-02-15 13:49 Ioan-Adrian Ratiu
  2016-02-15 14:19 ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: Ioan-Adrian Ratiu @ 2016-02-15 13:49 UTC (permalink / raw)
  To: openembedded-core; +Cc: Ben Shelton

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>
---
 meta/recipes-devtools/ruby/ruby_2.2.2.bb | 13 +++++++++++--
 1 file 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 9b807a7..50a0638 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"
+
+FILES_${PN} += "${datadir}/rubygems"
 
 BBCLASSEXTEND = "native"
-- 
2.7.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] ruby: break out ri-docs and rdoc into separate packages
  2016-02-15 13:49 [PATCH 1/1] ruby: break out ri-docs and rdoc into separate packages Ioan-Adrian Ratiu
@ 2016-02-15 14:19 ` Burton, Ross
  2016-02-15 14:20   ` Burton, Ross
  2016-02-15 15:27   ` Ioan-Adrian Ratiu
  0 siblings, 2 replies; 4+ messages in thread
From: Burton, Ross @ 2016-02-15 14:19 UTC (permalink / raw)
  To: Ioan-Adrian Ratiu; +Cc: Ben Shelton, OE-core

[-- Attachment #1: Type: text/plain, Size: 317 bytes --]

On 15 February 2016 at 13:49, Ioan-Adrian Ratiu <adrian.ratiu@ni.com> wrote:

> +SUMMARY_${PN}-rdoc = "RDoc documentation generator from Ruby source"
> +RDEPENDS_${PN}-rdoc = "${PN}"
> +FILES_${PN}-rdoc += "${libdir}/ruby/rdoc"
>

Did you mean $libdir/ruby/*/rdoc/?  This package doesn't get created.

Ross

[-- Attachment #2: Type: text/html, Size: 805 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] ruby: break out ri-docs and rdoc into separate packages
  2016-02-15 14:19 ` Burton, Ross
@ 2016-02-15 14:20   ` Burton, Ross
  2016-02-15 15:27   ` Ioan-Adrian Ratiu
  1 sibling, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2016-02-15 14:20 UTC (permalink / raw)
  To: Ioan-Adrian Ratiu; +Cc: Ben Shelton, OE-core

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

On 15 February 2016 at 14:19, Burton, Ross <ross.burton@intel.com> wrote:

> Did you mean $libdir/ruby/*/rdoc/?  This package doesn't get created.
>

Also if you're splitting out rdoc, surely $bindir/rdoc would be a good
thing to move too?

Ross

[-- Attachment #2: Type: text/html, Size: 649 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] ruby: break out ri-docs and rdoc into separate packages
  2016-02-15 14:19 ` Burton, Ross
  2016-02-15 14:20   ` Burton, Ross
@ 2016-02-15 15:27   ` Ioan-Adrian Ratiu
  1 sibling, 0 replies; 4+ messages in thread
From: Ioan-Adrian Ratiu @ 2016-02-15 15:27 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Mon, 15 Feb 2016 14:19:43 +0000
"Burton, Ross" <ross.burton@intel.com> wrote:

> On 15 February 2016 at 13:49, Ioan-Adrian Ratiu <adrian.ratiu@ni.com> wrote:
> 
> > +SUMMARY_${PN}-rdoc = "RDoc documentation generator from Ruby source"
> > +RDEPENDS_${PN}-rdoc = "${PN}"
> > +FILES_${PN}-rdoc += "${libdir}/ruby/rdoc"
> >
> 
> Did you mean $libdir/ruby/*/rdoc/?  This package doesn't get created.

Yes, sorry. It was a mistype on my part, I'll resubmit.

> 
> Ross



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-15 15:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-15 13:49 [PATCH 1/1] ruby: break out ri-docs and rdoc into separate packages Ioan-Adrian Ratiu
2016-02-15 14:19 ` Burton, Ross
2016-02-15 14:20   ` Burton, Ross
2016-02-15 15:27   ` Ioan-Adrian Ratiu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.