commit:     5abb92e062ed54ac8aae7ee5007defccf25fab60
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 24 04:18:58 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 24 04:28:11 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5abb92e0

games-misc/opensfx: sync ebuild with games-misc/opengfx

* Verbose logs
* Respect CC
* Fix dependencies

I can still hit bug #948588 for now...

Bug: https://bugs.gentoo.org/948588
Closes: https://bugs.gentoo.org/806983
Closes: https://bugs.gentoo.org/830991
Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-misc/opensfx/opensfx-1.0.3.ebuild | 41 ++++++++++++++++++++++++++++++---
 1 file changed, 38 insertions(+), 3 deletions(-)

diff --git a/games-misc/opensfx/opensfx-1.0.3.ebuild 
b/games-misc/opensfx/opensfx-1.0.3.ebuild
index e36280e714b0..f8e89bd702e2 100644
--- a/games-misc/opensfx/opensfx-1.0.3.ebuild
+++ b/games-misc/opensfx/opensfx-1.0.3.ebuild
@@ -1,8 +1,12 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
+PYTHON_COMPAT=( python3_{10..13} python3_13t )
+
+inherit python-any-r1 toolchain-funcs
+
 DESCRIPTION="OpenSFX data files for OpenTTD"
 HOMEPAGE="https://wiki.openttd.org/en/Basesets/OpenSFX 
https://github.com/OpenTTD/OpenSFX";
 SRC_URI="https://cdn.openttd.org/opensfx-releases/${PV}/${P}-source.tar.xz";
@@ -12,13 +16,44 @@ LICENSE="CC-BY-SA-3.0 CDDL-1.1 GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
 
-DEPEND="games-util/catcodec"
+BDEPEND="
+       games-util/catcodec
+       games-util/grfcodec
+       ${PYTHON_DEPS}
+"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-1.0.3-no-which.patch
 )
 
+src_compile() {
+       myemakeargs=(
+               GIMP=""
+               PYTHON="${EPYTHON}"
+               CC="$(tc-getCC)"
+
+               # Make logs verbose
+               _V=
+               _E=echo
+       )
+
+       emake "${myemakeargs[@]}" all
+}
+
+src_test() {
+       emake "${myemakeargs[@]}" check
+}
+
 src_install() {
-       emake INSTALL_DIR="${ED}/usr/share/openttd/baseset/" install
+       myemakeargs+=(
+               DO_NOT_INSTALL_README="true"
+               DO_NOT_INSTALL_LICENSE="true"
+               DO_NOT_INSTALL_CHANGELOG="true"
+               INSTALL_DIR="${ED}/usr/share/openttd/baseset/"
+       )
+
+       emake "${myemakeargs[@]}" install
+
        dodoc docs/{changelog.txt,readme.ptxt}
+       einstalldocs
 }

Reply via email to