[dev-libs/Ice] bump python and ruby, untested
This commit is contained in:
parent
bc1580781a
commit
ccc914a7bb
@ -3,10 +3,10 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
RUBY_OPTIONAL="yes"
|
||||
USE_RUBY="ruby31"
|
||||
USE_RUBY="ruby32"
|
||||
|
||||
PHP_EXT_NAME="IcePHP"
|
||||
PHP_EXT_INI="yes"
|
||||
@ -39,7 +39,7 @@ RDEPEND=">=app-arch/bzip2-1.0.5
|
||||
dev-libs/openssl:0=
|
||||
virtual/libcrypt:=
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
ruby? ( $(ruby_implementation_depend ruby31) )"
|
||||
ruby? ( $(ruby_implementation_depend ruby32) )"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
@ -99,22 +99,22 @@ src_configure() {
|
||||
fi
|
||||
|
||||
if use ruby; then
|
||||
SITERUBY="$(ruby31 -r rbconfig -e 'print RbConfig::CONFIG["sitelibdir"]')"
|
||||
SITERUBYARCH="$(ruby31 -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')"
|
||||
SITERUBY="$(ruby32 -r rbconfig -e 'print RbConfig::CONFIG["sitelibdir"]')"
|
||||
SITERUBYARCH="$(ruby32 -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')"
|
||||
MAKE_RULES_RUBY=(
|
||||
"install_rubydir=\"${EPREFIX}/${SITERUBY}\""
|
||||
"install_rubylibdir=\"${EPREFIX}/${SITERUBYARCH}\""
|
||||
)
|
||||
|
||||
# make it use ruby31 only
|
||||
# make it use ruby32 only
|
||||
sed -i \
|
||||
-e 's|RUBY ?= ruby|\031|' \
|
||||
-e 's|RUBY ?= ruby|\032|' \
|
||||
ruby/config/Make.rules || die
|
||||
sed -i \
|
||||
-e 's|env ruby|\031|' \
|
||||
-e 's|env ruby|\032|' \
|
||||
ruby/config/s2rb.rb || die
|
||||
sed -i \
|
||||
-e 's|env ruby|\031|' \
|
||||
-e 's|env ruby|\032|' \
|
||||
ruby/scripts/slice2rb || die
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user