1 |
commit: 316d999206a1ceb58f49bca13d896c4d38ff6a3c |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 2 02:31:49 2017 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 2 02:31:49 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=316d9992 |
7 |
|
8 |
dev-php/libvirt-php: Update live ebuild to match 0.5.3 changes |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-php/libvirt-php/libvirt-php-9999.ebuild | 36 +++++++++++++++++------------ |
13 |
1 file changed, 21 insertions(+), 15 deletions(-) |
14 |
|
15 |
diff --git a/dev-php/libvirt-php/libvirt-php-9999.ebuild b/dev-php/libvirt-php/libvirt-php-9999.ebuild |
16 |
index 2a00868a0aa..50e80eda8c4 100644 |
17 |
--- a/dev-php/libvirt-php/libvirt-php-9999.ebuild |
18 |
+++ b/dev-php/libvirt-php/libvirt-php-9999.ebuild |
19 |
@@ -1,17 +1,15 @@ |
20 |
-# Copyright 1999-2016 Gentoo Foundation |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=5 |
25 |
+EAPI=6 |
26 |
|
27 |
PHP_EXT_NAME="libvirt-php" |
28 |
PHP_EXT_SKIP_PHPIZE="yes" |
29 |
-USE_PHP="php5-6 php5-5" |
30 |
-# Automake 1.14 is broken. Check this later |
31 |
-WANT_AUTOMAKE="1.13" |
32 |
+USE_PHP="php5-6 php7-0 php7-1" |
33 |
|
34 |
-inherit php-ext-source-r2 git-r3 autotools |
35 |
+inherit php-ext-source-r3 git-r3 autotools |
36 |
|
37 |
-DESCRIPTION="PHP 5 bindings for libvirt" |
38 |
+DESCRIPTION="PHP bindings for libvirt" |
39 |
HOMEPAGE="http://libvirt.org/php/" |
40 |
EGIT_REPO_URI="git://libvirt.org/libvirt-php.git" |
41 |
|
42 |
@@ -21,19 +19,20 @@ KEYWORDS="" |
43 |
IUSE="doc" |
44 |
|
45 |
RDEPEND="app-emulation/libvirt |
46 |
- dev-libs/libxml2 |
47 |
- dev-php/pecl-imagick" |
48 |
+ dev-libs/libxml2" |
49 |
DEPEND="${RDEPEND} |
50 |
dev-libs/libxslt |
51 |
+ virtual/pkgconfig |
52 |
doc? ( app-text/xhtml1 )" |
53 |
|
54 |
RESTRICT="test" |
55 |
+DOCS=( AUTHORS ChangeLog NEWS README ) |
56 |
|
57 |
src_unpack() { |
58 |
git-r3_src_unpack |
59 |
|
60 |
# create the default modules directory to be able |
61 |
- # to use the php-ext-source-r2 eclass to configure/build |
62 |
+ # to use the php-ext-source-r3 eclass to configure/build |
63 |
ln -s src "${S}/modules" |
64 |
|
65 |
for slot in $(php_get_slots); do |
66 |
@@ -42,9 +41,13 @@ src_unpack() { |
67 |
} |
68 |
|
69 |
src_prepare() { |
70 |
+ # Remove the insane check for pecl-imagick which is only used in examples |
71 |
+ # and is not called upon in any build |
72 |
local slot |
73 |
for slot in $(php_get_slots); do |
74 |
- php_init_slot_env ${slot} |
75 |
+ php_init_slot_env "${slot}" |
76 |
+ eapply "${FILESDIR}/remove-imagick-check.patch" |
77 |
+ eapply_user |
78 |
eautoreconf |
79 |
done |
80 |
} |
81 |
@@ -54,9 +57,12 @@ src_install() { |
82 |
for slot in $(php_get_slots); do |
83 |
php_init_slot_env ${slot} |
84 |
insinto "${EXT_DIR}" |
85 |
- newins "src/.libs/${PHP_EXT_NAME}.so" "${PHP_EXT_NAME}.so" |
86 |
+ doins "src/.libs/${PHP_EXT_NAME}.so" |
87 |
done |
88 |
- php-ext-source-r2_createinifiles |
89 |
- dodoc AUTHORS ChangeLog NEWS README |
90 |
- use doc && dohtml docs/* docs/graphics/* |
91 |
+ php-ext-source-r3_createinifiles |
92 |
+ einstalldocs |
93 |
+ if use doc ; then |
94 |
+ docinto /usr/share/doc/${PF}/html |
95 |
+ dodoc -r docs/* |
96 |
+ fi |
97 |
} |