From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B8E97159C9B for ; Mon, 12 Aug 2024 12:33:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DFA53E2D0A; Mon, 12 Aug 2024 12:33:06 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C9EDCE2D0A for ; Mon, 12 Aug 2024 12:33:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D867634301D for ; Mon, 12 Aug 2024 12:33:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3136B1EC8 for ; Mon, 12 Aug 2024 12:33:04 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1723465946.5aac1340ca4fbc0c59d111b860688e63f6a9a1cf.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/gpsd/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-geosciences/gpsd/gpsd-9999.ebuild X-VCS-Directories: sci-geosciences/gpsd/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5aac1340ca4fbc0c59d111b860688e63f6a9a1cf X-VCS-Branch: master Date: Mon, 12 Aug 2024 12:33:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 47fd5d85-67b1-43f8-b73d-1970a4240b3f X-Archives-Hash: f020b4cc7748d7f9791216c35a6bd4df commit: 5aac1340ca4fbc0c59d111b860688e63f6a9a1cf Author: Sam James gentoo org> AuthorDate: Mon Aug 12 12:31:53 2024 +0000 Commit: Sam James gentoo org> CommitDate: Mon Aug 12 12:32:26 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5aac1340 sci-geosciences/gpsd: sync live Signed-off-by: Sam James gentoo.org> sci-geosciences/gpsd/gpsd-9999.ebuild | 12 ++++++++---- 1 file 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 }