mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 10:26:28 -04:00
- Fix issues with specifying ${RUBY} variable
PR: ports/170916 Reported by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
This commit is contained in:
parent
2081a511c6
commit
d370b8a9bf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351179
1 changed files with 4 additions and 4 deletions
|
@ -152,14 +152,14 @@ RUBY_VER?= ${RUBY_DEFAULT_VER}
|
|||
IGNORE= cannot install: you set the variable RUBY to "${RUBY}", but it does not seem to exist. Please specify an already installed ruby executable.
|
||||
.endif
|
||||
|
||||
_RUBY_TEST!= ${RUBY} -e 'begin; require "rbconfig"; rescue LoadError; puts "error"; end'
|
||||
.if !empty(_RUBY_TEST)
|
||||
_RUBY_TEST!= ${RUBY} -e 'begin; require "rbconfig"; puts "ok" ; rescue LoadError; puts "error"; end'
|
||||
.if !empty(_RUBY_TEST) && ${_RUBY_TEST} != "ok"
|
||||
IGNORE= cannot install: you set the variable RUBY to "${RUBY}", but it failed to include rbconfig. Please specify a properly installed ruby executable.
|
||||
.endif
|
||||
|
||||
_RUBY_CONFIG= ${RUBY} -r rbconfig -e 'C = Config::CONFIG' -e
|
||||
_RUBY_CONFIG= ${RUBY} -r rbconfig -e 'C = RbConfig::CONFIG' -e
|
||||
|
||||
RUBY_VERSION!= ${_RUBY_CONFIG} 'puts VERSION'
|
||||
RUBY_VERSION!= ${_RUBY_CONFIG} 'puts C["ruby_version"]'
|
||||
RUBY_SUFFIX?= # empty
|
||||
|
||||
RUBY_ARCH!= ${_RUBY_CONFIG} 'puts C["target"]'
|
||||
|
|
Loading…
Add table
Reference in a new issue