commit:     ca104aea54a40ea4b8f6fdbe143af07af00ce7b7
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 12 23:58:06 2021 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Fri Mar 12 23:59:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca104aea

games-misc/opengfx: fix compilation with -native-symlinks

Closes: https://bugs.gentoo.org/775572
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 games-misc/opengfx/opengfx-0.6.0.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/games-misc/opengfx/opengfx-0.6.0.ebuild 
b/games-misc/opengfx/opengfx-0.6.0.ebuild
index 7e39ffe5a49..6c5137c6549 100644
--- a/games-misc/opengfx/opengfx-0.6.0.ebuild
+++ b/games-misc/opengfx/opengfx-0.6.0.ebuild
@@ -1,9 +1,12 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
 MY_PN="OpenGFX"
+PYTHON_COMPAT=( python3_{7..9} )
+
+inherit python-any-r1
 
 DESCRIPTION="OpenGFX data files for OpenTTD"
 HOMEPAGE="http://bundles.openttdcoop.org/opengfx/";
@@ -23,11 +26,14 @@ DOCS=( "README.md" "changelog.txt" )
 
 src_prepare() {
        default
+
+       python-any-r1_pkg_setup
 }
 
 src_compile() {
        myemakeargs=(
                GIMP=""
+               PYHTON="${EPYTHON}"
        )
 
        emake "${myemakeargs[@]}" all
@@ -36,6 +42,7 @@ src_compile() {
 src_test() {
        myemakeargs=(
                GIMP=""
+               PYHTON="${EPYTHON}"
        )
 
        emake "${myemakeargs[@]}" check
@@ -48,6 +55,7 @@ src_install() {
                DO_NOT_INSTALL_CHANGELOG="true"
                GIMP=""
                INSTALL_DIR="${ED}/usr/share/games/openttd/data/"
+               PYHTON="${EPYTHON}"
        )
 
        emake "${myemakeargs[@]}" install

Reply via email to