2 turned pin sockets, one on each side. Solder the remains of the pin to the socket, melting the plastic slightly if needed so long as the pin still is held, so preferably melt the top with incidental contact.
Lower socket pop the pin out, or simply use a sharp scalpel blade to slit the socket to bare the pin, then push in the turned pin socket and solder the damaged pin to it.
Done this a few times, much easier than trying to undo all the rats nest of wire wrap ( wrapped and soldered the bastids did) and putting in a new socket, just soldered the turned pin socket onto the old one ( cooked it a lot doing that to ensure solder wetted joint on the pin and formed pin contact socket) and then plugged the cleaned ROM into it. Broken pin ones just solder to another turned pin socket, and if broken at the body a little work with a needle file and a resistor end worked wonders.
You are asking why not just a new IC? Simple, it was a 8T series fusible link PROM, and I needed the teat bench working, and did not have either time or some blank PROM chips around, had used them all fixing some other stuff and they were on back order for months. At least a 32 bit PROM was something you could program with only a bench power supply, a lot of wire links and a good breadboard. Burn at 6V and test at 6V and 4V to check.