Gentoo usually applies tons of patches to packages, examples that come to mind are php and xmms. Most packages have the patches in the package system in /usr/portage, but some have so many that they're bundled in patch archives that are on the distfiles mirrors.