[dev-libs/Ice] sync with tree
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
|
||||
RUBY_OPTIONAL="yes"
|
||||
USE_RUBY="ruby32"
|
||||
USE_RUBY="ruby34"
|
||||
|
||||
PHP_EXT_NAME="IcePHP"
|
||||
PHP_EXT_INI="yes"
|
||||
@@ -14,7 +14,7 @@ PHP_EXT_ZENDEXT="no"
|
||||
|
||||
PHP_EXT_OPTIONAL_USE=php
|
||||
|
||||
USE_PHP="php8-1 php8-2 php8-3"
|
||||
USE_PHP="php8-2 php8-3 php8-4 php8-5"
|
||||
|
||||
EGIT_REPO_URI="https://github.com/zeroc-ice/ice.git"
|
||||
EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}"
|
||||
@@ -23,7 +23,8 @@ EGIT_BRANCH="3.7"
|
||||
inherit php-ext-source-r3 python-r1 ruby-ng toolchain-funcs git-r3
|
||||
|
||||
DESCRIPTION="ICE middleware C++ library and generator tools"
|
||||
HOMEPAGE="https://zeroc.com/products/ice"
|
||||
HOMEPAGE="https://zeroc.com/ice"
|
||||
S="${WORKDIR}/${P,}"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0/37"
|
||||
KEYWORDS=""
|
||||
@@ -39,7 +40,7 @@ RDEPEND=">=app-arch/bzip2-1.0.5
|
||||
dev-libs/openssl:0=
|
||||
virtual/libcrypt:=
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
ruby? ( $(ruby_implementation_depend ruby32) )"
|
||||
ruby? ( $(ruby_implementation_depend ruby34) )"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
${PYTHON_DEPS}
|
||||
@@ -49,11 +50,11 @@ DEPEND="${RDEPEND}
|
||||
# Maintainer notes:
|
||||
# TODO: java bindings
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
PHP_EXT_S="${S}/php"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-3.7.8-fix-musl-build.patch"
|
||||
"${FILESDIR}/${PN}-3.7.8-python3.13.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
@@ -88,6 +89,7 @@ src_prepare() {
|
||||
|
||||
src_configure() {
|
||||
MAKE_RULES=(
|
||||
"CONFIGS=shared cpp11-shared"
|
||||
"embedded_runpath_prefix=\"${EPREFIX}/usr\""
|
||||
"OPTIMIZE=$(usex !debug)"
|
||||
"V=1"
|
||||
@@ -99,22 +101,22 @@ src_configure() {
|
||||
fi
|
||||
|
||||
if use ruby; then
|
||||
SITERUBY="$(ruby32 -r rbconfig -e 'print RbConfig::CONFIG["sitelibdir"]')"
|
||||
SITERUBYARCH="$(ruby32 -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')"
|
||||
SITERUBY="$(ruby34 -r rbconfig -e 'print RbConfig::CONFIG["sitelibdir"]')"
|
||||
SITERUBYARCH="$(ruby34 -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')"
|
||||
MAKE_RULES_RUBY=(
|
||||
"install_rubydir=\"${EPREFIX}/${SITERUBY}\""
|
||||
"install_rubylibdir=\"${EPREFIX}/${SITERUBYARCH}\""
|
||||
)
|
||||
|
||||
# make it use ruby32 only
|
||||
# make it use ruby34 only
|
||||
sed -i \
|
||||
-e 's|RUBY ?= ruby|\032|' \
|
||||
-e 's|RUBY ?= ruby|\034|' \
|
||||
ruby/config/Make.rules || die
|
||||
sed -i \
|
||||
-e 's|env ruby|\032|' \
|
||||
-e 's|env ruby|\034|' \
|
||||
ruby/config/s2rb.rb || die
|
||||
sed -i \
|
||||
-e 's|env ruby|\032|' \
|
||||
-e 's|env ruby|\034|' \
|
||||
ruby/scripts/slice2rb || die
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user