# In-house patch created to keep inappropriate full pathnames
# on build systems from being included in the ri Ruby doc files.
# Patch is Solaris specific and not appropriate for upstream use.
--- ruby-2.1.5-orig/common.mk Wed Sep 10 07:07:46 2014
+++ ruby-2.1.5/common.mk Thu Jan 15 15:33:07 2015
@@ -416,9 +416,17 @@
post-install-gem::
@$(NULLCMD)
+# Eliminate full pathname from source directory references
+# in RDoc ri files.
+# Create a symlink here to the source directory so
+# rdoc can reference it from here without the full pathname
+srcdir_base=$(notdir $(srcdir))
rdoc: PHONY main
@echo Generating RDoc documentation
- $(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --root "$(srcdir)" --page-dir "$(srcdir)/doc" --encoding=UTF-8 --no-force-update --all --ri --op "$(RDOCOUT)" --debug $(RDOCFLAGS) "$(srcdir)"
+ if [ ! -e $(srcdir_base) ]; then \
+ /usr/bin/ln -s $(srcdir); \
+ fi
+ $(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --root "$(srcdir)" --page-dir "$(srcdir)/doc" --encoding=UTF-8 --no-force-update --all --ri --op "$(RDOCOUT)" --debug $(RDOCFLAGS) "$(srcdir_base)"
rdoc-coverage: PHONY main
@echo Generating RDoc coverage report