> Does anyone think that a mechanism of applying patches to a package without > the need to modify the ebuild of that package would be a useful feature? > > media-video/smplayer j-random-hack.patch
i have written script (not at my hand atm) with alike syntax using post_src_unpack pre_src_compile hooks. script needs to push patch inside proper directory /etc/portage/... and remove it after emerge. no editing of files around like the /etc/portage/bashrc trick. i can dig the script out if you are interested. pavel