#!/usr/bin/env pkgcore-ebuild-helper

eqawarn "QA Notice: '${HELPER_NAME}' is deprecated in EAPI '${HELPER_EAPI}'"

# find original, nondeprecated helper and execute it by removing the EAPI where
# it's deprecated from PATH and searching for the old implementation
ORIG_PATH=${PATH}
export PATH=${PATH/:${PKGCORE_BIN_PATH}\/helpers\/${HELPER_EAPI}/}
ORIG_HELPER=$(type -P ${HELPER_NAME})
export PATH=${ORIG_PATH}

"${ORIG_HELPER}" "$@"
