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..ba4ad11e2a --- /dev/null +++ b/games-strategy/7k-ambition/7k-ambition-3.2.2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools desktop toolchain-funcs + +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" +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" +if [[ ${PV} == *9999* ]]; then + KEYWORDS="" + SLOT="9999" +else + SLOT="$(ver_cut 1-2)" + KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +fi + +DEPEND="dev-libs/boost + media-libs/libsdl2[X,video] + media-libs/openal + net-misc/curl + net-libs/enet:1.3" +RDEPEND="${DEPEND}" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --prefix="${EPREFIX}/opt/games/${P}" \ + --datadir="${EPREFIX}/opt/games/${P}/share" \ + --sysconfdir="${EPREFIX}/opt/games/${P}/etc" \ + --localedir="${EPREFIX}/opt/games/${P}/share/locale" +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + emake DESTDIR="${D}" install + + insinto "/opt/games/${P}/share/pixmaps" + newins "${DISTDIR}/${PN}.png" "${PN}.png" + + dosym "../../opt/games/${P}/bin/${PN}" "/usr/bin/${PN}-${PV}" + + make_desktop_entry "${PN}-${PV}" "Seven Kingdoms: Ambition ${PV}" \ + "/opt/games/${P}/share/pixmaps/${PN}.png" "Game;StrategyGame" +} + 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..ba4ad11e2a --- /dev/null +++ b/games-strategy/7k-ambition/7k-ambition-9999.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools desktop toolchain-funcs + +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" +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" +if [[ ${PV} == *9999* ]]; then + KEYWORDS="" + SLOT="9999" +else + SLOT="$(ver_cut 1-2)" + KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +fi + +DEPEND="dev-libs/boost + media-libs/libsdl2[X,video] + media-libs/openal + net-misc/curl + net-libs/enet:1.3" +RDEPEND="${DEPEND}" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --prefix="${EPREFIX}/opt/games/${P}" \ + --datadir="${EPREFIX}/opt/games/${P}/share" \ + --sysconfdir="${EPREFIX}/opt/games/${P}/etc" \ + --localedir="${EPREFIX}/opt/games/${P}/share/locale" +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + emake DESTDIR="${D}" install + + insinto "/opt/games/${P}/share/pixmaps" + newins "${DISTDIR}/${PN}.png" "${PN}.png" + + dosym "../../opt/games/${P}/bin/${PN}" "/usr/bin/${PN}-${PV}" + + make_desktop_entry "${PN}-${PV}" "Seven Kingdoms: Ambition ${PV}" \ + "/opt/games/${P}/share/pixmaps/${PN}.png" "Game;StrategyGame" +} + diff --git a/games-strategy/7k-ambition/Manifest b/games-strategy/7k-ambition/Manifest new file mode 100644 index 0000000000..418552d68d --- /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 197382 BLAKE2B 561e49b78477898b2d019d1faf7285dac38732414d6d685644ee3ee26b79b0b32a800fe0fc2eb73b7344617b6f2dd85b4fe63a465a6c0b0719d8823685fd9a5a SHA512 0a9ca02ead44a2795121ce0c5a83917d136e8ade61c4eea9b01961054107dc10e0919ed7ccd629ac66f0acb4f1e11a3283fcd49457f853aad5f92e28f1764c78 diff --git a/games-strategy/7k-ambition/metadata.xml b/games-strategy/7k-ambition/metadata.xml new file mode 100644 index 0000000000..32838a3f85 --- /dev/null +++ b/games-strategy/7k-ambition/metadata.xml @@ -0,0 +1,18 @@ + + + + + seven-kingdoms-ambition-discuss@lists.sourceforge.net + Seven Kingdoms: Ambition Team + + + 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. + + + Infiltrator/7k-ambition + seven-kingdoms-ambition + +