What is important is the intention.
I mean, is a shame that it has been ruined but at least you care for that person and you have bought him/her something; all the people that I know
(not my family and my best friend included) never bring me nothing from their trips or even for my birthday! But if they will, even if it’s broke or whatever, I’ll apreciate the intention.
If you want, you can still give it to said person and explain what had happened or just tell him/her what had happened and buy him/her a new one next time.
I’m sure that he/she will apreciate what you did.
However, if he/she doesn’t, fuck him/her.
If it makes you feel better, mine also had been broken on a flight because it wasn’t well put in the suitcase.