--- a/tcl-8.5.11.ebuild 2012-03-06 12:31:08.000000000 -0600 +++ a/tcl-8.5.11.ebuild 2012-03-14 21:47:28.276121469 -0500 @@ -71,7 +71,7 @@ S= emake DESTDIR="${D}" install # fix the tclConfig.sh to eliminate refs to the build directory - local mylibdir=$(get_libdir) ; mylibdir=${mylibdir//\/} + local mylibdir=$(get_libdir) sed -i \ -e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L${EPREFIX}/usr/${mylibdir}," \ -e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='${EPREFIX}/usr/${mylibdir}/tcl${v1}/include'," \