Dr Gary Jenkins, 54, was attacked during the early hours of Tuesday, July 20, 2021, and died at the University Hospital of Wales on Thursday August 5.
Jason Edwards, 25, Lee William Strickland, 36, and Dionne Timms-Williams, 17, have all received life sentences at Cardiff Crown Court.
Edwards and Strickland must each serve a minimum of 33 years.
Timms-Williams must serve a minimum of 18 years.
All three pleaded guilty to manslaughter, robbery and section 47 assault of another but denied the murder of Dr Jenkins.
But following a trial at Merthyr Crown Court in February 2022, they were convicted of his murder and have now been sentenced.
Senior Investigating Officer, Detective Inspector Stuart Wales said:
“We acknowledge the significant sentences given to the three defendants today, which reflect the homophobic and murder for gain aspect of the awful attack upon Dr Jenkins.
“No sentence regardless of its length can replace the pain that Dr Jenkins’ family are feeling. I hope that today’s sentences bring them a degree of comfort and allow them to rebuild their lives. Our thoughts will always be with them.