summaryrefslogtreecommitdiff
path: root/games-arcade/kajaani-kombat
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/kajaani-kombat')
-rw-r--r--games-arcade/kajaani-kombat/Manifest5
-rw-r--r--games-arcade/kajaani-kombat/files/0.7-makefile.patch22
-rw-r--r--games-arcade/kajaani-kombat/files/kajaani-kombat-0.7-ldflags.patch11
-rw-r--r--games-arcade/kajaani-kombat/kajaani-kombat-0.7-r1.ebuild44
-rw-r--r--games-arcade/kajaani-kombat/metadata.xml8
5 files changed, 90 insertions, 0 deletions
diff --git a/games-arcade/kajaani-kombat/Manifest b/games-arcade/kajaani-kombat/Manifest
new file mode 100644
index 000000000000..e4434e107ad8
--- /dev/null
+++ b/games-arcade/kajaani-kombat/Manifest
@@ -0,0 +1,5 @@
+AUX 0.7-makefile.patch 551 BLAKE2B 4b301ca00a4643f00654e81f3a4396d43106bc2f0f5bbae98d71818a3559472607358a6dd9c2b77a9def3c7772df2ad6ae59e33529de368474b9c4a33a9fee77 SHA512 4d319affec25fe585c0f0af14ed872e71b155be2bab3aabbb72ad01b80395f44b35b13abc765390e19e070305339322598942fa1997463632ee07f4a160ba823
+AUX kajaani-kombat-0.7-ldflags.patch 440 BLAKE2B f63321ed06c0ed26cfe28a1a62650ce9b9b37b29898961fb08b58b5119b023c3335798e36130ad144569c2996e7c4f188caf9cadc3d4a37c01a3bb03bd39d11d SHA512 30a8e6293349a30f6dbcc469fb14377d9461df60227e01d18dfc267f254be62b7cee89bcb6df0b24ec5bcb9cb198701e5b9e0d465f699be4880432a0402b2c71
+DIST kajaani-kombat-0.7.tar.gz 1805504 BLAKE2B 664210a44e5dd5b27ca7b47ca9cb9445373d1243c01fcfb227251c6b48fb8b9e2ebd608eec2244f1b12f47bf5c886482bf70a0700538bbf415d93df41c34fcfe SHA512 84f6923b73c9529fa600c533b5a3de9ea9411f81060c5ad9fb85346fa17c9cb70bf6ba8222319e123372b01286a11b40bb355e8ef8c9bec95cd98f4d0e0460cb
+EBUILD kajaani-kombat-0.7-r1.ebuild 906 BLAKE2B 646f8e6b2fe996bc36c1b8b944646be6a829da8bcd8bfd71b2a774cb137770da35b4359a514f9b209fce4f2dee8c26033667b6813c6956ebaa42511204bdacab SHA512 e22f5d2be756d6a5c26bf6d9555df51b06b316d3fd940594f5233fa8ac8b0c43ebb31ccb5fda01552a6dfa2ba899671b41690cf04b6cf3eb46c1094523d3e234
+MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118
diff --git a/games-arcade/kajaani-kombat/files/0.7-makefile.patch b/games-arcade/kajaani-kombat/files/0.7-makefile.patch
new file mode 100644
index 000000000000..d67f394fa623
--- /dev/null
+++ b/games-arcade/kajaani-kombat/files/0.7-makefile.patch
@@ -0,0 +1,22 @@
+--- a/Makefile.orig 2005-02-28 22:55:55.000000000 -0500
++++ b/Makefile 2005-02-28 22:58:45.000000000 -0500
+@@ -39,8 +39,8 @@
+ endif
+ ## UNIX RELEASE (default option)
+ ifeq ($(sys), )
+- MEDIA=-D MEDIA_PATH=\"./\"
+- DEBUG= -O $(MEDIA)
++ MEDIA=-D MEDIA_PATH=\"GENTOODIR\"
++ DEBUG= $(CFLAGS) $(MEDIA)
+ endif
+
+
+@@ -55,7 +55,7 @@
+
+ server_objs = game_obj.o terrain.o msg.o game_server.o server_main.o coord.o block.o connects.o player.o config.o
+
+-CXXFLAGS=`sdl-config --cflags` -Wall $(DEBUG)
++CXXFLAGS+=`sdl-config --cflags` $(MEDIA)
+
+ all: client
+
diff --git a/games-arcade/kajaani-kombat/files/kajaani-kombat-0.7-ldflags.patch b/games-arcade/kajaani-kombat/files/kajaani-kombat-0.7-ldflags.patch
new file mode 100644
index 000000000000..268dcf24ce37
--- /dev/null
+++ b/games-arcade/kajaani-kombat/files/kajaani-kombat-0.7-ldflags.patch
@@ -0,0 +1,11 @@
+--- a/Makefile.old 2010-10-15 15:48:06.000000000 +0200
++++ b/Makefile 2010-10-15 15:48:18.000000000 +0200
+@@ -85,7 +85,7 @@
+ client_net.o: client_net.h client_net.cpp globals.h monitor_queue.h msg.h
+
+ client: $(client_objs)
+- $(CXX) $(client_objs) -o kajaani-kombat $(client_libs)
++ $(CXX) $(LDFLAGS) $(client_objs) -o kajaani-kombat $(client_libs)
+ server: $(server_objs)
+ $(CXX) $(server_objs) -o kajaani-kombat-server $(server_libs)
+
diff --git a/games-arcade/kajaani-kombat/kajaani-kombat-0.7-r1.ebuild b/games-arcade/kajaani-kombat/kajaani-kombat-0.7-r1.ebuild
new file mode 100644
index 000000000000..1d80c8699c66
--- /dev/null
+++ b/games-arcade/kajaani-kombat/kajaani-kombat-0.7-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop
+
+DESCRIPTION="A rampart-like game set in space"
+HOMEPAGE="http://kombat.kajaani.net/"
+SRC_URI="http://kombat.kajaani.net/dl/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/sdl-net
+ media-libs/sdl-image[png]
+ media-libs/sdl-ttf
+ media-libs/sdl-mixer[vorbis]
+ sys-libs/ncurses:0
+ sys-libs/readline:0
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ default
+ eapply "${FILESDIR}/${PV}-makefile.patch" \
+ "${FILESDIR}"/${P}-ldflags.patch
+ sed -i \
+ -e "s:GENTOODIR:/usr/share/${PN}/:" \
+ Makefile || die
+ sed -i \
+ -e 's/IMG_Load/img_load/' \
+ gui_screens.cpp || die
+}
+
+src_install() {
+ dobin kajaani-kombat
+ insinto "/usr/share/${PN}"
+ doins *.{png,ttf,ogg}
+ einstalldocs
+ doman kajaani-kombat.6
+}
diff --git a/games-arcade/kajaani-kombat/metadata.xml b/games-arcade/kajaani-kombat/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-arcade/kajaani-kombat/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>