# Copyright 2013 Kevin Decherf # Distributed under the terms of the GNU General Public License v2 require php-pecl [ module=module php_abis=[ 5.6 ] ] SUMMARY="PHP extension for interfacing with memcached via libmemcached library" PLATFORMS="~amd64" LICENCES="PHP-3" SLOT="0" RESTRICT="test" MYOPTIONS="sasl" DEPENDENCIES=" build+run: dev-libs/libmemcached[>=1.0.18][sasl?] " prepare_one_multibuild() { edo sed -e '/AC_PATH_PROG(PKG_CONFIG/d' -i config.m4 php-pecl_prepare_one_multibuild } configure_one_multibuild() { if option sasl ; then PHP_PECL_SRC_CONFIGURE_PARAMS+=( --enable-memcached-sasl ) else PHP_PECL_SRC_CONFIGURE_PARAMS+=( --disable-memcached-sasl ) fi php-pecl_configure_one_multibuild }