commit: 5ee31976390cc5e88133564d0630c3c528d968b1 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Tue Sep 2 15:20:40 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Wed Sep 24 14:59:47 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ee31976
games-sports/dustrac: add Qt6-based 2.1.1_p20250924 snapshot In this state, the snapshot actually works better than currently Qt5-based release. Bug: https://bugs.gentoo.org/962043 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> games-sports/dustrac/Manifest | 1 + .../dustrac/dustrac-2.1.1_p20250924.ebuild | 63 ++++++++++++++++++++++ .../files/dustrac-2.1.1_p20250924-cmake.patch | 27 ++++++++++ 3 files changed, 91 insertions(+) diff --git a/games-sports/dustrac/Manifest b/games-sports/dustrac/Manifest index ec3133d219fe..fa0eba60491c 100644 --- a/games-sports/dustrac/Manifest +++ b/games-sports/dustrac/Manifest @@ -1 +1,2 @@ DIST dustrac-2.1.1.tar.gz 17392345 BLAKE2B 2efc82b0552f202aa1f248278f61d4ea17ac9d3d652b17de69a1888e09147c0c2659c90ce6bdced9cd361d99ff4fc179f4a6aa703c45f8eabf25aa69fb516bbf SHA512 9a49cd0302ab47b12ee587a33cc74c1df2bf6cf7925141cbf957fc90a5c1a34423d4420be28bcb6909a862daa12d6214b397fd0fc77e9e18fa649f3ca5c2e1ab +DIST dustrac-2.1.1_p20250924-73617c08.tar.gz 17390002 BLAKE2B 8c3a75e58126f9d580207eccb7cebf2789a9d072a507aa2650e5807d8eea3a47d870134ea47f0cda70222b349003f221a6729ed5d5f244c23c8a44308438d945 SHA512 2b1c389ff73ff7cb0327d6cd00628924eaf8699aef5f4a550436bb9029a10d8f21536f4310673b155bf980165b30649b6ec12cddcdf1a0b7f3d84c15cb331fec diff --git a/games-sports/dustrac/dustrac-2.1.1_p20250924.ebuild b/games-sports/dustrac/dustrac-2.1.1_p20250924.ebuild new file mode 100644 index 000000000000..349453c7f66f --- /dev/null +++ b/games-sports/dustrac/dustrac-2.1.1_p20250924.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +COMMIT=73617c081e42a1d4b9044ac1545522ba5cd667a9 +inherit cmake xdg + +DESCRIPTION="Tile-based, cross-platform 2D racing game" +HOMEPAGE="https://juzzlin.github.io/DustRacing2D/" +# SRC_URI="https://github.com/juzzlin/DustRacing2D/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/juzzlin/DustRacing2D/archive/${COMMIT}.tar.gz -> ${P}-${COMMIT:0:8}.tar.gz" +S="${WORKDIR}/DustRacing2D-${COMMIT}" + +LICENSE="GPL-3+ CC-BY-SA-3.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-qt/qtbase:6[gui,opengl,sql,widgets,xml] + media-fonts/ubuntu-font-family + media-libs/libvorbis + media-libs/openal + virtual/opengl +" +DEPEND="${RDEPEND}" +BDEPEND=" + dev-qt/qttools:6[linguist] + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}"/${P}-cmake.patch ) # downstream patch + +src_configure() { + # -DGLES=ON didn't build for me but maybe just need use flags on some Qt package? + # Maybe add a local gles use flag + local mycmakeargs=( + -DReleaseBuild=ON + -DSystemFonts=ON + -DOpenGL_GL_PREFERENCE=GLVND + -DDATA_PATH=/usr/share/${PN} + -DBIN_PATH=/usr/bin + -DDOC_PATH=/usr/share/doc/${PF} + -DBUILD_TESTING=$(usex test) + -DUSE_CCACHE=OFF + ) + cmake_src_configure +} + +src_test() { + local -x QT_QPA_PLATFORM=offscreen + cmake_src_test +} + +src_install() { + cmake_src_install + + dosym ../../fonts/ubuntu-font-family/UbuntuMono-B.ttf /usr/share/${PN}/fonts/UbuntuMono-B.ttf + dosym ../../fonts/ubuntu-font-family/UbuntuMono-R.ttf /usr/share/${PN}/fonts/UbuntuMono-R.ttf +} diff --git a/games-sports/dustrac/files/dustrac-2.1.1_p20250924-cmake.patch b/games-sports/dustrac/files/dustrac-2.1.1_p20250924-cmake.patch new file mode 100644 index 000000000000..11c4a09509c5 --- /dev/null +++ b/games-sports/dustrac/files/dustrac-2.1.1_p20250924-cmake.patch @@ -0,0 +1,27 @@ +From 2644b9269129065ec709fa2712f58c4786e5eb69 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <[email protected]> +Date: Mon, 1 Sep 2025 21:50:15 +0200 +Subject: [PATCH] Do not override CMAKE_CXX_FLAGS + +Signed-off-by: Andreas Sturmlechner <[email protected]> +--- + CMakeLists.txt | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 4a1e18ae..f36b4ed7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -126,8 +126,7 @@ elseif(WIN32) + endif() + + if(CMAKE_COMPILER_IS_GNUCXX OR MINGW OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") +- add_compile_options("$<$<CONFIG:RELEASE>:-W;-Wall;-O3;-pedantic;-fomit-frame-pointer>") +- add_compile_options("$<$<CONFIG:DEBUG>:-W;-Wall;-O0;-pedantic>") ++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wall -fomit-frame-pointer -finline-functions") + + if(USE_CCACHE) + # Automatically use ccache if found +-- +2.51.0 +
