diff options
author | knu <knu@FreeBSD.org> | 2000-10-22 03:57:53 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2000-10-22 03:57:53 +0800 |
commit | 87a7352a825a6e4be5fff92a909cf4fdcd3260ff (patch) | |
tree | 777915befadd3d0ec58d802e4da95e1f09c42515 /Mk/bsd.ruby.mk | |
parent | 419cff1b384a51729a456d707019379b553f7cae (diff) | |
download | freebsd-ports-gnome-87a7352a825a6e4be5fff92a909cf4fdcd3260ff.tar.gz freebsd-ports-gnome-87a7352a825a6e4be5fff92a909cf4fdcd3260ff.tar.zst freebsd-ports-gnome-87a7352a825a6e4be5fff92a909cf4fdcd3260ff.zip |
Check if ${RUBY} exists before running it.
Reported by: fenner, asami
Diffstat (limited to 'Mk/bsd.ruby.mk')
-rw-r--r-- | Mk/bsd.ruby.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk index 7e81e22620f3..64e24e5c0289 100644 --- a/Mk/bsd.ruby.mk +++ b/Mk/bsd.ruby.mk @@ -161,9 +161,13 @@ PLIST_SUB+= RUBY_VERSION="${RUBY_VERSION}" \ .if defined(RUBY_REQUIRE) USE_RUBY= yes +.if exists(${RUBY}) RUBY_PROVIDED!= ${RUBY} -e '\ Ruby = ${RUBY_VERSION_CODE}; \ value = begin; ${RUBY_REQUIRE}; end and puts value' +.else +RUBY_PROVIDED= "should be" # the latest version is going to be installed +.endif .if empty(RUBY_PROVIDED) .undef RUBY_PROVIDED |