--- s/wxwidgets.eclass 2013-08-14 23:28:00.091482000 +0900 +++ b/wxwidgets.eclass 2012-03-04 13:01:32.000000000 +0900 @@ -71,13 +71,13 @@ # newer versions don't have a seperate debug profile for wxdebug in xxx release- debug-; do wxconf="${wxtoolkit}-${wxchar}-${wxdebug/xxx/}${WX_GTK_VER}" - if [[ -f /usr/$(get_libdir)/wx/config/${wxconf} ]]; then + if [[ -f ${EPREFIX}/usr/$(get_libdir)/wx/config/${wxconf} ]]; then # if this is a wxBase install, die in pkg_setup [[ ${wxtoolkit} == "base" ]] && WXBASE_DIE=1 else continue fi - WX_CONFIG="/usr/$(get_libdir)/wx/config/${wxconf}" + WX_CONFIG="${EPREFIX}/usr/$(get_libdir)/wx/config/${wxconf}" WX_ECLASS_CONFIG="${WX_CONFIG}" break done @@ -229,7 +231,7 @@ debug-print "wxconf is ${wxconf}" # if this doesn't work, something is seriously screwed - if [[ ! -f /usr/$(get_libdir)/wx/config/${wxconf} ]]; then + if [[ ! -f ${EPREFIX}/usr/$(get_libdir)/wx/config/${wxconf} ]]; then echo eerror "Failed to find configuration ${wxconf}" echo @@ -238,7 +240,7 @@ debug-print "Found config ${wxconf} - setting WX_CONFIG" - export WX_CONFIG="/usr/$(get_libdir)/wx/config/${wxconf}" + export WX_CONFIG="${EPREFIX}/usr/$(get_libdir)/wx/config/${wxconf}" debug-print "WX_CONFIG is ${WX_CONFIG}"