From b8c7370a682e4e29cda623222d17a790c01c3642 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 7 Aug 2024 12:37:21 +0100 Subject: gentoo auto-resync : 07:08:2024 - 12:37:20 --- games-strategy/dunelegacy/Manifest | 5 +++ .../dunelegacy/dunelegacy-0.97.02.ebuild | 49 ++++++++++++++++++++++ .../files/dunelegacy-0.97.02-flags.patch | 14 +++++++ .../files/dunelegacy-0.97.02-flickering.patch | 15 +++++++ .../files/dunelegacy-0.97.02-text-manager.patch | 15 +++++++ 5 files changed, 98 insertions(+) create mode 100644 games-strategy/dunelegacy/dunelegacy-0.97.02.ebuild create mode 100644 games-strategy/dunelegacy/files/dunelegacy-0.97.02-flags.patch create mode 100644 games-strategy/dunelegacy/files/dunelegacy-0.97.02-flickering.patch create mode 100644 games-strategy/dunelegacy/files/dunelegacy-0.97.02-text-manager.patch (limited to 'games-strategy/dunelegacy') diff --git a/games-strategy/dunelegacy/Manifest b/games-strategy/dunelegacy/Manifest index 12b59654a12b..ef1ce45f08e0 100644 --- a/games-strategy/dunelegacy/Manifest +++ b/games-strategy/dunelegacy/Manifest @@ -1,4 +1,9 @@ AUX dunelegacy-0.96.4-init-mid.patch 1926 BLAKE2B 47c2f502e9428f0534a1684db50aa1a41103464770f8da66f69b0add7687f42e07e4f5e612f3c425f3d0f932da29d7a6049342b6bbd0b0166cbec4d5076703c6 SHA512 a10fb87b3bceb367e53dd3687354871fc8bec3dff2025b37c4426994a206c7afbd416c003f2eddfe3d1cef7e845942d2a8db4529e84c38d4b29d75d016fa8729 +AUX dunelegacy-0.97.02-flags.patch 1004 BLAKE2B 8638fb2dfb3ed635a3c811632bcda75a4d36355a7d7662d9bb95b95e2d4e8b6f1386bef9c02f8b9fc9233a2b1fa6742e4e4b55fb9523c9029d6cc3b78516dc64 SHA512 4dba160f49cb6147ee54eccb8d8b08a975b273675851f1655a1cd4230ff29177e468f6d9529a6bc873eab680f2ce7476915fd3e5cbeecb48e9158382ee4361ae +AUX dunelegacy-0.97.02-flickering.patch 382 BLAKE2B 8f74815dfc0912de0b19528bb95f05fe645355f0580563a1a34333f5c2c2bfa43786f25ed0a425304ff91a321da6f7b54de34e38eb379d6c0aed1666b3e1950f SHA512 3139652f0278c2f629a405ad9b396cd2e100f7bccd30251bce84d89ea21e622fc016f653d04d2b7f0c98c285ab0bf1087954fa7df20f5d30ff91ff44c9b7c825 +AUX dunelegacy-0.97.02-text-manager.patch 393 BLAKE2B 30e10ca65bdb6255db04b63acf758db202e7e94b526f25cef9655845bfb2a7a77606fcc78f6e3f2d9367466ce04a8d70fc6cac8a2e282b4f5c8cdeb015008482 SHA512 350cd228e030f44471ac32a6e1e581c117887cffdd2d9dc40eb551c3a3b3956b97597e097e4b27f5774a41692c3fa85a0da0e7ee06df51b2e62bc5769f6d17c3 DIST dunelegacy-0.96.4-src.tar.bz2 2513167 BLAKE2B 119ccabc319a54fbc85906a215ccb44079dabf82568dbd446447bbc6fade873c4760da83a50351acf63aec49bf8364c50386eef2b0681bc7a895db870673340f SHA512 d6e152da4bc526ed05ac89fafc2e3467b1a95b3670987eeca262b7207e7dbe67dd228483cb5a432fe08232e34a52d4cb500b42cd186adb4bcde5da17419f7db0 +DIST dunelegacy-0.97.02.zip 3241175 BLAKE2B bd99c0d186e3ea2ee94fa77aa9587990ffae51fad30178669a4686c1bf0793c5949c5f13c360359ba44fb6989c00a2a509d746e071b9dc578d966d346b932a74 SHA512 07dd04b3348ed9dc729eabfb7d1646d4ac30351911ca3024991fad58d6ee48f478068fbab25855d637890d5e549ae687af57231c8bf0af1ef8e815fedfbdfd54 EBUILD dunelegacy-0.96.4-r1.ebuild 832 BLAKE2B 7a8a5cecbef19730442a24e7d296e5063752454c66aefbf2e9475df610e06dbfdac71b27a85418e41812bc82b099fe2ce7b055bb74bc151dcf9236b7798816a9 SHA512 6103ec66e4f6b288ebfbc7e693037805204bd7661e26c8b7e2f686e84621314119b98673a91af4f20d2c5f0aa42091fc0cdc5f5d13134eefd58831f06cd26d99 +EBUILD dunelegacy-0.97.02.ebuild 1006 BLAKE2B 407d8cd7fd71865d254f9e5af8214c4ddd726d2f11f145f7fe4a4ab30df0e375679685ee93dc7231bb640d73933641ed95cd689ac02554844d52a947af249be4 SHA512 ef283e71e3038199316f66c1dfaf35ceca548e56e98e191a5da9538ad8bf689754c3f5f649fa60f916f4c81ed51bf57d7fd8e5f4bbb64168974095dfbc3cb851 MISC metadata.xml 990 BLAKE2B 061e344e58047df210eea2e672e1c38cacb01ac09b9c56828e4ac253ebff8b7aba40249dbffe696dc2b0343074c3c280b677dcb8e8bc64028c9ca85b51f260fd SHA512 b43c0f161108abd41a3fbe73ca1c1751e828d8fc909be52dd46ff145b5a3efeb6c8876d94d9cf4c7fb24e7f711830af1645ff9595500def47ad5833341f4d3e0 diff --git a/games-strategy/dunelegacy/dunelegacy-0.97.02.ebuild b/games-strategy/dunelegacy/dunelegacy-0.97.02.ebuild new file mode 100644 index 000000000000..990a7648d9ac --- /dev/null +++ b/games-strategy/dunelegacy/dunelegacy-0.97.02.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools desktop xdg + +DESCRIPTION="Updated clone of Westood Studios' Dune II" +HOMEPAGE="https://dunelegacy.sourceforge.net" + +COMMIT="6ea9ac96854daa8c75ba429e78dc6716b147e106" +SRC_URI="https://dev.gentoo.org/~chewi/distfiles/${P}.zip" +S="${WORKDIR}/${PN}-code-${COMMIT}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~riscv ~x86" + +RDEPEND=" + media-libs/libsdl2[sound,threads(+),video] + media-libs/sdl2-mixer[midi] + media-libs/sdl2-ttf +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-arch/unzip + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${P}-flickering.patch + "${FILESDIR}"/${P}-text-manager.patch + "${FILESDIR}"/${P}-flags.patch +) + +src_prepare() { + default + sed -i "s/0\.96\.4/${PV}/g" configure.ac || die + eautoreconf +} + +src_install() { + default + + doicon -s scalable ${PN}.svg + doicon -s 48 ${PN}.png + newicon -s 128 ${PN}-128x128.png ${PN}.png + make_desktop_entry ${PN} "Dune Legacy" +} diff --git a/games-strategy/dunelegacy/files/dunelegacy-0.97.02-flags.patch b/games-strategy/dunelegacy/files/dunelegacy-0.97.02-flags.patch new file mode 100644 index 000000000000..1c18bc0bd0c1 --- /dev/null +++ b/games-strategy/dunelegacy/files/dunelegacy-0.97.02-flags.patch @@ -0,0 +1,14 @@ +diff -Naur a/configure.ac b/configure.ac +--- a/configure.ac 2022-12-29 05:22:09.000000000 +0000 ++++ b/configure.ac 2024-07-28 21:30:14.793202700 +0100 +@@ -19,8 +19,8 @@ + AC_SUBST(dunelegacydatadir) + + dnl Some flags for gcc +-CXXFLAGS="-std=c++14 -pthread -fPIC -O3 -pipe -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-shift-negative-value -Wno-unknown-pragmas -D__STDC_FORMAT_MACROS -DNDEBUG" +-CFLAGS="-std=c99 -pthread -fPIC -O3 -pipe -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-shift-negative-value -Wno-unknown-pragmas -D__STDC_FORMAT_MACROS -DNDEBUG" ++CXXFLAGS="$CXXFLAGS -std=c++14 -pthread -fPIC -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-shift-negative-value -Wno-unknown-pragmas -D__STDC_FORMAT_MACROS -DNDEBUG" ++CFLAGS="$CFLAGS -std=c99 -pthread -fPIC -pedantic -Wall -Wextra -Wno-unused-parameter -Wno-shift-negative-value -Wno-unknown-pragmas -D__STDC_FORMAT_MACROS -DNDEBUG" + dnl Additional flags: -Wconversion -Wno-sign-conversion -Wlogical-op + + dnl Some flags for clang diff --git a/games-strategy/dunelegacy/files/dunelegacy-0.97.02-flickering.patch b/games-strategy/dunelegacy/files/dunelegacy-0.97.02-flickering.patch new file mode 100644 index 000000000000..19a125f8c797 --- /dev/null +++ b/games-strategy/dunelegacy/files/dunelegacy-0.97.02-flickering.patch @@ -0,0 +1,15 @@ +# https://sourceforge.net/p/dunelegacy/bugs/75/#12bf + + Fix flickering in the game + +--- a/src/Game.cpp ++++ b/src/Game.cpp +@@ -1094,8 +1094,6 @@ void Game::runMainLoop() { + + drawScreen(); + +- SDL_RenderPresent(renderer); +- + SDL_SetRenderTarget(renderer, nullptr); + SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255); + SDL_RenderClear(renderer); diff --git a/games-strategy/dunelegacy/files/dunelegacy-0.97.02-text-manager.patch b/games-strategy/dunelegacy/files/dunelegacy-0.97.02-text-manager.patch new file mode 100644 index 000000000000..25c339198ab7 --- /dev/null +++ b/games-strategy/dunelegacy/files/dunelegacy-0.97.02-text-manager.patch @@ -0,0 +1,15 @@ +# https://aur.archlinux.org/packages/dunelegacy +# https://aur.archlinux.org/cgit/aur.git/tree/text_manager.patch?h=dunelegacy + + Fix missing inclusion + +--- a/include/FileClasses/TextManager.h ++++ b/include/FileClasses/TextManager.h +@@ -21,6 +21,7 @@ + #include "IndexedTextFile.h" + #include "MentatTextFile.h" + ++#include + #include + #include + #include -- cgit v1.2.3