The swap is popular enough that a couple of companies sell swap kits. (see: Destroked.com for example). It's popular for the 2008-2010 trucks since the 6.4 is junk.
As for CA emissions, yeah, that's another issue. You have to meet the emissions of the chassis, so since it's a 2008 you'd have...