[dev-libs/Ice] forgot to push this, also yank py2k from live

This commit is contained in:
Robert Förster 2020-02-05 12:36:25 +01:00
parent 5351dbf3d6
commit 9f08ffcedd
3 changed files with 34 additions and 34 deletions

View File

@ -3,7 +3,7 @@
EAPI=7 EAPI=7
PYTHON_COMPAT=( python{2_7,3_6,3_7} ) PYTHON_COMPAT=( python{2_7,3_{6,7,8}} )
RUBY_OPTIONAL="yes" RUBY_OPTIONAL="yes"
USE_RUBY="ruby25" USE_RUBY="ruby25"
@ -21,9 +21,6 @@ BERKDB_SLOTS=( 6.2 6.1 5.3 5.1 4.8 )
inherit db-use mono-env php-ext-source-r3 python-r1 ruby-ng toolchain-funcs inherit db-use mono-env php-ext-source-r3 python-r1 ruby-ng toolchain-funcs
# for mono-env
unset SRC_URI
DESCRIPTION="ICE middleware C++ library and generator tools" DESCRIPTION="ICE middleware C++ library and generator tools"
HOMEPAGE="https://zeroc.com/products/ice" HOMEPAGE="https://zeroc.com/products/ice"
SRC_URI="https://github.com/zeroc-ice/ice/archive/v${PV}.tar.gz -> ${P}.tar.gz SRC_URI="https://github.com/zeroc-ice/ice/archive/v${PV}.tar.gz -> ${P}.tar.gz
@ -56,7 +53,7 @@ DEPEND="${RDEPEND}
# Maintainer notes: # Maintainer notes:
# TODO: java bindings # TODO: java bindings
S="${WORKDIR}/${P/I/i}" S="${WORKDIR}/${P,}"
PHP_EXT_S="${S}/php" PHP_EXT_S="${S}/php"
PATCHES=( PATCHES=(
@ -80,25 +77,25 @@ src_prepare() {
sed -i \ sed -i \
-e 's|-L\$\(libdir\)||' \ -e 's|-L\$\(libdir\)||' \
cpp/config/Make.rules || die "sed failed" cpp/config/Make.rules || die
sed -i \ sed -i \
-e 's|-O2 ||g' \ -e 's|-O2 ||g' \
-e 's|-Werror ||g' \ -e 's|-Werror ||g' \
cpp/config/Make.rules.Linux || die "sed failed" cpp/config/Make.rules.Linux || die
sed -i \ sed -i \
-e 's|install-common||' \ -e 's|install-common||' \
{cpp,csharp,php,python,ruby}/Makefile || die "sed failed" {cpp,csharp,php,python,ruby}/Makefile || die
sed -i \ sed -i \
-e 's|-f -root|-f -gacdir $(GAC_DIR) -root|' \ -e 's|-f -root|-f -gacdir $(GAC_DIR) -root|' \
csharp/config/Make.rules.cs || die "sed failed" csharp/config/Make.rules.cs || die
# skip mono tests, bug #498484 # skip mono tests, bug #498484
sed -i \ sed -i \
-e '/SUBDIRS/s|\ test||' \ -e '/SUBDIRS/s|\ test||' \
csharp/Makefile || die "sed failed" csharp/Makefile || die
# skip udp test due to multicast # skip udp test due to multicast
# skip IceGrid/admin bug #649850 # skip IceGrid/admin bug #649850
@ -108,17 +105,17 @@ src_prepare() {
# Glacier2/staticFiltering requires network access # Glacier2/staticFiltering requires network access
sed -i \ sed -i \
-e 's|allTests.py|allTests.py --rfilter=udp --rfilter=IceGrid\/admin --rfilter=IceSSL --rfilter=IceStorm\/single --rfilter=IceStorm\/stress --rfilter=IceUtil\/stacktrace --rfilter=Glacier2\/staticFiltering|' \ -e 's|allTests.py|allTests.py --rfilter=udp --rfilter=IceGrid\/admin --rfilter=IceSSL --rfilter=IceStorm\/single --rfilter=IceStorm\/stress --rfilter=IceUtil\/stacktrace --rfilter=Glacier2\/staticFiltering|' \
cpp/Makefile || die "sed failed" cpp/Makefile || die
# fails even on unicode locale # fails even on unicode locale
sed -i \ sed -i \
-e 's|allTests.py|allTests.py --rfilter=Slice\/unicodePaths|' \ -e 's|allTests.py|allTests.py --rfilter=Slice\/unicodePaths|' \
ruby/Makefile || die "sed failed" ruby/Makefile || die
# fix for x86 IceBox test # fix for x86 IceBox test
sed -i \ sed -i \
-e 's|"32"|""|' \ -e 's|"32"|""|' \
scripts/TestUtil.py || die "sed failed" scripts/TestUtil.py || die
} }
src_configure() { src_configure() {
@ -154,7 +151,7 @@ src_configure() {
-e "s|\(CXXFLAGS[[:space:]]*=\)|\1 ${CXXFLAGS}|" \ -e "s|\(CXXFLAGS[[:space:]]*=\)|\1 ${CXXFLAGS}|" \
-e "s|\(LDFLAGS[[:space:]]*=\)|\1 ${LDFLAGS}|" \ -e "s|\(LDFLAGS[[:space:]]*=\)|\1 ${LDFLAGS}|" \
-e "s|\(DB_LIBS[[:space:]]*=\) \-ldb_cxx|\1 -ldb_cxx-$(db_findver sys-libs/db:${BERKDB_VERSION})|" \ -e "s|\(DB_LIBS[[:space:]]*=\) \-ldb_cxx|\1 -ldb_cxx-$(db_findver sys-libs/db:${BERKDB_VERSION})|" \
cpp/config/Make.rules{,.Linux} python/config/Make.rules || die "sed failed" cpp/config/Make.rules{,.Linux} python/config/Make.rules || die
if use python; then if use python; then
local S="${S}/python" local S="${S}/python"
@ -172,16 +169,16 @@ src_configure() {
# make it use ruby25 only # make it use ruby25 only
sed -i \ sed -i \
-e 's|RUBY = ruby|\025|' \ -e 's|RUBY = ruby|\025|' \
ruby/config/Make.rules || die "sed failed" ruby/config/Make.rules || die
sed -i \ sed -i \
-e 's|env ruby|\025|' \ -e 's|env ruby|\025|' \
ruby/config/s2rb.rb || die "sed failed" ruby/config/s2rb.rb || die
sed -i \ sed -i \
-e 's|env ruby|\025|' \ -e 's|env ruby|\025|' \
ruby/scripts/slice2rb || die "sed failed" ruby/scripts/slice2rb || die
sed -i \ sed -i \
-e 's|output.write("ruby|\025|' \ -e 's|output.write("ruby|\025|' \
scripts/TestUtil.py || die "sed failed" scripts/TestUtil.py || die
fi fi
MAKE_RULES_MONO=( MAKE_RULES_MONO=(
@ -322,6 +319,7 @@ src_install() {
install_pythondir="\"${D}/$(python_get_sitedir)\"" \ install_pythondir="\"${D}/$(python_get_sitedir)\"" \
install_libdir="\"${D}/$(python_get_sitedir)\"" \ install_libdir="\"${D}/$(python_get_sitedir)\"" \
install install
python_optimize
} }
local S="${S}/python" local S="${S}/python"
python_foreach_impl installation python_foreach_impl installation

View File

@ -3,7 +3,7 @@
EAPI=7 EAPI=7
PYTHON_COMPAT=( python{2_7,3_6,3_7,3_8} ) PYTHON_COMPAT=( python3_{6,7,8} )
RUBY_OPTIONAL="yes" RUBY_OPTIONAL="yes"
USE_RUBY="ruby26" USE_RUBY="ruby26"
@ -82,25 +82,25 @@ src_prepare() {
sed -i \ sed -i \
-e 's|-L\$\(libdir\)||' \ -e 's|-L\$\(libdir\)||' \
cpp/config/Make.rules || die "sed failed" cpp/config/Make.rules || die
sed -i \ sed -i \
-e 's|-O2 ||g' \ -e 's|-O2 ||g' \
-e 's|-Werror ||g' \ -e 's|-Werror ||g' \
cpp/config/Make.rules.Linux || die "sed failed" cpp/config/Make.rules.Linux || die
sed -i \ sed -i \
-e 's|install-common||' \ -e 's|install-common||' \
{cpp,csharp,php,python,ruby}/Makefile || die "sed failed" {cpp,csharp,php,python,ruby}/Makefile || die
sed -i \ sed -i \
-e 's|-f -root|-f -gacdir $(GAC_DIR) -root|' \ -e 's|-f -root|-f -gacdir $(GAC_DIR) -root|' \
csharp/config/Make.rules.cs || die "sed failed" csharp/config/Make.rules.cs || die
# skip mono tests, bug #498484 # skip mono tests, bug #498484
sed -i \ sed -i \
-e '/SUBDIRS/s|\ test||' \ -e '/SUBDIRS/s|\ test||' \
csharp/Makefile || die "sed failed" csharp/Makefile || die
# skip udp test due to multicast # skip udp test due to multicast
# skip IceGrid/admin bug #649850 # skip IceGrid/admin bug #649850
@ -110,17 +110,17 @@ src_prepare() {
# Glacier2/staticFiltering requires network access # Glacier2/staticFiltering requires network access
sed -i \ sed -i \
-e 's|allTests.py|allTests.py --rfilter=udp --rfilter=IceGrid\/admin --rfilter=IceSSL --rfilter=IceStorm\/single --rfilter=IceStorm\/stress --rfilter=IceUtil\/stacktrace --rfilter=Glacier2\/staticFiltering|' \ -e 's|allTests.py|allTests.py --rfilter=udp --rfilter=IceGrid\/admin --rfilter=IceSSL --rfilter=IceStorm\/single --rfilter=IceStorm\/stress --rfilter=IceUtil\/stacktrace --rfilter=Glacier2\/staticFiltering|' \
cpp/Makefile || die "sed failed" cpp/Makefile || die
# fails even on unicode locale # fails even on unicode locale
sed -i \ sed -i \
-e 's|allTests.py|allTests.py --rfilter=Slice\/unicodePaths|' \ -e 's|allTests.py|allTests.py --rfilter=Slice\/unicodePaths|' \
ruby/Makefile || die "sed failed" ruby/Makefile || die
# fix for x86 IceBox test # fix for x86 IceBox test
sed -i \ sed -i \
-e 's|"32"|""|' \ -e 's|"32"|""|' \
scripts/TestUtil.py || die "sed failed" scripts/TestUtil.py || die
} }
src_configure() { src_configure() {
@ -156,7 +156,7 @@ src_configure() {
-e "s|\(CXXFLAGS[[:space:]]*=\)|\1 ${CXXFLAGS}|" \ -e "s|\(CXXFLAGS[[:space:]]*=\)|\1 ${CXXFLAGS}|" \
-e "s|\(LDFLAGS[[:space:]]*=\)|\1 ${LDFLAGS}|" \ -e "s|\(LDFLAGS[[:space:]]*=\)|\1 ${LDFLAGS}|" \
-e "s|\(DB_LIBS[[:space:]]*=\) \-ldb_cxx|\1 -ldb_cxx-$(db_findver sys-libs/db:${BERKDB_VERSION})|" \ -e "s|\(DB_LIBS[[:space:]]*=\) \-ldb_cxx|\1 -ldb_cxx-$(db_findver sys-libs/db:${BERKDB_VERSION})|" \
cpp/config/Make.rules{,.Linux} python/config/Make.rules || die "sed failed" cpp/config/Make.rules{,.Linux} python/config/Make.rules || die
if use python; then if use python; then
local S="${S}/python" local S="${S}/python"
@ -174,16 +174,16 @@ src_configure() {
# make it use ruby26 only # make it use ruby26 only
sed -i \ sed -i \
-e 's|RUBY = ruby|\026|' \ -e 's|RUBY = ruby|\026|' \
ruby/config/Make.rules || die "sed failed" ruby/config/Make.rules || die
sed -i \ sed -i \
-e 's|env ruby|\026|' \ -e 's|env ruby|\026|' \
ruby/config/s2rb.rb || die "sed failed" ruby/config/s2rb.rb || die
sed -i \ sed -i \
-e 's|env ruby|\026|' \ -e 's|env ruby|\026|' \
ruby/scripts/slice2rb || die "sed failed" ruby/scripts/slice2rb || die
sed -i \ sed -i \
-e 's|output.write("ruby|\026|' \ -e 's|output.write("ruby|\026|' \
scripts/TestUtil.py || die "sed failed" scripts/TestUtil.py || die
fi fi
MAKE_RULES_MONO=( MAKE_RULES_MONO=(
@ -323,6 +323,7 @@ src_install() {
install_pythondir="\"${D}/$(python_get_sitedir)\"" \ install_pythondir="\"${D}/$(python_get_sitedir)\"" \
install_libdir="\"${D}/$(python_get_sitedir)\"" \ install_libdir="\"${D}/$(python_get_sitedir)\"" \
install install
python_optimize
} }
local S="${S}/python" local S="${S}/python"
python_foreach_impl installation python_foreach_impl installation

View File

@ -3,7 +3,7 @@
EAPI=7 EAPI=7
PYTHON_COMPAT=( python{3_6,3_7,3_8} ) PYTHON_COMPAT=( python3_{6,7,8} )
RUBY_OPTIONAL="yes" RUBY_OPTIONAL="yes"
USE_RUBY="ruby26" USE_RUBY="ruby26"
@ -14,7 +14,7 @@ PHP_EXT_ZENDEXT="no"
PHP_EXT_OPTIONAL_USE=php PHP_EXT_OPTIONAL_USE=php
USE_PHP="php7-3" USE_PHP="php7-4"
EGIT_REPO_URI="https://github.com/zeroc-ice/ice.git" EGIT_REPO_URI="https://github.com/zeroc-ice/ice.git"
EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}" EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}"
@ -238,6 +238,7 @@ src_install() {
"${MAKE_RULES[@]}" \ "${MAKE_RULES[@]}" \
install_pythondir="\"${D}/$(python_get_sitedir)\"" \ install_pythondir="\"${D}/$(python_get_sitedir)\"" \
install install
python_optimize
} }
local S="${S}/python" local S="${S}/python"
python_foreach_impl installation python_foreach_impl installation