summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-08-12 13:31:53 +0100
committerSam James <sam@gentoo.org>2024-08-12 13:32:26 +0100
commit5aac1340ca4fbc0c59d111b860688e63f6a9a1cf (patch)
tree3ebf79a041e555e3fb4dc17fc2df2b8128a33008 /sci-geosciences
parentsci-geosciences/gpsd: fix USE=python install (diff)
downloadgentoo-5aac1340ca4fbc0c59d111b860688e63f6a9a1cf.tar.gz
gentoo-5aac1340ca4fbc0c59d111b860688e63f6a9a1cf.tar.bz2
gentoo-5aac1340ca4fbc0c59d111b860688e63f6a9a1cf.zip
sci-geosciences/gpsd: sync live
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/gpsd/gpsd-9999.ebuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/sci-geosciences/gpsd/gpsd-9999.ebuild b/sci-geosciences/gpsd/gpsd-9999.ebuild
index 75899a3a66c3..9a4ff1315e67 100644
--- a/sci-geosciences/gpsd/gpsd-9999.ebuild
+++ b/sci-geosciences/gpsd/gpsd-9999.ebuild
@@ -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
}