(This idea probably works on all other ebuilds of other versions of postgresql) Postgresql uses as it SRC_URI, ftp://ftp.us.postgresql.org/source/v${PV}/${P}.tar.gz, but could actually use other files, so that I wont download files that it doesn't need. For example, ${P}.tar.gz has in itself the contents of the other 4 .tar.gz's that are in that same dir: base, docs, opt and tests. The current ebuild *only* uses files from the base tar file (with the small exception of the doc/src/sgml/ files). I suggest to change the SRC_URI to point to ${P}-base.tar.gz and to ${P}-doc.tar.gz. (Yeah, I know, you sabe a bit more than a meg of download... but it seems proper this way. Actually, if the doc/src/sgml/ files weren't being used by the ebuild, one would not download other 2.5M (6.5M of total download instead of the current M)
bump
I'm sorry for being late. The ebuild uses "opt" tar ball source. It maybe unnecessary depending on a USE flag. But I have no time for investigating. So I decided to change the ebuild to always download 'base' and 'opt' tar balls and 'docs' tar ball when it's set USE="doc" for now. I just fixed this bug in 7.4-r1 If you have any idea, please reopen this bug and comment.