summaryrefslogtreecommitdiff
path: root/games-puzzle/galaxis
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-puzzle/galaxis
reinit the tree, so we can have metadata
Diffstat (limited to 'games-puzzle/galaxis')
-rw-r--r--games-puzzle/galaxis/Manifest6
-rw-r--r--games-puzzle/galaxis/files/galaxis-1.8-gentoo.patch60
-rw-r--r--games-puzzle/galaxis/galaxis-1.8.ebuild28
-rw-r--r--games-puzzle/galaxis/metadata.xml8
4 files changed, 102 insertions, 0 deletions
diff --git a/games-puzzle/galaxis/Manifest b/games-puzzle/galaxis/Manifest
new file mode 100644
index 000000000000..1da35991012d
--- /dev/null
+++ b/games-puzzle/galaxis/Manifest
@@ -0,0 +1,6 @@
+AUX galaxis-1.8-gentoo.patch 1412 SHA256 714f17088cc59720236652f94114ca05068dc0cd01664e91f7ab4b0238ab6904 SHA512 110c500bdd46e7ea5fdd90bf93468e7560f9de7735b2f7b89f74ddd273d5d9afc1983891106103632429b73f3af16c667d7133987218ca7c5a7f5cceb1106301 WHIRLPOOL 7a03b9ec91a5c8f9ae424cdb89e3f81ddb5e64fd1e0f521607ca18e3c7d94991a13d59133e8f38a84810e0d594d5e90c0117cb20cf93f888c223cb36dd981c9f
+DIST galaxis-1.8.tar.gz 8962 SHA256 bc36c7e5b1e1d96e5a8c6cdb117b3891833a99e99df709c5531c7d44009a8adc SHA512 9d4c7447827fea333ddec8a289d5d6415777379c7aab53fc2088418051f3a38c8abeceff2e8ba0472f792fac457345f2307b3f51c8366aa0b9affa37c3eee05f WHIRLPOOL 719323349e747473501fb4bd737cb7db8b719dd22e5dfc3d0f7acb9402618064206311101a466fa37037381781094b8c90348171e6b8d2f04b04539e96af72b0
+EBUILD galaxis-1.8.ebuild 596 SHA256 6ac2ef05e62c43c706d2dfdfef75e2d3bc6d57f14fb0a7d48cbffb607154769a SHA512 f987b1cfc754267eebebc4bfa366734219108f0aa112eed58ef6689c835eb018a0dd9105e0d548f7b612f6b1239ed1a9f649732522b78f99a9d744c8a56a41f0 WHIRLPOOL ff321a8456b20932dc9081f432414efa784272201b000d795c4b279cd0b32818598821795fbf7e524e87f23bb66aca353c918981a67587bbf18432c83c98ae34
+MISC ChangeLog 2798 SHA256 a1ad0904bce4a6822efa0157aa0a85f03c2ec93167ee8538ac952065520fc66e SHA512 f4e58eb273b981048863961e0a0360f9546a056718a436bdef08069561691e0258265424f5b7bbc52b02bd60b977258cbefb22a55448b199488f5d57895aadf1 WHIRLPOOL 7cd0a48442e575c5891e4e418bfcc630c4a3effd46c864fa5b5091825ab040af68269e10182cda2d63865317b8662874aaffd2c0a006d8ef86a8f66a3cae4b1a
+MISC ChangeLog-2015 1775 SHA256 e97bc01a1cf2478a981da61a1d71898fbda82f76e1dd66a3f90c1f30f076144a SHA512 eb28f6c8a5046299d2e7a6a37bc2ff14c5ed5a112301d99178d27caa9be61c8374425125e794720fda6a697d13f02ba2cad6656699e9321ad90e94d30111d267 WHIRLPOOL 5fa8404982c60d436e8ca37addcf86651a709ce143744735060ad3c2798eb77eab5afadc7f6cb47d6137de31b65b914ffea88ab220b1e9412294357bf66f101e
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-puzzle/galaxis/files/galaxis-1.8-gentoo.patch b/games-puzzle/galaxis/files/galaxis-1.8-gentoo.patch
new file mode 100644
index 000000000000..abee05096288
--- /dev/null
+++ b/games-puzzle/galaxis/files/galaxis-1.8-gentoo.patch
@@ -0,0 +1,60 @@
+diff -ru galaxis-1.8.orig/Makefile galaxis-1.8/Makefile
+--- galaxis-1.8.orig/Makefile 2010-10-19 09:48:58.000000000 -0400
++++ galaxis-1.8/Makefile 2010-10-20 04:04:49.246650551 -0400
+@@ -3,9 +3,8 @@
+ VERS=$(shell sed <galaxis.spec -n -e '/Version: \(.*\)/s//\1/p')
+
+ # Flags for use with the Linux ncurses package (recommended)
+-CFLAGS = -g -DNDEBUG # -I/usr/local/include -L/usr/local/lib
++CFLAGS += -DNDEBUG # -I/usr/local/include -L/usr/local/lib
+ TERMLIB = -lncurses
+-CC = gcc
+
+ # Flags for use with stock curses
+ #CFLAGS = -DNDEBUG
+@@ -13,7 +12,7 @@
+ #CC = gcc
+
+ galaxis: galaxis.c
+- $(CC) $(CFLAGS) -o galaxis galaxis.c $(TERMLIB)
++ $(CC) $(LDFLAGS) $(CFLAGS) -o galaxis galaxis.c $(TERMLIB)
+
+ galaxis.6: galaxis.xml
+ xmlto man galaxis.xml
+diff -ru galaxis-1.8.orig/galaxis.c galaxis-1.8/galaxis.c
+--- galaxis-1.8.orig/galaxis.c 2010-10-13 06:13:31.000000000 -0400
++++ galaxis-1.8/galaxis.c 2010-10-20 04:05:30.036888771 -0400
+@@ -8,6 +8,8 @@
+ #define _POSIX_SOURCE
+
+ #include <stdio.h>
++#include <unistd.h>
++#include <time.h>
+ #include <termios.h>
+ #include <curses.h>
+ #include <signal.h>
+@@ -176,6 +177,7 @@
+ (void) refresh();
+ }
+
++#if 0
+ static void error(char *s)
+ {
+ (void) move(PROMPTLINE + 2, 0);
+@@ -186,6 +188,7 @@
+ (void) beep();
+ }
+ }
++#endif
+
+ static int rnd(int n)
+ {
+@@ -644,7 +647,7 @@
+ }
+ }
+
+-main(argc, argv)
++int main(argc, argv)
+ int argc;
+ char *argv[];
+ {
diff --git a/games-puzzle/galaxis/galaxis-1.8.ebuild b/games-puzzle/galaxis/galaxis-1.8.ebuild
new file mode 100644
index 000000000000..5496729a8f13
--- /dev/null
+++ b/games-puzzle/galaxis/galaxis-1.8.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="A UNIX-hosted, curses-based clone of the nifty little Macintosh freeware game Galaxis"
+HOMEPAGE="http://www.catb.org/~esr/galaxis/"
+SRC_URI="http://www.catb.org/~esr/galaxis/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc64 x86"
+IUSE=""
+
+DEPEND=">=sys-libs/ncurses-5.3:0"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+}
+
+src_install() {
+ dogamesbin galaxis
+ doman galaxis.6
+ dodoc README
+ prepgamesdirs
+}
diff --git a/games-puzzle/galaxis/metadata.xml b/games-puzzle/galaxis/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-puzzle/galaxis/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>