Barrel has nothing to do with it.
Angles are set to match those of the comb and toe of the stock, using a pad grinding fixture. Easy-peasy, if you want to DIY you only need buy the fixture (probably around $30 or so) , and have a benchtop belt sander with a table for professional results.