app-portage/repoman: Remove Prefix handling code

Package-Manager: Portage-2.3.6, Repoman-2.3.2
This commit is contained in:
David Seifert
2017-05-27 17:46:04 +02:00
parent dd4dc053a9
commit 33146ccf42

View File

@@ -8,7 +8,7 @@ PYTHON_REQ_USE='bzip2(+)'
inherit distutils-r1
if [[ ${PV} == 9999 ]]; then
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/portage.git"
S="${WORKDIR}/${P}/repoman"
@@ -30,24 +30,6 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
python_prepare_all() {
distutils-r1_python_prepare_all
if [[ -n "${EPREFIX}" ]] ; then
einfo "Prefixing shebangs ..."
local file
while read -r -d $'\0' file; do
local shebang=$(head -n1 "${file}")
if [[ ${shebang} == "#!"* && ! ${shebang} == "#!${EPREFIX}/"* ]] ; then
sed -i -e "1s:.*:#!${EPREFIX}${shebang:2}:" "${file}" || \
die "sed failed"
fi
done < <(find . -type f -print0)
fi
}
python_test() {
esetup.py test
}