# Copyright 2013 Kevin Decherf # Distributed under the terms of the GNU General Public License v2 require php-pecl [ module=module php_abis=[ 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 8.5 ] ] SUMMARY="PHP extension for interfacing with memcached via libmemcached library" PLATFORMS="~amd64" LICENCES="PHP-3" SLOT="7" RESTRICT="test" MYOPTIONS="sasl" DEPENDENCIES=" build+run: dev-libs/libmemcached[>=1.0.18][sasl?] sys-libs/zlib " 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 }