Portugal have taken a 1-0 lead over Ghana after defender John Boye conceded an own goal in the 31st minute.