diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2000-10-21 19:57:53 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2000-10-21 19:57:53 +0000 |
commit | af0e61555b07d90dae9b9c95e38bf57017210907 (patch) | |
tree | 5af21c8b0b4ed5074f98ffc21adf7ed409b058e5 /Mk/bsd.ruby.mk | |
parent | a5c9ea162b9c1314e1abfc4186f7bf1f941b4041 (diff) | |
download | ports-af0e61555b07d90dae9b9c95e38bf57017210907.tar.gz ports-af0e61555b07d90dae9b9c95e38bf57017210907.zip |
Check if ${RUBY} exists before running it.
Reported by: fenner, asami
Notes
Notes:
svn path=/head/; revision=34084
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 |