Here's a longer article explaining more about the details and background. It gives a slightly more complicated picture.
Also, the Portuguese solution isn't legalization, but decriminalization, which is different.
http://www.spiegel.de/international/...-a-891060.html