1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PHP_EXT_NAME="libvirt-php"
7 PHP_EXT_SKIP_PHPIZE="yes"
8 USE_PHP="php5-6 php7-0 php7-1 php7-2 php7-3"
11 inherit php-ext-source-r3 autotools
13 DESCRIPTION="PHP bindings for libvirt"
14 HOMEPAGE="http://libvirt.org/php/"
15 SRC_URI="http://libvirt.org/sources/php/${P}.tar.gz"
22 RDEPEND="app-emulation/libvirt
27 doc? ( app-text/xhtml1 )"
30 # ChangeLog and NEWS are empty files
31 DOCS=( AUTHORS README )
32 # Remove the insane check for pecl-imagick which is only used in examples
33 # and is not called upon in any build
34 PATCHES=( "${FILESDIR}/remove-imagick-check.patch" )
39 # create the default modules directory to be able
40 # to use the php-ext-source-r3 eclass to configure/build
41 ln -s src "${S}/modules"
45 php-ext-source-r3_src_prepare
47 for slot in $(php_get_slots); do
48 php_init_slot_env "${slot}"
55 for slot in $(php_get_slots); do
56 php_init_slot_env ${slot}
58 doins "src/.libs/${PHP_EXT_NAME}.so"
60 php-ext-source-r3_createinifiles
63 docinto /usr/share/doc/${PF}/html