I have seen this done a couple times, once on a TJ and on a couple YJ's. Looks rear nice. One person kept the factory bear claw latch, then added clevis pins on the two top corners so that it could still lock (he used the original YJ tail gate and welded the pin mounts on)
Just add the hinges to the bottom of the gate, call it a day!