I have a PS gearbox and pump from a Wagoneer. They will bolt up to a cj but are 3.5 turns stop to stop where the cj one is 4.5. The hose fittings are different on the older ones vs the newer cjs so you will need to watch out for that.
On my cj8 project I am using a 99 TJ gearbox, bolts up fine but requires a different steering shaft end. I used a YJ steering shaft on mine to blend the 99 TJ box to the XJ tilt column I used. TJ ones are also 3.5 ratio. Even XJ ones will bolt up but like the TJ have a different input shaft size.
Dave