Start from a system as close as possible to the new system. For example, if you were porting the library to Alpha/VMS, an appropriate starting point would be the VAX/VMS version.