Equipartition in multicomponent gravitational systems