mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
games-strategy/7k-ambition: new package, add 3.2.2 and 9999
Signed-off-by: Tim Sviridov <Lt.Infiltrator@gmail.com>
This commit is contained in:
60
games-strategy/7k-ambition/7k-ambition-3.2.2.ebuild
Normal file
60
games-strategy/7k-ambition/7k-ambition-3.2.2.ebuild
Normal file
@@ -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
|
||||
}
|
||||
60
games-strategy/7k-ambition/7k-ambition-9999.ebuild
Normal file
60
games-strategy/7k-ambition/7k-ambition-9999.ebuild
Normal file
@@ -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
|
||||
}
|
||||
2
games-strategy/7k-ambition/Manifest
Normal file
2
games-strategy/7k-ambition/Manifest
Normal file
@@ -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
|
||||
21
games-strategy/7k-ambition/metadata.xml
Normal file
21
games-strategy/7k-ambition/metadata.xml
Normal file
@@ -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>Lt.Infiltrator@gmail.com</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>
|
||||
Reference in New Issue
Block a user