Planned engineering works are set to scupper travel from Portsmouth with lines set to be closed.