To do it correctly is pretty hard. You will have to grind a flat on the diff casting. You will also have to grind the knuckles off, rotate them, and weld them back on to restore the caster angle. A Z-shaped drag link will be necessary to eliminate bump steer & other steering issues. The rear is pretty straight forward. This is the condensed version, for more in-depth info, surf over to binderplanet.com. There's tons of posts about it over there.
I used Scout II axles to swap into my YJ when I went springover. It's not impossible, but it does involve some work with a grinder. As was mentioned, I ground down the passenger side of the pig where the old perch was to make it round (not flat as was said) To get the top perfectly flat would have been near impossible. Since I bought my spring perches from Summit Racing, they were pretty easy to work with and I placed it along side the ground off pig and traced the outline with a Sharpie. I ground it down to match and welded it on. Driver's side, just groind off the old and weld on the new. I did not change the caster angle since the Scout axle has 0 degrees of caster from the factory.
Now, let's talk about caster angles. At the time I did mine, there was a lot of talk on the net about how if you don't cut and rotate your knuckles to give you the sweet spot of 6 degrees caster, then you will have bump steer like crazy, you won't be able to drive it at all, your horse will die, your wife will leave you and your dog will have you arrested for tax evasion. None of that happened. You know why? Because 0 degrees of caster is not the Antichrist. If you figure, the Scout came from the factory with 0 degrees and what does this mean? It means you have to return the steering wheel to center yourself after you exit a turn. Nothing more, nothing less.
Did I have drive-ability issues with mine? Not that I could positively attibute to the lack of caster. I was running 35x15.50 Swamper SX's on 12" wide rims. Did it drive like a sports car? No - because I didn't BUILD a sports car. I built an off-road rig that I could also take on the highway.
Conventional wisdom tells us that with the lack of caster will also lead to excessive u-joint wear. Funny thing is that of all the u-joints that I broke (somewhere around 15), NONE of them were in the front driveshaft. They were all on the rear driveshaft and they just about all had to do with excessive skinny pedal use. I ran a CV driveshaft up front, but a standard one in the rear. By the time I saved up enough for a CV shaft in the rear, I got rid of the rig.
Now, I'm not saying that doing all those things are not a good idea. I'm just saying don't let the amount of work that some people do to build it the right way scare you off from starting your project. Just don't jury-rig stuff. Use good quality materials and weld the stuff up right. I've seen guys that cut and turned the knuckles, set up the caster right, etc. and then turn around and take a chunk of spring steel to build a spring perch because they were too cheap to buy some pre-made perches.