Build fails if dev-util/pkgconfig is not isntall, attached ebuild solves problem.
Created attachment 260853 [details] ebuild 1) add dev-util/pkgconfig 2) migrate to qt4-r2.eclss = solve bug 335716 3) cosmetics
Created attachment 260856 [details, diff] patch, works fine for me
Fixed in psimedia-1.0.3-r1.