Portugal is generally not connected by train anywhere else.
Last I checked we didn't even have more than one or 2 routes to Spain by train, due to different gauges, and spain has different gauges from france.
If you want to go from Paris to Lisbon by train expect a whole day of travel if not more, with multiple changes