public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: games-strategy/7k-ambition/, games-strategy/7k-ambition/files/
@ 2025-09-12 10:49 David Roman
  0 siblings, 0 replies; only message in thread
From: David Roman @ 2025-09-12 10:49 UTC (permalink / raw
  To: gentoo-commits

commit:     55f2760e3c126f4dbb8f76b9c0ef7ff9952b00f1
Author:     Tim Sviridov <Lt.Infiltrator <AT> gmail <DOT> com>
AuthorDate: Wed Sep 10 09:31:28 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Sep 10 09:41:47 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=55f2760e

games-strategy/7k-ambition: Fix build failure due to gettext version

Signed-off-by: Tim Sviridov <Lt.Infiltrator <AT> gmail.com>

 .../7k-ambition/7k-ambition-3.2.5-r1.ebuild        | 81 ++++++++++++++++++++++
 .../files/7k-ambition-3.2.5-gettext-fix.patch      | 13 ++++
 2 files changed, 94 insertions(+)

diff --git a/games-strategy/7k-ambition/7k-ambition-3.2.5-r1.ebuild b/games-strategy/7k-ambition/7k-ambition-3.2.5-r1.ebuild
new file mode 100644
index 0000000000..da4734c238
--- /dev/null
+++ b/games-strategy/7k-ambition/7k-ambition-3.2.5-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools desktop toolchain-funcs xdg
+
+if [[ ${PV} == *9999* ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://git.code.sf.net/p/seven-kingdoms-ambition/code"
+	EGIT_BRANCH="next"
+else
+	SRC_URI="https://github.com/Infiltrator/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="Seven Kingdoms: Ambition"
+HOMEPAGE="https://seven-kingdoms-ambition.sourceforge.io/"
+SRC_URI+=" https://sourceforge.net/projects/seven-kingdoms-ambition/files/${PN}.png/download -> ${PN}.png
+	music? ( https://www.7kfans.com/downloads/7kaa-music-2.15.tar.bz2 )
+"
+
+LICENSE="GPL-2
+		music? ( 7k-music )"
+SLOT="0"
+IUSE="+nls +multiplayer +music"
+RESTRICT="music? ( bindist ) mirror"
+
+DEPEND="
+	dev-libs/boost:=
+	nls? ( <=sys-devel/gettext-0.22.5-r2 )
+	multiplayer? (
+		net-libs/enet:1.3=
+		net-misc/curl:=
+	)
+	media-libs/libsdl2[X,video]
+	media-libs/openal:=
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-gettext-fix.patch" )
+
+src_unpack() {
+	if [[ ${PV} == *9999* ]]; then
+		git-r3_src_unpack
+	fi
+
+	default
+}
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+src_configure() {
+	local myeconfargs=(
+		$(use_enable nls)
+		$(use_enable multiplayer)
+	)
+	econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+	emake AR="$(tc-getAR)"
+}
+
+src_install() {
+	default
+
+	if use music ; then
+		insinto "usr/share/${PN}/"
+		doins -r "${WORKDIR}/7kaa-music/MUSIC"
+
+		dodoc "${WORKDIR}/7kaa-music/README-Music.txt" "${WORKDIR}/7kaa-music/COPYING-Music.txt"
+	fi
+
+	doicon "${DISTDIR}/${PN}.png"
+
+	make_desktop_entry ${PN} "Seven Kingdoms: Ambition" /usr/share/pixmaps/${PN}.png Game
+}

diff --git a/games-strategy/7k-ambition/files/7k-ambition-3.2.5-gettext-fix.patch b/games-strategy/7k-ambition/files/7k-ambition-3.2.5-gettext-fix.patch
new file mode 100644
index 0000000000..564ac47fef
--- /dev/null
+++ b/games-strategy/7k-ambition/files/7k-ambition-3.2.5-gettext-fix.patch
@@ -0,0 +1,13 @@
+diff --git a/configure.ac b/configure.ac
+index 4b9f34fb..a3a0f55d 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -108,7 +108,7 @@ if test x"$ac_cv_string_strcasecmp" = "xno" ; then
+ fi
+ 
+ AM_GNU_GETTEXT([external])
+-AM_GNU_GETTEXT_VERSION([0.23])
++AM_GNU_GETTEXT_VERSION([0.20])
+ 
+ # Configuration variables
+ 


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-09-12 10:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-12 10:49 [gentoo-commits] repo/proj/guru:master commit in: games-strategy/7k-ambition/, games-strategy/7k-ambition/files/ David Roman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox