commit:     0e88b50e735df339e4493f512c5e8178f9ffa1f4
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  2 20:41:22 2021 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sat Jan  2 20:41:39 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e88b50e

media-libs/harfbuzz: Fixed python script shebangs

Closes: https://bugs.gentoo.org/762415
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 media-libs/harfbuzz/harfbuzz-2.7.4.ebuild | 12 +++++++++---
 media-libs/harfbuzz/harfbuzz-9999.ebuild  | 14 ++++++++++----
 2 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/media-libs/harfbuzz/harfbuzz-2.7.4.ebuild 
b/media-libs/harfbuzz/harfbuzz-2.7.4.ebuild
index 89e06e272b9..19566a5b8ed 100644
--- a/media-libs/harfbuzz/harfbuzz-2.7.4.ebuild
+++ b/media-libs/harfbuzz/harfbuzz-2.7.4.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_COMPAT=( python3_{6..9} )
 
 inherit flag-o-matic meson multilib-minimal python-any-r1 xdg-utils
 
@@ -44,7 +44,7 @@ BDEPEND="
 "
 
 pkg_setup() {
-       use test && python-any-r1_pkg_setup
+       python-any-r1_pkg_setup
        if ! use debug ; then
                append-cppflags -DHB_NDEBUG
        fi
@@ -62,6 +62,12 @@ src_prepare() {
 
        # bug 618772
        append-cxxflags -std=c++14
+
+       # bug 762415
+       local pyscript
+       for pyscript in $(find -type f -name "*.py") ; do
+               python_fix_shebang -q "${pyscript}"
+       done
 }
 
 meson_multilib_native_feature() {

diff --git a/media-libs/harfbuzz/harfbuzz-9999.ebuild 
b/media-libs/harfbuzz/harfbuzz-9999.ebuild
index d8d69233362..19566a5b8ed 100644
--- a/media-libs/harfbuzz/harfbuzz-9999.ebuild
+++ b/media-libs/harfbuzz/harfbuzz-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_COMPAT=( python3_{6..9} )
 
 inherit flag-o-matic meson multilib-minimal python-any-r1 xdg-utils
 
@@ -15,7 +15,7 @@ if [[ ${PV} = 9999 ]] ; then
        inherit git-r3
 else
        SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> 
${P}.tar.gz"
-       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 
~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
 fi
 
 LICENSE="Old-MIT ISC icu"
@@ -44,7 +44,7 @@ BDEPEND="
 "
 
 pkg_setup() {
-       use test && python-any-r1_pkg_setup
+       python-any-r1_pkg_setup
        if ! use debug ; then
                append-cppflags -DHB_NDEBUG
        fi
@@ -62,6 +62,12 @@ src_prepare() {
 
        # bug 618772
        append-cxxflags -std=c++14
+
+       # bug 762415
+       local pyscript
+       for pyscript in $(find -type f -name "*.py") ; do
+               python_fix_shebang -q "${pyscript}"
+       done
 }
 
 meson_multilib_native_feature() {

Reply via email to