# Use a subshell so we don't have to protect the variables in
# the current scope
(
eval $(portageq envvar -v PORTDIR)
: ${PORTDIR="$(portageq get_repo_path $(portageq envvar EROOT) gentoo)"}
echo "${PORTDIR}"
)
} # }}}