How do you evolve yanma on Pokemon pearl?

Yanma evolves when it is leveled up while knowing AncientPower.