Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/libvirt-php/, dev-php/libvirt-php/files/
Date: Sun, 02 Jul 2017 02:32:03
Message-Id: 1498962547.012b4982bbcafa4b8577194e75aee877578570b7.grknight@gentoo
1 commit: 012b4982bbcafa4b8577194e75aee877578570b7
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 2 02:29:07 2017 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 2 02:29:07 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=012b4982
7
8 dev-php/libvirt-php: Version bump to 0.5.3
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-php/libvirt-php/Manifest | 1 +
13 .../libvirt-php/files/remove-imagick-check.patch | 12 ++++
14 dev-php/libvirt-php/libvirt-php-0.5.3.ebuild | 68 ++++++++++++++++++++++
15 3 files changed, 81 insertions(+)
16
17 diff --git a/dev-php/libvirt-php/Manifest b/dev-php/libvirt-php/Manifest
18 index 6031407d195..51c35c682eb 100644
19 --- a/dev-php/libvirt-php/Manifest
20 +++ b/dev-php/libvirt-php/Manifest
21 @@ -1 +1,2 @@
22 DIST libvirt-php-0.5.2.tar.gz 770816 SHA256 f338caab2bebcce60cd62e3982ec4c1a274ecaf49d03cf7080b45f2f16cd516d SHA512 11844fea8507090826acd81fc7c257ecc3ed9cca10fc785e4d54b98ebd1e213310e379e7ca684c6439d9e2c57800a140fdc9953c6bec72da1959f5ed99e9ef31 WHIRLPOOL 19bde6afd0ef824557048d9f00aa1dd34f7138408326653e49c04a25e514575d1c2d92c462a8a9f40048ae2af7b2e46a27b66561cddf21fb8f28c294085700f5
23 +DIST libvirt-php-0.5.3.tar.gz 778604 SHA256 6cf9a5aa855cf973e4280c890d9da88a2a26a1e5a3c8bb555f885391467f85cf SHA512 b4cbfd8840d8f114fde762b5d6ada155ebdb231b554e28e8526a7af45a802a18f28e90fa52f3d7ca9f616996fe0a8289b70c2d14dca51a52a7bf8a501c3ff44f WHIRLPOOL fc379e7a216e7846dd6711816f19fac8497f67bee69fe66b904b86d40cc7064d941338941d6bb48e13d4fb1e0a8bff6421831c538a66f5b36556fff838d7f598
24
25 diff --git a/dev-php/libvirt-php/files/remove-imagick-check.patch b/dev-php/libvirt-php/files/remove-imagick-check.patch
26 new file mode 100644
27 index 00000000000..92c0e39cd26
28 --- /dev/null
29 +++ b/dev-php/libvirt-php/files/remove-imagick-check.patch
30 @@ -0,0 +1,12 @@
31 +diff -aurN a/configure.ac b/configure.ac
32 +--- a/configure.ac 2017-05-11 05:28:41.000000000 -0400
33 ++++ b/configure.ac 2017-07-01 21:46:17.636849810 -0400
34 +@@ -172,8 +172,6 @@
35 + LIBVIRT_CHECK_PHP_EXTENSIONDIR
36 + LIBVIRT_CHECK_PHP_CONFDIR
37 +
38 +-LIBVIRT_CHECK_PHP_EXTENSION([imagick])
39 +-
40 + OS=`uname`
41 + if test "$OS" = "Darwin"; then
42 + WL=-Wl,
43
44 diff --git a/dev-php/libvirt-php/libvirt-php-0.5.3.ebuild b/dev-php/libvirt-php/libvirt-php-0.5.3.ebuild
45 new file mode 100644
46 index 00000000000..fa770b1f6af
47 --- /dev/null
48 +++ b/dev-php/libvirt-php/libvirt-php-0.5.3.ebuild
49 @@ -0,0 +1,68 @@
50 +# Copyright 1999-2017 Gentoo Foundation
51 +# Distributed under the terms of the GNU General Public License v2
52 +
53 +EAPI=6
54 +
55 +PHP_EXT_NAME="libvirt-php"
56 +PHP_EXT_SKIP_PHPIZE="yes"
57 +USE_PHP="php5-6 php7-0 php7-1"
58 +
59 +inherit php-ext-source-r3 autotools
60 +
61 +DESCRIPTION="PHP bindings for libvirt"
62 +HOMEPAGE="http://libvirt.org/php/"
63 +SRC_URI="http://libvirt.org/sources/php/${P}.tar.gz"
64 +
65 +LICENSE="LGPL-2.1"
66 +SLOT="0"
67 +KEYWORDS="~amd64"
68 +IUSE="doc"
69 +
70 +RDEPEND="app-emulation/libvirt
71 + dev-libs/libxml2"
72 +DEPEND="${RDEPEND}
73 + dev-libs/libxslt
74 + virtual/pkgconfig
75 + doc? ( app-text/xhtml1 )"
76 +
77 +RESTRICT="test"
78 +DOCS=( AUTHORS ChangeLog NEWS README )
79 +
80 +src_unpack() {
81 + default
82 +
83 + # create the default modules directory to be able
84 + # to use the php-ext-source-r3 eclass to configure/build
85 + ln -s src "${S}/modules"
86 +
87 + for slot in $(php_get_slots); do
88 + cp -r "${S}" "${WORKDIR}/${slot}"
89 + done
90 +}
91 +
92 +src_prepare() {
93 + # Remove the insane check for pecl-imagick which is only used in examples
94 + # and is not called upon in any build
95 + local slot
96 + for slot in $(php_get_slots); do
97 + php_init_slot_env "${slot}"
98 + eapply "${FILESDIR}/remove-imagick-check.patch"
99 + eapply_user
100 + eautoreconf
101 + done
102 +}
103 +
104 +src_install() {
105 + local slot
106 + for slot in $(php_get_slots); do
107 + php_init_slot_env ${slot}
108 + insinto "${EXT_DIR}"
109 + doins "src/.libs/${PHP_EXT_NAME}.so"
110 + done
111 + php-ext-source-r3_createinifiles
112 + einstalldocs
113 + if use doc ; then
114 + docinto /usr/share/doc/${PF}/html
115 + dodoc -r docs/*
116 + fi
117 +}