--- pecl-memcache-3.0.6-r1.ebuild 2012-08-17 17:27:00.282604867 +0800 +++ pecl-memcache-9999.ebuild 2012-08-17 17:06:16.101605013 +0800 @@ -10,11 +10,13 @@ USE_PHP="php5-3 php5-4" -inherit php-ext-pecl-r2 +inherit php-ext-source-r2 subversion KEYWORDS="~amd64 ~hppa ~ppc64 ~x86" DESCRIPTION="PHP extension for using memcached." +ESVN_REPO_URI="https://svn.php.net/repository/pecl/memcache/trunk/" +ESVN_PROJECT="${PN}" LICENSE="PHP-3" SLOT="0" IUSE="+session" @@ -26,13 +28,21 @@ # upstream does not ship any testsuite, so the PHPize test-runner fails. RESTRICT='test' +src_unpack() { + subversion_src_unpack +} + +src_prepare() { + php-ext-source-r2_src_prepare +} + src_configure() { my_conf="--enable-memcache --with-zlib-dir=/usr $(use_enable session memcache-session)" php-ext-source-r2_src_configure } src_install() { - php-ext-pecl-r2_src_install + php-ext-source-r2_src_install php-ext-source-r2_addtoinifiles "memcache.allow_failover" "true" php-ext-source-r2_addtoinifiles "memcache.max_failover_attempts" "20"