origdir="${PWD}"
COMPREPLY=()
portagedir="$( (source /etc/make.globals
portagedir="$( (source /usr/share/portage/config/make.globals
source /etc/make.conf
source /etc/portage/make.conf
echo ${PORTDIR}) )"
if [ -z "${portagedir}" ]; then
portagedir=/usr/portage