mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-geosciences/gpsd: sync live
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -213,10 +213,11 @@ python_test() {
|
||||
:;
|
||||
}
|
||||
|
||||
python_install(){
|
||||
mkdir "${T}/scripts" || die
|
||||
grep -Rl "${D}/usr/bin" -e "/usr/bin/env python" | xargs mv -t "${T}/scripts"
|
||||
python_doscript "${T}"/scripts/*
|
||||
python_install() {
|
||||
while read -d '' -r file ; do
|
||||
grep -q "#!/usr/bin/env python" "${file}" && python_doscript "${file}"
|
||||
done < <(find "${T}"/scripts -type f -print0)
|
||||
|
||||
distutils-r1_python_install
|
||||
}
|
||||
|
||||
@@ -232,6 +233,9 @@ src_install() {
|
||||
|
||||
# Install correct multi-python copy
|
||||
pushd "${PN}"-* || die
|
||||
mkdir -p "${T}/scripts" || die
|
||||
grep -Rl "${D}/usr/bin" -e "/usr/bin/env python" | xargs cp -t "${T}/scripts"
|
||||
assert "Moving Python scripts failed"
|
||||
distutils-r1_src_install
|
||||
popd || die
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user