components/ruby/ruby-21/patches/03-common_mk.patch
changeset 4210 d367c184f47f
equal deleted inserted replaced
4209:107a604ac200 4210:d367c184f47f
       
     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.
       
     4 
       
     5 diff -ru ruby-2.1.5-orig/common.mk ruby-2.1.5/common.mk
       
     6 --- ruby-2.1.5-orig/common.mk	Wed Sep 10 07:07:46 2014
       
     7 +++ ruby-2.1.5/common.mk	Thu Jan 15 15:33:07 2015
       
     8 @@ -416,9 +416,17 @@
       
     9  post-install-gem::
       
    10  	@$(NULLCMD)
       
    11  
       
    12 +# Eliminate full pathname from source directory references
       
    13 +# in RDoc ri files.
       
    14 +# Create a symlink here to the source directory so
       
    15 +# rdoc can reference it from here without the full pathname
       
    16 +srcdir_base=$(notdir $(srcdir))
       
    17  rdoc: PHONY main
       
    18  	@echo Generating RDoc documentation
       
    19 -	$(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --root "$(srcdir)" --page-dir "$(srcdir)/doc" --encoding=UTF-8 --no-force-update --all --ri --op "$(RDOCOUT)" --debug $(RDOCFLAGS) "$(srcdir)"
       
    20 +	if [ ! -e $(srcdir_base) ]; then \
       
    21 +	    /usr/bin/ln -s $(srcdir); \
       
    22 +	fi
       
    23 +	$(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)"
       
    24  
       
    25  rdoc-coverage: PHONY main
       
    26  	@echo Generating RDoc coverage report