The Effect of Porosity on X-Ray Emission-Line Profiles from Hot-Star Winds