Browse Source

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

master
Robert Förster 2 years ago
parent
commit
9f08ffcedd
  1. 34
      dev-libs/Ice/Ice-3.6.5.ebuild
  2. 29
      dev-libs/Ice/Ice-3.6.9999.ebuild
  3. 5
      dev-libs/Ice/Ice-3.7.9999.ebuild

34
dev-libs/Ice/Ice-3.6.5.ebuild

@ -3,7 +3,7 @@
EAPI=7
PYTHON_COMPAT=( python{2_7,3_6,3_7} )
PYTHON_COMPAT=( python{2_7,3_{6,7,8}} )
RUBY_OPTIONAL="yes"
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
# for mono-env
unset SRC_URI
DESCRIPTION="ICE middleware C++ library and generator tools"
HOMEPAGE="https://zeroc.com/products/ice"
SRC_URI="https://github.com/zeroc-ice/ice/archive/v${PV}.tar.gz -> ${P}.tar.gz
@ -56,7 +53,7 @@ DEPEND="${RDEPEND}
# Maintainer notes:
# TODO: java bindings
S="${WORKDIR}/${P/I/i}"
S="${WORKDIR}/${P,}"
PHP_EXT_S="${S}/php"
PATCHES=(
@ -80,25 +77,25 @@ src_prepare() {
sed -i \
-e 's|-L\$\(libdir\)||' \
cpp/config/Make.rules || die "sed failed"
cpp/config/Make.rules || die
sed -i \
-e 's|-O2 ||g' \
-e 's|-Werror ||g' \
cpp/config/Make.rules.Linux || die "sed failed"
cpp/config/Make.rules.Linux || die
sed -i \
-e 's|install-common||' \
{cpp,csharp,php,python,ruby}/Makefile || die "sed failed"
{cpp,csharp,php,python,ruby}/Makefile || die
sed -i \
-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
sed -i \
-e '/SUBDIRS/s|\ test||' \
csharp/Makefile || die "sed failed"
csharp/Makefile || die
# skip udp test due to multicast
# skip IceGrid/admin bug #649850
@ -108,17 +105,17 @@ src_prepare() {
# Glacier2/staticFiltering requires network access
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|' \
cpp/Makefile || die "sed failed"
cpp/Makefile || die
# fails even on unicode locale
sed -i \
-e 's|allTests.py|allTests.py --rfilter=Slice\/unicodePaths|' \
ruby/Makefile || die "sed failed"
ruby/Makefile || die
# fix for x86 IceBox test
sed -i \
-e 's|"32"|""|' \
scripts/TestUtil.py || die "sed failed"
scripts/TestUtil.py || die
}
src_configure() {
@ -154,7 +151,7 @@ src_configure() {
-e "s|\(CXXFLAGS[[:space:]]*=\)|\1 ${CXXFLAGS}|" \
-e "s|\(LDFLAGS[[:space:]]*=\)|\1 ${LDFLAGS}|" \
-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
local S="${S}/python"
@ -172,16 +169,16 @@ src_configure() {
# make it use ruby25 only
sed -i \
-e 's|RUBY = ruby|\025|' \
ruby/config/Make.rules || die "sed failed"
ruby/config/Make.rules || die
sed -i \
-e 's|env ruby|\025|' \
ruby/config/s2rb.rb || die "sed failed"
ruby/config/s2rb.rb || die
sed -i \
-e 's|env ruby|\025|' \
ruby/scripts/slice2rb || die "sed failed"
ruby/scripts/slice2rb || die
sed -i \
-e 's|output.write("ruby|\025|' \
scripts/TestUtil.py || die "sed failed"
scripts/TestUtil.py || die
fi
MAKE_RULES_MONO=(
@ -322,6 +319,7 @@ src_install() {
install_pythondir="\"${D}/$(python_get_sitedir)\"" \
install_libdir="\"${D}/$(python_get_sitedir)\"" \
install
python_optimize
}
local S="${S}/python"
python_foreach_impl installation

29
dev-libs/Ice/Ice-3.6.9999.ebuild

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

5
dev-libs/Ice/Ice-3.7.9999.ebuild

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

Loading…
Cancel
Save