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 git-r3 autotools
13 DESCRIPTION="PHP bindings for libvirt"
14 HOMEPAGE="http://libvirt.org/php/"
15 EGIT_REPO_URI="https://gitlab.com/libvirt/libvirt-php.git"
22 RDEPEND="app-emulation/libvirt
27 doc? ( app-text/xhtml1 )"
30 DOCS=( ChangeLog NEWS README )
31 # Remove the insane check for pecl-imagick which is only used in examples
32 # and is not called upon in any build
33 PATCHES=( "${FILESDIR}/remove-imagick-check.patch" )
38 # create the default modules directory to be able
39 # to use the php-ext-source-r3 eclass to configure/build
40 ln -s src "${S}/modules"
44 php-ext-source-r3_src_prepare
46 for slot in $(php_get_slots); do
47 php_init_slot_env "${slot}"
54 for slot in $(php_get_slots); do
55 php_init_slot_env ${slot}
57 doins "src/.libs/${PHP_EXT_NAME}.so"
59 php-ext-source-r3_createinifiles
62 docinto /usr/share/doc/${PF}/html