I've made a small python script that generates the pin macros in the board.h file.
You need the STM32 CubeMX (previously microxplorer) application to create an ioc file, which will be converted to macros.
https://gist.github.com/mobyfab/11158882
I just tested it tonight and it seems to work fine.
It's a very basic script, so you'll probably have to hack it