rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / ruby / ruby-23 / patches / 06-common-mk.patch
blob292afe8f7bbd87ff809a226d6e48e2b640f2b9db
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
7 @@ -421,9 +421,17 @@
8 post-install-gem::
9 @$(NULLCMD)
11 +# Eliminate full pathname from source directory references
12 +# in RDoc ri files.
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))
16 rdoc: PHONY main
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); \
21 + fi
22 + $(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --encoding=UTF-8 --no-force-update --all --ri --op "$(RDOCOUT)" $(RDOCFLAGS) "$(srcdir_base)"
24 html: PHONY main
25 @echo Generating RDoc HTML files