Hay! That ebuild looks like it would work for me (didn't test as I had already modified an rc2 ebuild myself).
One thing I did notice, though, is that amule now requires libgd to have cas working fully, so I decided to give it a try and modify my first ebuild with USE flag options.

Now if you 'USE="gd" emerge amule' it'll try to check if you've got libgd >= 2.0.0 installed and install if needed to have cas fully working.

Not willing to compete with you, t0mcat, but i think this way looks better.

(Btw, would it be possible to allow .ebuild files to be attached? .tar.* are not bad, but I'd like to be able to read the ebuild directly from the page. :] )