1 |
commit: ffcead0653bbc5784f6f2339d09eeb6253ae0966 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 4 19:35:47 2019 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 4 19:35:47 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffcead06 |
7 |
|
8 |
dev-php/pecl-memcached: Revbump to add php 5.6; reorganize other deps |
9 |
|
10 |
Package-Manager: Portage-2.3.67, Repoman-2.3.13 |
11 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
12 |
|
13 |
.../pecl-memcached/pecl-memcached-3.1.3-r1.ebuild | 75 ++++++++++++++++++++++ |
14 |
1 file changed, 75 insertions(+) |
15 |
|
16 |
diff --git a/dev-php/pecl-memcached/pecl-memcached-3.1.3-r1.ebuild b/dev-php/pecl-memcached/pecl-memcached-3.1.3-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..59f9df533fc |
19 |
--- /dev/null |
20 |
+++ b/dev-php/pecl-memcached/pecl-memcached-3.1.3-r1.ebuild |
21 |
@@ -0,0 +1,75 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+PHP_EXT_NAME="memcached" |
27 |
+DOCS=( ChangeLog README.markdown ) |
28 |
+ |
29 |
+USE_PHP="php5-6 php7-1 php7-2 php7-3" # Pretend to support all four targets... |
30 |
+inherit php-ext-pecl-r3 |
31 |
+USE_PHP="php7-1 php7-2 php7-3" # But only truly build for these three. |
32 |
+ |
33 |
+DESCRIPTION="Interface PHP with memcached via libmemcached library" |
34 |
+LICENSE="PHP-3" |
35 |
+SLOT="7" |
36 |
+KEYWORDS="~amd64 ~x86" |
37 |
+IUSE="examples igbinary json sasl +session test" |
38 |
+ |
39 |
+COMMON_DEPEND=">=dev-libs/libmemcached-1.0.14[sasl?] |
40 |
+ sys-libs/zlib |
41 |
+" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ php_targets_php7-1? ( |
45 |
+ ${COMMON_DEPEND} dev-lang/php:7.1[session?,json?] |
46 |
+ igbinary? ( dev-php/igbinary[php_targets_php7-1(-)] ) |
47 |
+ ) |
48 |
+ php_targets_php7-2? ( |
49 |
+ ${COMMON_DEPEND} dev-lang/php:7.2[session?,json?] |
50 |
+ igbinary? ( dev-php/igbinary[php_targets_php7-2(-)] ) |
51 |
+ ) |
52 |
+ php_targets_php7-3? ( |
53 |
+ ${COMMON_DEPEND} dev-lang/php:7.3[session?,json?] |
54 |
+ igbinary? ( dev-php/igbinary[php_targets_php7-3(-)] ) |
55 |
+ )" |
56 |
+DEPEND="${RDEPEND} test? ( net-misc/memcached )" |
57 |
+RDEPEND="${RDEPEND} php_targets_php5-6? ( dev-php/pecl-memcached:0[php_targets_php5-6(-)] )" |
58 |
+ |
59 |
+src_prepare(){ |
60 |
+ if use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then |
61 |
+ php-ext-source-r3_src_prepare |
62 |
+ else |
63 |
+ default_src_prepare |
64 |
+ fi |
65 |
+} |
66 |
+ |
67 |
+src_configure() { |
68 |
+ local PHP_EXT_ECONF_ARGS="--enable-memcached |
69 |
+ $(use_enable session memcached-session) |
70 |
+ $(use_enable sasl memcached-sasl) |
71 |
+ $(use_enable json memcached-json) |
72 |
+ $(use_enable igbinary memcached-igbinary)" |
73 |
+ |
74 |
+ php-ext-source-r3_src_configure |
75 |
+} |
76 |
+ |
77 |
+src_test() { |
78 |
+ if use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then |
79 |
+ local memcached_opts=( -d -P "${T}/memcached.pid" -p 11211 -l 127.0.0.1 ) |
80 |
+ [[ ${EUID} == 0 ]] && memcached_opts+=( -u portage ) |
81 |
+ memcached "${memcached_opts[@]}" || die "Can't start memcached test server" |
82 |
+ |
83 |
+ local exit_status |
84 |
+ php-ext-source-r3_src_test |
85 |
+ exit_status=$? |
86 |
+ |
87 |
+ kill "$(<"${T}/memcached.pid")" |
88 |
+ return ${exit_status} |
89 |
+ fi |
90 |
+} |
91 |
+ |
92 |
+src_install(){ |
93 |
+ if use php_targets_php7-1 || use php_targets_php7-2 || use php_targets_php7-3 ; then |
94 |
+ php-ext-source-r3_src_install |
95 |
+ fi |
96 |
+} |