[dev-libs/Ice] don't unconditionally depend on php

This commit is contained in:
Robert Förster 2016-01-21 00:02:13 +01:00
parent 4df8d6ee24
commit aeeee02367
1 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@ PHP_EXT_OPTIONAL_USE=php
USE_PHP="php5-6" USE_PHP="php5-6"
inherit toolchain-funcs versionator php-ext-source-r2 php-lib-r1 python-r1 mono-env ruby-ng db-use inherit toolchain-funcs versionator php-ext-source-r2 python-r1 mono-env ruby-ng db-use
DESCRIPTION="ICE middleware C++ library and generator tools" DESCRIPTION="ICE middleware C++ library and generator tools"
HOMEPAGE="http://www.zeroc.com/" HOMEPAGE="http://www.zeroc.com/"
@ -211,7 +211,8 @@ src_install() {
fi fi
if use php ; then if use php ; then
php-lib-r1_src_install php/lib $(cd php/lib; find . -name '*.php' -print) insinto "/usr/share/php/${PN}"
doins $(cd php/lib; find ${S}/php/lib/ -name '*.php' -print)
for dir in $( cd ${D}/usr/share/${P}/slice ; ls -1 ); do for dir in $( cd ${D}/usr/share/${P}/slice ; ls -1 ); do
mkdir -p ${D}/usr/share/php/${dir} mkdir -p ${D}/usr/share/php/${dir}
${D}/usr/bin/slice2php -I${D}/usr/share/${P}/slice/ --all --output-dir ${D}/usr/share/php/${dir} --ice ${D}/usr/share/${P}/slice/${dir}/* ${D}/usr/bin/slice2php -I${D}/usr/share/${P}/slice/ --all --output-dir ${D}/usr/share/php/${dir} --ice ${D}/usr/share/${P}/slice/${dir}/*