summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-05 15:46:17 +0000
committerSam James <sam@gentoo.org>2021-04-05 15:46:17 +0000
commitfd2c42c18d59bd8f1c8e22c2d9446a52767a8ae8 (patch)
treea07bfddae4d87ff34f49fd0a508f648305e730d3 /games-action/towbowl-tactics/towbowl-tactics-0.5-r1.ebuild
parentdev-games/ps2-packer: port to EAPI 7, games.eclass-- (diff)
downloadgentoo-fd2c42c18d59bd8f1c8e22c2d9446a52767a8ae8.tar.gz
gentoo-fd2c42c18d59bd8f1c8e22c2d9446a52767a8ae8.tar.bz2
gentoo-fd2c42c18d59bd8f1c8e22c2d9446a52767a8ae8.zip
games-action/towbowl-tactics: port to EAPI 7, games.eclass--
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-action/towbowl-tactics/towbowl-tactics-0.5-r1.ebuild')
-rw-r--r--games-action/towbowl-tactics/towbowl-tactics-0.5-r1.ebuild64
1 files changed, 64 insertions, 0 deletions
diff --git a/games-action/towbowl-tactics/towbowl-tactics-0.5-r1.ebuild b/games-action/towbowl-tactics/towbowl-tactics-0.5-r1.ebuild
new file mode 100644
index 000000000000..94a3daf70c8e
--- /dev/null
+++ b/games-action/towbowl-tactics/towbowl-tactics-0.5-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop edos2unix toolchain-funcs
+
+DESCRIPTION="Tow Bowl Tactics is a game based on Games Workshop's Blood Bowl"
+HOMEPAGE="http://www.towbowltactics.com/index_en.html"
+SRC_URI="http://www.towbowltactics.com/download/tbt.${PV}.src.zip"
+S="${WORKDIR}"/tbt/src
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-libs/libxml2
+ media-libs/smpeg
+ media-libs/libsdl[sound,video]
+ media-libs/sdl-net
+ media-libs/sdl-image[jpeg,png]
+ media-libs/sdl-mixer"
+DEPEND="${RDEPEND}"
+BDEPEND="app-arch/unzip"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+)
+
+src_prepare() {
+ cd .. || die
+
+ edos2unix $(find src -type f) config.xml
+
+ default
+
+ sed -i \
+ -e "/^TBTHOME/ s:/.*:/usr/share/tbt:" \
+ src/Makefile || die
+ sed -i \
+ -e "/tbt.ico/ s:\"\./:TBTHOME \"/:" \
+ src/Main.cpp || die
+ sed -i \
+ -e "s:TBTHOME \"/config.xml:\"/etc/tbt/config.xml:g" \
+ src/global.h || die
+}
+
+src_configure() {
+ tc-export CXX
+}
+
+src_install() {
+ dobin tbt
+
+ dodir /usr/share/tbt
+ cp -r ../data ../tbt.ico "${ED}"/usr/share/tbt || die
+
+ insinto /etc/tbt
+ doins ../config.xml
+
+ newicon ../data/images/panel/turn.png ${PN}.png
+ make_desktop_entry tbt "Tow Bowl Tactics"
+}