diff options
Diffstat (limited to 'lang/ruby18/Makefile')
-rw-r--r-- | lang/ruby18/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lang/ruby18/Makefile b/lang/ruby18/Makefile index 33ddd6bcbeb5..b25a2b6ce04f 100644 --- a/lang/ruby18/Makefile +++ b/lang/ruby18/Makefile @@ -86,9 +86,13 @@ post-install: ${LN} -fs ${RUBY_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX}${RUBY_R} ${RUBY_WITHOUT_SUFFIX}${RUBY_R}; \ ${LN} -fs ruby${RUBY_DEFAULT_SUFFIX}${RUBY_R}.1 ${PREFIX}/man/man1/ruby${RUBY_R}.1; \ fi - ${LN} -fs ${IRB_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX} ${IRB_WITHOUT_SUFFIX} + if [ -x ${RUBY_WITHOUT_SUFFIX} ]; then \ + ${LN} -fs ${IRB_WITHOUT_SUFFIX}${RUBY_DEFAULT_SUFFIX} ${IRB_WITHOUT_SUFFIX}; \ + fi .if !empty(RUBY_R) - ${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R} + if [ -x ${RUBY_WITHOUT_SUFFIX}${RUBY_R} ]; then \ + ${LN} -fs ${IRB_WITH_SUFFIX} ${IRB_WITHOUT_SUFFIX}${RUBY_R}; \ + fi .endif ${LDCONFIG} -m ${LOCALBASE}/lib ${RUBY_WITH_SUFFIX} ${RUBY_FLAGS} -i -p \ |