summaryrefslogtreecommitdiff
path: root/games-strategy/tornado
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-strategy/tornado
reinit the tree, so we can have metadata
Diffstat (limited to 'games-strategy/tornado')
-rw-r--r--games-strategy/tornado/Manifest6
-rw-r--r--games-strategy/tornado/files/tornado-1.4-gentoo.patch26
-rw-r--r--games-strategy/tornado/metadata.xml8
-rw-r--r--games-strategy/tornado/tornado-1.4.ebuild37
4 files changed, 77 insertions, 0 deletions
diff --git a/games-strategy/tornado/Manifest b/games-strategy/tornado/Manifest
new file mode 100644
index 000000000000..a3cf20ab1a08
--- /dev/null
+++ b/games-strategy/tornado/Manifest
@@ -0,0 +1,6 @@
+AUX tornado-1.4-gentoo.patch 955 SHA256 b9914479de51817ed0ade88cd11c791d9800af231b3ff04bb1680349c2e883f1 SHA512 16499538f588370026e05518d5f437599b9f1a291e47c681cb8f7c3c7a88ba4dd1aafb8b979bc8fc35640777be8b54bf209433c88ac9f1c667f97a39500973d9 WHIRLPOOL 7478a01f13b4f0304435f7caf3b5b8e1e9974c8ed943d99ca7d3d8802957f84c013f329778b0d0ecf0f39e6d9cf50ce7d67a71bc3922091b153f61a6d4ba8bd9
+DIST tornado-1.4.tar.gz 54591 SHA256 d0506377c9b80581a6167a9d97233638678943bbc0a32fb714e09cf0e918b791 SHA512 764c18b228a24cdcaf1456af79d1bdb997f200c09bc33d8f54df28f1f995db1b1a3a328550c5561bc8ebd38d4187f472aa1c892d91889e613b9ff42b86bee322 WHIRLPOOL adede7e43642f1c03200c4b903612ba01aaa761f5c74002322bcc98d3abc97680826f4b7aead6aabc6b0fc9f7b6264593cb9ee453e93cf42d5bdf6dd1e7bd17f
+EBUILD tornado-1.4.ebuild 865 SHA256 8535b4d5468a18b57f10f94e12bbb0ad161717fa9ebef3081f3759459dcd17ba SHA512 61a40e199bd3b47571961b5f817f1c8743f043b61781a7aa90abf9a7d865cd41cb3eb69cdc495b8ea6984c4ad03376c2eee084655d7432edb1fe6749e90a179f WHIRLPOOL 578928bd480cd4cc8dd42abc0e265c12ce255c85adb01d3744719bb0640f4791b68ebe67363c59b2396b4a338ade9ce2a72b80296e2d2535986915327a1e02c5
+MISC ChangeLog 2462 SHA256 8f1eb87e45484bcb3328b3f5605852b453e21ad27fe2df4eb7ee4d8ea3046962 SHA512 dca19724cd37127c0e0bfebe50fb4c19efbbe91c31b57e69d025238c08ad5cfd1dce061c7f0a3861369d06497d1ef90efeb213b715e6942b06cb9e4c5f829f49 WHIRLPOOL b21262b561c1ed412b351dd220ebe6a6d9a9c34bd0d22a412bc36b5f38a7e00f958de82bbcf9ae4f693a7322d157c3423128e92d9dabbe4eacd72873e9f7a79d
+MISC ChangeLog-2015 1866 SHA256 7002ed9967e4ffb653ac960066c69e25eeedb7e38b0de79a67be7fd50715e726 SHA512 fbe052df24dd222665ab0b98175c7eda6ab38ec0c14db3a1be0dba0dd1e95fa45d7b9e28415230cde184debeb62566e617d876c2fedcc55c6e52b8c9ef951b2a WHIRLPOOL a14a4e0b1c1c7fa6f0c2315147114a05918c67439b8c3d050f3a3867b6f40890c6261fab8a69084383722cb18ac92eea6f5cf5c6271996931fa75b5c0d680ad8
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-strategy/tornado/files/tornado-1.4-gentoo.patch b/games-strategy/tornado/files/tornado-1.4-gentoo.patch
new file mode 100644
index 000000000000..fb8966841158
--- /dev/null
+++ b/games-strategy/tornado/files/tornado-1.4-gentoo.patch
@@ -0,0 +1,26 @@
+--- Makefile.old 2009-02-12 12:42:25.000000000 +0100
++++ Makefile 2009-02-12 12:44:52.000000000 +0100
+@@ -1,10 +1,9 @@
+-CC = gcc
+ MAKE = make
+-LDFLAGS = -lncurses
++LDLIBS = -lncurses
+ OBJFILES = main.o draw.o erwin.o network.o scores.o
+-PREFIX = /usr/local
+-LOCALEPATH = /usr/local/share/locale
+-CFLAGS = -Wall -O2 -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\""
++PREFIX = /usr
++LOCALEPATH = /usr/share/locale
++CFLAGS += -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\""
+ VERSION = `grep " VERSION" version.h | sed s/\"//g | sed s/\#define\ VERSION\ //`
+ LOCALES = de
+ MAN = doc/man
+@@ -25,7 +24,7 @@
+ $(MAKE) -C $(MAN) all
+
+ tornado: $(OBJFILES)
+- $(CC) $(LDFLAGS) $(OBJFILES) -o tornado
++ $(CC) $(LDFLAGS) $(OBJFILES) $(LDLIBS) -o tornado
+
+ debug: tornado.6 locales
+ gcc -g -ggdb -Wall -ansi -pedantic -o tornado draw.c main.c erwin.c network.c scores.c -lncurses -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\""
diff --git a/games-strategy/tornado/metadata.xml b/games-strategy/tornado/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-strategy/tornado/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>
diff --git a/games-strategy/tornado/tornado-1.4.ebuild b/games-strategy/tornado/tornado-1.4.ebuild
new file mode 100644
index 000000000000..7260172348eb
--- /dev/null
+++ b/games-strategy/tornado/tornado-1.4.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Clone of a C64 game - destroy the opponent's house"
+HOMEPAGE="http://kiza.kcore.de/software/tornado/"
+SRC_URI="http://kiza.kcore.de/software/tornado/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+
+src_prepare() {
+ sed -i \
+ -e "s:PREFIX/bin:${GAMES_BINDIR}:" \
+ -e "s:PREFIX/man:/usr/man:" \
+ -e "s:/var/games:${GAMES_STATEDIR}:" \
+ -e "s:/usr/local:/usr:" \
+ doc/man/tornado.6.in \
+ || die "sed failed"
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+}
+
+src_install() {
+ dogamesbin tornado
+ doman doc/man/tornado.6
+ dodoc AUTHOR CREDITS Changelog README TODO
+ insinto "${GAMES_STATEDIR}"
+ doins tornado.scores
+ prepgamesdirs
+ fperms 664 "${GAMES_STATEDIR}/tornado.scores"
+}