pecl xdiff php extensions allows to create diffs of files/text in a easy :) It requires as a dependency libxdiff. http://www.xmailserver.org/xdiff-lib.html http://www.pecl.php.net/package/xdiff Tested and works on PHP 5.1.4
Created attachment 87231 [details] ebuild for libxdiff
Created attachment 87232 [details] pecl-xdiff ebuild
*** Bug 115148 has been marked as a duplicate of this bug. ***
Added to PHP overlay [1] now. Might be moved to the official tree later, please test. [1] http://overlays.gentoo.org/proj/php/browser/testing/dev-php5/pecl-xdiff
looks ok to me :)