--- portage/eclass/python-utils-r1.eclass 2013-03-28 05:31:15.000000000 -0700 +++ cygwin64-overlay/eclass/python-utils-r1.eclass 2013-04-08 17:06:56.958952000 -0700 @@ -601,7 +601,10 @@ python_optimize() { for d; do # make sure to get a nice path without // local instpath=${d#${D}} - instpath=/${instpath##/} + while [[ ${instpath} == /* ]] ; do + instpath=${instpath#/} + done + instpath=/${instpath} case "${EPYTHON}" in python*)