There's an error in package grass-6.0.1.tar.gz in configure script on line 1344: system=MP-RAS-`awk '{print }' /etc/.relid'` should look like this: system=MP-RAS-`awk '{print }' /etc/.relid` However as configure is generated by autotools this problem is rather strange to explain for me.
Sigh... You are using bash-3.1, right? sed -i -e "s/relid'/relid/" "${S}"/configure in src_unpack() should fix it.
I've managed to compile it for myself. I'm thinking about the others. ;) I use: GNU bash, version 3.1.5(1)-release (x86_64-pc-linux-gnu) It's latest bash for ~amd64 systems.
This bug is fixed in Grass-6.0.2 More details: http://www.intevation.de/rt/webrt?serial_num=3918&display=History
Fixed in 6.0.1