On Tue, 13 Jan 2004 22:51:22 +0900
Dave Thomas <dave / pragprog.com> wrote:

> 
> On Jan 13, 2004, at 0:46, NAKAMURA, Hiroshi wrote:
> 
> > 2. "./ruby rdoc" might require libruby.so, syck.so, etc.  The trick
> >   in rubytest.rb cannot do everything (such as digest/digest/md5).
> >   I know current depending libs of rdoc does not require digest/md5,
> >   but it could be someday I think.
> 
> The surprising thing to me is that I thought YAML could fall back on 
> using the Ruby-based code if the .so was not available. If that was the 
> case, the RDoc would run with no special additional work. Is my 
> understanding of YAML wrong?

This target almost works, but installs ri in $DESTDIR/$DESTDIR/usr/local/share/ri :

    LD_LIBRARY_PATH=$(DESTDIR)/usr/local/lib $(DESTDIR)/usr/local/bin/ruby -I\
    $(DESTDIR)/usr/local/lib/ruby/1.9 \
    -I $(DESTDIR)/usr/local/lib/ruby/1.9/sparc-solaris2.8 \
    $(srcdir)/bin/rdoc --all --ri-system $(srcdir)

This target works perfectly, though:

    LD_LIBRARY_PATH=$$PWD ./ruby -I lib -I ext/syck $(srcdir)/bin/rdoc --all --ri-system $(srcdir)

Jim