There is a $ missing before {QTBASE} on line 161 of the qt-3.2.3-r1.ebuild, fixed in 3.3 but the 3.2.3-r1 in the portage tree is still broken.
thanks for the report, now fixed