commit:     479943c4245e7ef3ffe896f89d109340ff1225c4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 26 05:09:57 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 26 05:10:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=479943c4

games-simulation/openttd: add 9999

Signed-off-by: Sam James <sam <AT> gentoo.org>

 games-simulation/openttd/openttd-14.1.ebuild                | 11 +++++++++--
 .../openttd/{openttd-14.1.ebuild => openttd-9999.ebuild}    | 13 +++++++++----
 2 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/games-simulation/openttd/openttd-14.1.ebuild 
b/games-simulation/openttd/openttd-14.1.ebuild
index dcc100476de9..a90568b406fa 100644
--- a/games-simulation/openttd/openttd-14.1.ebuild
+++ b/games-simulation/openttd/openttd-14.1.ebuild
@@ -7,11 +7,18 @@ inherit cmake xdg
 
 DESCRIPTION="A clone of Transport Tycoon Deluxe"
 HOMEPAGE="https://www.openttd.org/";
-SRC_URI="https://cdn.openttd.org/openttd-releases/${PV}/${P}-source.tar.xz";
+
+if [[ ${PV} == 9999 ]] ; then
+       EGIT_REPO_URI="https://github.com/OpenTTD/OpenTTD";
+       inherit git-r3
+else
+       
SRC_URI="https://cdn.openttd.org/openttd-releases/${PV}/${P}-source.tar.xz";
+
+       KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+fi
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
 IUSE="allegro cpu_flags_x86_sse debug dedicated +fluidsynth icu +lzma lzo 
+openmedia +png +sdl timidity +truetype +zlib"
 REQUIRED_USE="!dedicated? ( || ( allegro sdl ) )"
 

diff --git a/games-simulation/openttd/openttd-14.1.ebuild 
b/games-simulation/openttd/openttd-9999.ebuild
similarity index 94%
copy from games-simulation/openttd/openttd-14.1.ebuild
copy to games-simulation/openttd/openttd-9999.ebuild
index dcc100476de9..133767ae671a 100644
--- a/games-simulation/openttd/openttd-14.1.ebuild
+++ b/games-simulation/openttd/openttd-9999.ebuild
@@ -7,11 +7,18 @@ inherit cmake xdg
 
 DESCRIPTION="A clone of Transport Tycoon Deluxe"
 HOMEPAGE="https://www.openttd.org/";
-SRC_URI="https://cdn.openttd.org/openttd-releases/${PV}/${P}-source.tar.xz";
+
+if [[ ${PV} == 9999 ]] ; then
+       EGIT_REPO_URI="https://github.com/OpenTTD/OpenTTD";
+       inherit git-r3
+else
+       
SRC_URI="https://cdn.openttd.org/openttd-releases/${PV}/${P}-source.tar.xz";
+
+       KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+fi
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
 IUSE="allegro cpu_flags_x86_sse debug dedicated +fluidsynth icu +lzma lzo 
+openmedia +png +sdl timidity +truetype +zlib"
 REQUIRED_USE="!dedicated? ( || ( allegro sdl ) )"
 
@@ -61,8 +68,6 @@ DOCS=( docs/directory_structure.md )
 
 PATCHES=(
        "${FILESDIR}/${PN}-1.11.2_dont_compress_man.patch"
-       "${FILESDIR}/${PN}-13.4-gcc15.patch"
-       "${FILESDIR}/${PN}-14.1-icu-76.1.patch"
 )
 
 src_prepare() {

Reply via email to