commit:     d6b9264d28c64d79db648ba14090f6e15842693b
Author:     Tim Sviridov <Lt.Infiltrator <AT> gmail <DOT> com>
AuthorDate: Sun Aug 17 22:31:55 2025 +0000
Commit:     Tim Sviridov <Lt.Infiltrator <AT> gmail <DOT> com>
CommitDate: Fri Aug 22 10:22:20 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d6b9264d

games-strategy/7k-ambition: new package, add 3.2.2 and 9999

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

 .../7k-ambition/7k-ambition-3.2.2.ebuild           | 60 ++++++++++++++++++++++
 games-strategy/7k-ambition/7k-ambition-9999.ebuild | 60 ++++++++++++++++++++++
 games-strategy/7k-ambition/Manifest                |  2 +
 games-strategy/7k-ambition/metadata.xml            | 21 ++++++++
 4 files changed, 143 insertions(+)

diff --git a/games-strategy/7k-ambition/7k-ambition-3.2.2.ebuild 
b/games-strategy/7k-ambition/7k-ambition-3.2.2.ebuild
new file mode 100644
index 0000000000..c5c6287cb9
--- /dev/null
+++ b/games-strategy/7k-ambition/7k-ambition-3.2.2.ebuild
@@ -0,0 +1,60 @@
+# 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"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="+nls +multiplayer"
+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}"
+
+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
+
+       doicon "${DISTDIR}/7k-ambition.png"
+
+       make_desktop_entry 7k-ambition "Seven Kingdoms: Ambition" 
/usr/share/pixmaps/7k-ambition.png Game
+}

diff --git a/games-strategy/7k-ambition/7k-ambition-9999.ebuild 
b/games-strategy/7k-ambition/7k-ambition-9999.ebuild
new file mode 100644
index 0000000000..c5c6287cb9
--- /dev/null
+++ b/games-strategy/7k-ambition/7k-ambition-9999.ebuild
@@ -0,0 +1,60 @@
+# 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"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+IUSE="+nls +multiplayer"
+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}"
+
+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
+
+       doicon "${DISTDIR}/7k-ambition.png"
+
+       make_desktop_entry 7k-ambition "Seven Kingdoms: Ambition" 
/usr/share/pixmaps/7k-ambition.png Game
+}

diff --git a/games-strategy/7k-ambition/Manifest 
b/games-strategy/7k-ambition/Manifest
new file mode 100644
index 0000000000..6e8a18e397
--- /dev/null
+++ b/games-strategy/7k-ambition/Manifest
@@ -0,0 +1,2 @@
+DIST 7k-ambition-3.2.2.tar.gz 63123435 BLAKE2B 
e8e426b22580116b18821cf233a90b25cfde9aa2bc3d8a16d47322272619223800f121aebaf97b1b3d153d5fbc11d76ced2bbc1df2c621e8c66bd00bf860c332
 SHA512 
999a2519defd7b21e19de8dee8defc760461e3910daecfd13f5c96dc67fdb218c2bdf987c54a6a0b9043998a45fb3575db82e42760b9586b57a7a6b57b4d0fdb
+DIST 7k-ambition.png 203178 BLAKE2B 
1feaeab6a4538a278578bdbd195d3b809472008fa8d691d564a27d05da3adcc1125f0eafe42c45dd28c8719c62397dedac2f2bf31276430e0e42be246a98f7be
 SHA512 
33a4ed08facceb626f2dc3ed99c0e05b0e3898d2a800878be55520acbfeb2f4d71dfc9bc927b18aa24fb2bef5678674065a79c08fc8a8b44ecafe28d901b5c28

diff --git a/games-strategy/7k-ambition/metadata.xml 
b/games-strategy/7k-ambition/metadata.xml
new file mode 100644
index 0000000000..09219dfee0
--- /dev/null
+++ b/games-strategy/7k-ambition/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+    <maintainer type="person">
+        <email>[email protected]</email>
+        <name>Tim Sviridov</name>
+    </maintainer>
+    <longdescription>
+        Seven Kingdoms: Ambition is a real-time game of epic strategy and 
empire
+        building featuring economy management, warfare, and intrigue.  It is an
+        updated and enhanced version of 7kaa (7K: Ancient Adversaries) 
featuring
+        numerous fixes and improvements.
+    </longdescription>
+    <use>
+      <flag name="multiplayer">Enable multiplayer.</flag>
+    </use>
+    <upstream>
+        <remote-id type="github">Infiltrator/7k-ambition</remote-id>
+        <remote-id type="sourceforge">seven-kingdoms-ambition</remote-id>
+    </upstream>
+</pkgmetadata>

Reply via email to