1 |
commit: 551596581419d2395e111dda97fa852daa5dfdd8 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 6 14:54:42 2017 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 6 14:55:18 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55159658 |
7 |
|
8 |
dev-php/pecl-redis: Version bump wrt bug 608384 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-php/pecl-redis/Manifest | 1 + |
13 |
dev-php/pecl-redis/pecl-redis-3.1.1.ebuild | 52 ++++++++++++++++++++++++++++++ |
14 |
2 files changed, 53 insertions(+) |
15 |
|
16 |
diff --git a/dev-php/pecl-redis/Manifest b/dev-php/pecl-redis/Manifest |
17 |
index 97fb3a9..2b719d3 100644 |
18 |
--- a/dev-php/pecl-redis/Manifest |
19 |
+++ b/dev-php/pecl-redis/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST redis-2.2.7.tgz 134340 SHA256 95e5331cd7e709771eb4479c455bcf326a74b2aea3b1a5cba00b4c95e66dc902 SHA512 88be2abeda62b7c1c95b6d399bbb5f97774d956001b4d13a8e5f183e86fe6336d91f479a8125adcaeff1ad5617a920953961360fc3484ebafc3ed915bcd7f86c WHIRLPOOL e7c8ea7c0c4578933211d4571d742ad09eadb5dd93e207d4f0d5858bfacb7a78eb4bd7ed34cafbc17b465b0d423ea0ff788dee907d89c4939ee4a9acbbe8b95d |
22 |
+DIST redis-3.1.1.tgz 198597 SHA256 aa1a30f2c5e1f532289b9b90af71b42db86bb85e9f8c344a455a4312c79d917e SHA512 a9bf74342dbaec518623f99a958130d61ae643111448dd16c974fcf96ec722d34c1f7d2e7b09e786abe7432bff1d34e2d8bd895c8b6c5f9b88faac701eb77b2a WHIRLPOOL 1053247b933a7f0bc2d6d79f981e0745e1d6db094fc9d4588a1e23e9670bdfabeb53ac5cae5ddf70ee8544df02dac0435f9339612e04e174055529670b705c07 |
23 |
DIST redis-3.1.1RC2.tgz 198513 SHA256 21dc974d12ed707c2dce34b268eb3411338961cd4c849325e7c28a587f137efe SHA512 8c008d3549347c56c6e0226967da387a93f7f6ca32071c45487fecc072fc09cf71d901ef26a871a510cf4b1bbe6d7a0ab5341691f9510b1bbd5e7dc067b08272 WHIRLPOOL ee68ce66a2ba40723c3be6e95b58d69ed11fe26b8e68abf14eda72b3044edd34d4a01c27950865246f04602aa3d0223351a92774d7ccb0a98d3f1897a3680695 |
24 |
|
25 |
diff --git a/dev-php/pecl-redis/pecl-redis-3.1.1.ebuild b/dev-php/pecl-redis/pecl-redis-3.1.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000..c6d5ee8 |
28 |
--- /dev/null |
29 |
+++ b/dev-php/pecl-redis/pecl-redis-3.1.1.ebuild |
30 |
@@ -0,0 +1,52 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+PHP_EXT_NAME="redis" |
38 |
+USE_PHP="php5-6 php7-0 php7-1" |
39 |
+DOCS=( arrays.markdown cluster.markdown README.markdown CREDITS ) |
40 |
+MY_P="${PN/pecl-/}-${PV/_rc/RC}" |
41 |
+PHP_EXT_PECL_FILENAME="${MY_P}.tgz" |
42 |
+PHP_EXT_S="${WORKDIR}/${MY_P}" |
43 |
+ |
44 |
+inherit php-ext-pecl-r3 |
45 |
+ |
46 |
+DESCRIPTION="PHP extension for interfacing with Redis" |
47 |
+LICENSE="PHP-3.01" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64" |
50 |
+IUSE="igbinary +session" |
51 |
+ |
52 |
+DEPEND="igbinary? ( |
53 |
+ php_targets_php5-6? ( dev-php/igbinary[php_targets_php5-6] ) |
54 |
+ php_targets_php7-0? ( dev-php/igbinary[php_targets_php7-0] ) |
55 |
+ php_targets_php7-1? ( dev-php/igbinary[php_targets_php7-1] ) )" |
56 |
+RDEPEND="${DEPEND} !dev-php/pecl-redis:7" |
57 |
+ |
58 |
+# The test suite requires network access. |
59 |
+RESTRICT=test |
60 |
+ |
61 |
+S="${WORKDIR}/${MY_P}" |
62 |
+ |
63 |
+src_configure() { |
64 |
+ local PHP_EXT_ECONF_ARGS=( |
65 |
+ --enable-redis |
66 |
+ $(use_enable igbinary redis-igbinary) |
67 |
+ $(use_enable session redis-session) |
68 |
+ ) |
69 |
+ php-ext-source-r3_src_configure |
70 |
+} |
71 |
+ |
72 |
+src_test(){ |
73 |
+ local slot |
74 |
+ for slot in $(php_get_slots); do |
75 |
+ php_init_slot_env "${slot}" |
76 |
+ # Run tests for Redis class |
77 |
+ ${PHPCLI} -d extension=modules/redis.so \ |
78 |
+ tests/TestRedis.php \ |
79 |
+ --class Redis \ |
80 |
+ --host ${PECL_REDIS_HOST} || die 'test suite failed' |
81 |
+ done |
82 |
+} |