1 |
commit: a164b154c37af2e75e6444d1494389be80ab568a |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 5 14:26:30 2021 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 5 14:26:30 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a164b154 |
7 |
|
8 |
dev-php/pecl-memcache: New version for 8.0 |
9 |
|
10 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
11 |
|
12 |
dev-php/pecl-memcache/Manifest | 1 + |
13 |
.../pecl-memcache/pecl-memcache-4.0.5.2-r1.ebuild | 62 +++++++++++++++++++++ |
14 |
dev-php/pecl-memcache/pecl-memcache-8.0.ebuild | 63 ++++++++++++++++++++++ |
15 |
3 files changed, 126 insertions(+) |
16 |
|
17 |
diff --git a/dev-php/pecl-memcache/Manifest b/dev-php/pecl-memcache/Manifest |
18 |
index fa7ce2858ca..37614f46615 100644 |
19 |
--- a/dev-php/pecl-memcache/Manifest |
20 |
+++ b/dev-php/pecl-memcache/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST memcache-4.0.5.2.tgz 75061 BLAKE2B fbf96fd182ff4b8764c4492edcdac53263176ebe6d63a27e9f3fb32110a016b221722c246e7c1ae49ee973a6e4cdff045876d1c6119f410f2fa3e796c0580e02 SHA512 93e163acf3a6c28f16b5f0982105f6f558cceeb314b3f09ad71655d8a5adf64d23959f1a2f3589eb7e7a7e18c88ba8132014e13f697a737cd570cf9405137384 |
23 |
+DIST memcache-8.0.tgz 78448 BLAKE2B fb2d68d5ff4c6343dd2e66ae5c3f84fed22455b8614dce04dde2e10c164bf1f8d276776b74beaa387dd794cf82f6b897a88c8bed058376b9032e0452c2e94b06 SHA512 d5eea13b85d8d35ef6aab8c5699bdcc4707cf8debf4052cbbeac26e7e2360a4d3d4e55e8bd0b40cf19fe014ba1fc42d5417deabbe22a199f0c6aa98b67d132d4 |
24 |
|
25 |
diff --git a/dev-php/pecl-memcache/pecl-memcache-4.0.5.2-r1.ebuild b/dev-php/pecl-memcache/pecl-memcache-4.0.5.2-r1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..10134a07db4 |
28 |
--- /dev/null |
29 |
+++ b/dev-php/pecl-memcache/pecl-memcache-4.0.5.2-r1.ebuild |
30 |
@@ -0,0 +1,62 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="7" |
35 |
+PHP_EXT_NAME="memcache" |
36 |
+PHP_EXT_INI="yes" |
37 |
+PHP_EXT_ZENDEXT="no" |
38 |
+PHP_EXT_NEEDED_USE="session(-)?" |
39 |
+DOCS=( README example.php ) |
40 |
+HTML_DOCS=( memcache.php ) |
41 |
+ |
42 |
+USE_PHP="php7-3 php7-4 php8-0" |
43 |
+ |
44 |
+inherit php-ext-pecl-r3 |
45 |
+ |
46 |
+USE_PHP="php7-3 php7-4" |
47 |
+ |
48 |
+KEYWORDS="~amd64 ~hppa ~ppc64 ~x86" |
49 |
+ |
50 |
+DESCRIPTION="PHP extension for using memcached" |
51 |
+LICENSE="PHP-3" |
52 |
+SLOT="7" |
53 |
+IUSE="+session" |
54 |
+ |
55 |
+DEPEND="php_targets_php7-3? ( sys-libs/zlib ) php_targets_php7-4? ( sys-libs/zlib )" |
56 |
+RDEPEND="${DEPEND} |
57 |
+ php_targets_php8-0? ( dev-php/pecl-memcache:8[php_targets_php8-0(-)?] ) |
58 |
+" |
59 |
+ |
60 |
+# The test suite requires memcached to be running. |
61 |
+RESTRICT='test' |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ if use php_targets_php7-3 || use php_targets_php7-4 ; then |
65 |
+ php-ext-source-r3_src_prepare |
66 |
+ else |
67 |
+ default |
68 |
+ fi |
69 |
+} |
70 |
+ |
71 |
+src_configure() { |
72 |
+ if use php_targets_php7-3 || use php_targets_php7-4 ; then |
73 |
+ local PHP_EXT_ECONF_ARGS=( --enable-memcache --with-zlib-dir="${EPREFIX}/usr" $(use_enable session memcache-session) ) |
74 |
+ php-ext-source-r3_src_configure |
75 |
+ fi |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ if use php_targets_php7-3 || use php_targets_php7-4 ; then |
80 |
+ php-ext-pecl-r3_src_install |
81 |
+ |
82 |
+ php-ext-source-r3_addtoinifiles "memcache.allow_failover" "true" |
83 |
+ php-ext-source-r3_addtoinifiles "memcache.max_failover_attempts" "20" |
84 |
+ php-ext-source-r3_addtoinifiles "memcache.chunk_size" "32768" |
85 |
+ php-ext-source-r3_addtoinifiles "memcache.default_port" "11211" |
86 |
+ php-ext-source-r3_addtoinifiles "memcache.hash_strategy" "consistent" |
87 |
+ php-ext-source-r3_addtoinifiles "memcache.hash_function" "crc32" |
88 |
+ php-ext-source-r3_addtoinifiles "memcache.redundancy" "1" |
89 |
+ php-ext-source-r3_addtoinifiles "memcache.session_redundancy" "2" |
90 |
+ php-ext-source-r3_addtoinifiles "memcache.protocol" "ascii" |
91 |
+ fi |
92 |
+} |
93 |
|
94 |
diff --git a/dev-php/pecl-memcache/pecl-memcache-8.0.ebuild b/dev-php/pecl-memcache/pecl-memcache-8.0.ebuild |
95 |
new file mode 100644 |
96 |
index 00000000000..a837166eaa5 |
97 |
--- /dev/null |
98 |
+++ b/dev-php/pecl-memcache/pecl-memcache-8.0.ebuild |
99 |
@@ -0,0 +1,63 @@ |
100 |
+# Copyright 1999-2021 Gentoo Authors |
101 |
+# Distributed under the terms of the GNU General Public License v2 |
102 |
+ |
103 |
+EAPI="7" |
104 |
+PHP_EXT_NAME="memcache" |
105 |
+PHP_EXT_INI="yes" |
106 |
+PHP_EXT_ZENDEXT="no" |
107 |
+PHP_EXT_NEEDED_USE="session(-)?" |
108 |
+DOCS=( README example.php ) |
109 |
+HTML_DOCS=( memcache.php ) |
110 |
+ |
111 |
+USE_PHP="php7-3 php7-4 php8-0" |
112 |
+ |
113 |
+inherit php-ext-pecl-r3 |
114 |
+ |
115 |
+USE_PHP="php8-0" |
116 |
+ |
117 |
+KEYWORDS="~amd64 ~hppa ~ppc64 ~x86" |
118 |
+ |
119 |
+DESCRIPTION="PHP extension for using memcached" |
120 |
+LICENSE="PHP-3" |
121 |
+SLOT="8" |
122 |
+IUSE="+session" |
123 |
+ |
124 |
+DEPEND="php_targets_php8-0? ( sys-libs/zlib )" |
125 |
+RDEPEND="${DEPEND} |
126 |
+ php_targets_php7-3? ( dev-php/pecl-memcache:7[php_targets_php7-3(-)?] ) |
127 |
+ php_targets_php7-4? ( dev-php/pecl-memcache:7[php_targets_php7-4(-)?] ) |
128 |
+" |
129 |
+ |
130 |
+# The test suite requires memcached to be running. |
131 |
+RESTRICT='test' |
132 |
+ |
133 |
+src_prepare() { |
134 |
+ if use php_targets_php8-0 ; then |
135 |
+ php-ext-source-r3_src_prepare |
136 |
+ else |
137 |
+ default |
138 |
+ fi |
139 |
+} |
140 |
+ |
141 |
+src_configure() { |
142 |
+ if use php_targets_php8-0 ; then |
143 |
+ local PHP_EXT_ECONF_ARGS=( --enable-memcache --with-zlib-dir="${EPREFIX}/usr" $(use_enable session memcache-session) ) |
144 |
+ php-ext-source-r3_src_configure |
145 |
+ fi |
146 |
+} |
147 |
+ |
148 |
+src_install() { |
149 |
+ if use php_targets_php8-0 ; then |
150 |
+ php-ext-pecl-r3_src_install |
151 |
+ |
152 |
+ php-ext-source-r3_addtoinifiles "memcache.allow_failover" "true" |
153 |
+ php-ext-source-r3_addtoinifiles "memcache.max_failover_attempts" "20" |
154 |
+ php-ext-source-r3_addtoinifiles "memcache.chunk_size" "32768" |
155 |
+ php-ext-source-r3_addtoinifiles "memcache.default_port" "11211" |
156 |
+ php-ext-source-r3_addtoinifiles "memcache.hash_strategy" "consistent" |
157 |
+ php-ext-source-r3_addtoinifiles "memcache.hash_function" "crc32" |
158 |
+ php-ext-source-r3_addtoinifiles "memcache.redundancy" "1" |
159 |
+ php-ext-source-r3_addtoinifiles "memcache.session_redundancy" "2" |
160 |
+ php-ext-source-r3_addtoinifiles "memcache.protocol" "ascii" |
161 |
+ fi |
162 |
+} |