Browse Source

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

master
Robert Förster 7 years ago
parent
commit
aeeee02367
  1. 5
      dev-libs/Ice/Ice-3.6.1.ebuild

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

@ -19,7 +19,7 @@ PHP_EXT_OPTIONAL_USE=php
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"
HOMEPAGE="http://www.zeroc.com/"
@ -211,7 +211,8 @@ src_install() {
fi
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
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}/*

Loading…
Cancel
Save