I'm in the process of writing an ebuild script for phpGroupWare (http://www.phpgroupware.org). They have a rather annoying way of downloading the files (well, I found another way). The URL you go to is: ttp://www.phpgroupware.org/downloads.php?filename=phpgroupware-0.9.14.000.tar.bz2&files_dir=downloads_phpgw This causes two problems. First, the URL needs to be quoted before being sent to wget. I don't know where the best place to do it, but I decided to add it to /etc/make.globals. Second, the ibiblio.org caching code gets confused and tries to download: http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/downloads.php?filename=phpgroupware-0.9.14.000.tar.bz2&files_dir=downloads_phpgw
http://www.phpgroupware.org//downloads_phpgw/phpgroupware-0.9.14.000.tar.bz2
CGI's are annoying, and not really fixable. Only thing I can sugggest is to find a non-cgi, or have it posted to ibiblio.