pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ruby ruby: make sure there isn't already a ruby i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a5583019b25d
branches:  trunk
changeset: 457730:a5583019b25d
user:      markd <markd%pkgsrc.org@localhost>
date:      Tue Aug 31 11:37:18 2021 +0000

description:
ruby: make sure there isn't already a ruby in buildlink before linking

diffstat:

 lang/ruby/buildlink3.mk |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 3566cadfee8a -r a5583019b25d lang/ruby/buildlink3.mk
--- a/lang/ruby/buildlink3.mk   Tue Aug 31 11:33:04 2021 +0000
+++ b/lang/ruby/buildlink3.mk   Tue Aug 31 11:37:18 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.19 2018/01/07 13:04:20 rillig Exp $
+# $NetBSD: buildlink3.mk,v 1.20 2021/08/31 11:37:18 markd Exp $
 
 BUILDLINK_TREE+=       ${RUBY_BASE}
 
@@ -21,6 +21,7 @@
        ${RUN} \
        f=${BUILDLINK_PREFIX.${RUBY_BASE}}"/bin/ruby${RUBY_SUFFIX}"; \
        if ${TEST} -f $$f; then \
+               ${RM} -f ${BUILDLINK_DIR}/bin/ruby; \
                ${LN} -s $$f ${BUILDLINK_DIR}/bin/ruby; \
        fi
 



Home | Main Index | Thread Index | Old Index