1 |
commit: 621b22c5de22aa2805ea098b4245b4dad0cb6241 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 1 13:55:38 2016 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 1 15:46:34 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=621b22c5 |
7 |
|
8 |
dev-php/pecl-mysqlnd_qc: Revbump to drop php 5.5 dependencies |
9 |
|
10 |
This package has not been ported and fails with PHP 7.0. |
11 |
Patches are welcome, but this package is in danger of being dropped |
12 |
when PHP 5.6 becomes obsolete. |
13 |
|
14 |
Package-Manager: portage-2.3.2 |
15 |
|
16 |
.../pecl-mysqlnd_qc-1.2.0-r2.ebuild | 50 ++++++++++++++++++++++ |
17 |
1 file changed, 50 insertions(+) |
18 |
|
19 |
diff --git a/dev-php/pecl-mysqlnd_qc/pecl-mysqlnd_qc-1.2.0-r2.ebuild b/dev-php/pecl-mysqlnd_qc/pecl-mysqlnd_qc-1.2.0-r2.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000..8ab11a1 |
22 |
--- /dev/null |
23 |
+++ b/dev-php/pecl-mysqlnd_qc/pecl-mysqlnd_qc-1.2.0-r2.ebuild |
24 |
@@ -0,0 +1,50 @@ |
25 |
+# Copyright 1999-2016 Gentoo Foundation |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+# $Id$ |
28 |
+ |
29 |
+EAPI=6 |
30 |
+ |
31 |
+PHP_EXT_NAME="mysqlnd_qc" |
32 |
+PHP_EXT_INI="yes" |
33 |
+PHP_EXT_ZENDEXT="no" |
34 |
+ |
35 |
+USE_PHP="php5-6" |
36 |
+ |
37 |
+inherit php-ext-pecl-r3 flag-o-matic |
38 |
+ |
39 |
+KEYWORDS="~amd64" |
40 |
+ |
41 |
+DESCRIPTION="A query cache plugin for the mysqlnd library" |
42 |
+LICENSE="PHP-3" |
43 |
+SLOT="0" |
44 |
+IUSE="memcached sqlite" |
45 |
+ |
46 |
+# Specifying targets due to USE flag transition |
47 |
+DEPEND=" |
48 |
+ memcached? ( dev-libs/libmemcached ) |
49 |
+ sqlite? ( dev-db/sqlite:3 ) |
50 |
+ php_targets_php5-6? ( || ( |
51 |
+ dev-lang/php:5.6[-libmysqlclient,mysql] |
52 |
+ dev-lang/php:5.6[-libmysqlclient,mysqli] |
53 |
+ ) |
54 |
+ ) |
55 |
+" |
56 |
+RDEPEND="${DEPEND}" |
57 |
+PATCHES=( "${FILESDIR}/${P}-php56.patch" ) |
58 |
+ |
59 |
+src_configure() { |
60 |
+ local PHP_EXT_ECONF_ARGS=() |
61 |
+ if use memcached ; then |
62 |
+ # configure does not find pthreads when memcache is enabled |
63 |
+ append-flags -pthread |
64 |
+ PHP_EXT_ECONF_ARGS+=( --enable-mysqlnd_qc_memcache --with-libmemcached-dir="${ROOT}usr" ) |
65 |
+ else |
66 |
+ PHP_EXT_ECONF_ARGS+=( --disable-mysqlnd_qc_memcache ) |
67 |
+ fi |
68 |
+ if use sqlite ; then |
69 |
+ PHP_EXT_ECONF_ARGS+=( --enable-mysqlnd_qc_sqlite --with-sqlite-dir="${ROOT}usr" ) |
70 |
+ else |
71 |
+ PHP_EXT_ECONF_ARGS+=( --disable-mysqlnd_qc_sqlite ) |
72 |
+ fi |
73 |
+ php-ext-source-r3_src_configure |
74 |
+} |