1 # In-house patch created to keep inappropriate full pathnames
2 # on build systems from being included in the ri Ruby doc files.
3 # Patch is Solaris specific and not appropriate for upstream use.
5 --- ruby-2.2.0/common.mk.~1~ 2015-01-16 12:46:40.711222113 +0300
6 +++ ruby-2.2.0/common.mk 2015-01-16 12:48:12.119864467 +0300
11 +# Eliminate full pathname from source directory references
13 +# Create a symlink here to the source directory so
14 +# rdoc can reference it from here without the full pathname
15 +srcdir_base=$(notdir $(srcdir))
17 @echo Generating RDoc documentation
18 - $(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --root "$(srcdir)" --page-dir "$(srcdir)/doc" --encoding=UTF-8 --no-force-update --all --ri --op "$(RDOCOUT)" --debug $(RDOCFLAGS) "$(srcdir)"
19 + if [ ! -e $(srcdir_base) ]; then \
20 + /usr/bin/ln -s $(srcdir); \
22 + $(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --encoding=UTF-8 --no-force-update --all --ri --op "$(RDOCOUT)" $(RDOCFLAGS) "$(srcdir_base)"
25 @echo Generating RDoc HTML files