Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2015 Gentoo Foundation |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Id$ |
4 |
|
5 |
EAPI=5 |
6 |
PHP_EXT_NAME="memcached" |
7 |
PHP_EXT_INI="yes" |
8 |
PHP_EXT_ZENDEXT="no" |
9 |
DOCS="ChangeLog README.markdown" |
10 |
|
11 |
USE_PHP="php5-4 php5-5 php5-6" |
12 |
|
13 |
inherit php-ext-pecl-r2 |
14 |
|
15 |
KEYWORDS="~amd64 ~x86" |
16 |
|
17 |
DESCRIPTION="Interface PHP with memcached via libmemcached library" |
18 |
LICENSE="PHP-3" |
19 |
SLOT="0" |
20 |
IUSE="+session igbinary json sasl" |
21 |
|
22 |
DEPEND="|| ( >=dev-libs/libmemcached-1.0.14 >=dev-libs/libmemcached-1.0[sasl?] ) |
23 |
sys-libs/zlib |
24 |
dev-lang/php:*[session?,json?] |
25 |
igbinary? ( dev-php/igbinary[php_targets_php5-4?,php_targets_php5-5?,php_targets_php5-6?] )" |
26 |
RDEPEND="${DEPEND}" |
27 |
|
28 |
src_configure() { |
29 |
my_conf="--enable-memcached |
30 |
$(use_enable session memcached-session) |
31 |
$(use_enable sasl memcached-sasl) |
32 |
$(use_enable json memcached-json) |
33 |
$(use_enable igbinary memcached-igbinary)" |
34 |
|
35 |
php-ext-source-r2_src_configure |
36 |
} |