diff options
author | taca <taca@pkgsrc.org> | 2005-10-16 15:18:02 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2005-10-16 15:18:02 +0000 |
commit | b47856891565cca333bb141563e6fa480d170da8 (patch) | |
tree | 7de1e7bd55c421f1b3c76618e147b4655b149d7e /lang/ruby/buildlink3.mk | |
parent | 15dacf222a90301c862609b8ac65e39854018895 (diff) | |
download | pkgsrc-b47856891565cca333bb141563e6fa480d170da8.tar.gz |
Buildlink ${RUBY} to ${BUILDLINK_DIR}/bin/ruby. It may help some
configure scripts to detect ruby executable.
This codes are kindly provided by jlam@.
Diffstat (limited to 'lang/ruby/buildlink3.mk')
-rw-r--r-- | lang/ruby/buildlink3.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/ruby/buildlink3.mk b/lang/ruby/buildlink3.mk index befc5877e49..874bc2f93ac 100644 --- a/lang/ruby/buildlink3.mk +++ b/lang/ruby/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.4 2005/03/06 16:44:04 taca Exp $ +# $NetBSD: buildlink3.mk,v 1.5 2005/10/16 15:18:02 taca Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ RUBY_BUILDLINK3_MK:= ${RUBY_BUILDLINK3_MK}+ @@ -21,6 +21,15 @@ BUILDLINK_PKGSRCDIR.${RUBY_BASE}?= ../../lang/${RUBY_BASE} BUILDLINK_FILES.${RUBY_BASE}+= lib/libruby${RUBY_VER}.* BUILDLINK_FILES.${RUBY_BASE}+= lib/ruby/${RUBY_VER_DIR}/${RUBY_ARCH}/*.h +BUILDLINK_TARGETS+= buildlink-bin-ruby + +buildlink-bin-ruby: + ${_PKG_SILENT}${_PKG_DEBUG} \ + f=${BUILDLINK_PREFIX.${RUBY_BASE}:Q}"/bin/ruby${RUBY_VER}"; \ + if ${TEST} -f $$f; then \ + ${LN} -s $$f ${BUILDLINK_DIR}/bin/ruby; \ + fi + .endif # RUBY_BUILDLINK3_MK BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} |