getTargetPackage('php')->getSourceDir(); $link = "{$php_src}/ext/xhprof"; if (!is_link($link)) { shell()->cd("{$php_src}/ext")->exec('ln -s xhprof-src/extension xhprof'); // patch config.m4 FileSystem::replaceFileStr( "{$this->getSourceDir()}/extension/config.m4", 'if test -f $phpincludedir/ext/pcre/php_pcre.h; then', 'if test -f $abs_srcdir/ext/pcre/php_pcre.h; then' ); return true; } return false; } }