Lay the pumpkin halves down with the rounded side up. Place two chopsticks or wooden spoons either side of one of the pumpkin halves and carefully slice all the way down, every few millimeters.
Make a glaze by mixing the maple syrup, star anise, ginger powder and some salt and pepper and use a pastry brush to spread about half of the dressing over the pumpkin halves. Insert the bay leaves into the indentations of the pumpkin.
Bake the pumpkin until tender. I recommend to check after half an hour if the pumpkin is fully cooked, and keep checking every 10 minutes after that.
Remove the pumpkin halves from the oven, then brush with the rest of the maple glaze.