summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-puzzle/galaxis')
-rw-r--r--games-puzzle/galaxis/ChangeLog8
-rw-r--r--games-puzzle/galaxis/Manifest5
-rw-r--r--games-puzzle/galaxis/files/galaxis-1.8-gentoo.patch60
-rw-r--r--games-puzzle/galaxis/galaxis-1.8.ebuild26
4 files changed, 97 insertions, 2 deletions
diff --git a/games-puzzle/galaxis/ChangeLog b/games-puzzle/galaxis/ChangeLog
index a0fd525af8db..bedc84b1e045 100644
--- a/games-puzzle/galaxis/ChangeLog
+++ b/games-puzzle/galaxis/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-puzzle/galaxis
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/galaxis/ChangeLog,v 1.12 2010/10/18 17:14:37 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/galaxis/ChangeLog,v 1.13 2010/10/20 08:07:43 mr_bones_ Exp $
+
+*galaxis-1.8 (20 Oct 2010)
+
+ 20 Oct 2010; Michael Sterrett <mr_bones_@gentoo.org> +galaxis-1.8.ebuild,
+ +files/galaxis-1.8-gentoo.patch:
+ version bump
18 Oct 2010; Michael Sterrett <mr_bones_@gentoo.org> galaxis-1.7.ebuild,
+files/galaxis-1.7-gentoo.patch:
diff --git a/games-puzzle/galaxis/Manifest b/games-puzzle/galaxis/Manifest
index 3f8eefff1718..a871a7d8d69a 100644
--- a/games-puzzle/galaxis/Manifest
+++ b/games-puzzle/galaxis/Manifest
@@ -1,5 +1,8 @@
AUX galaxis-1.7-gentoo.patch 1880 RMD160 345a5e5cf34b4ac2ac438f8d05c8c0defd59d0b8 SHA1 7f2e813a90353d845d104dc159b11117e9961e6c SHA256 563e84f008d0d37d9f3f886ea13d9b184e595fa4d81231c3a52b49be9adfc8c7
+AUX galaxis-1.8-gentoo.patch 1412 RMD160 87a54117c1b91a60c7ac384a30e0451c9c004b6d SHA1 77ccfdb423106944d028a63ff0a309b47242ddf5 SHA256 714f17088cc59720236652f94114ca05068dc0cd01664e91f7ab4b0238ab6904
DIST galaxis-1.7.tar.gz 14560 RMD160 eafa96f6a6372631cdfc9d13e7a1afbeaddd6c54 SHA1 644b1bca994047801d9cd5c1444a5493dc77898b SHA256 6ce202547d486ef5eb0300e201116046fab0218012c2b39ae2baf2338c6d0faa
+DIST galaxis-1.8.tar.gz 8962 RMD160 210c7bf05606407b038393ad8f26378ddc3a6f7a SHA1 e581efb1e3efd32371054f1ccd80bfa5514fe029 SHA256 bc36c7e5b1e1d96e5a8c6cdb117b3891833a99e99df709c5531c7d44009a8adc
EBUILD galaxis-1.7.ebuild 703 RMD160 116a0528d294ca21bc953914683cfc681df4f6ad SHA1 bd0aa6e553a796f7d6743fcbeadd18f82fb98ea8 SHA256 80925ecfcb2167ad91906b5d391f8a92cd5c487833e4fd9e39b1656a7279a270
-MISC ChangeLog 1442 RMD160 3a0c02b695357fbcc258de840f246c918f662c27 SHA1 bafb2a9c84d93f1e83134d4bccf0c0b3d6407297 SHA256 bd89b0ccb9d03246be7e8accb3413286f894a66276e5fbb245fdd09b7e04d382
+EBUILD galaxis-1.8.ebuild 706 RMD160 101ea4166c76a358d87360b3e012f02172f61dc3 SHA1 21256cbfa02153501a4ead8d5b69c5de1a5dd3c2 SHA256 31bf3ab893bedfb2dbf23334b06ce8e0f99910987ec2af091437952d3a323df2
+MISC ChangeLog 1597 RMD160 b164526c9bef452b9f4f82e02e8735136d10862d SHA1 eeb2b2c57677b3a5a6b3b63bccc7b79afe15a3c3 SHA256 2b467e007dbbb8ce9b284d605fff709d2b3ff2b91e32b2f9f2f4ca7c98590165
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
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..b2a803512315
--- /dev/null
+++ b/games-puzzle/galaxis/galaxis-1.8.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/galaxis/galaxis-1.8.ebuild,v 1.1 2010/10/20 08:07:43 mr_bones_ Exp $
+
+EAPI=2
+inherit 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 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+DEPEND=">=sys-libs/ncurses-5.3"
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_install() {
+ dogamesbin galaxis || die "dogamesbin failed"
+ doman galaxis.6
+ dodoc README
+ prepgamesdirs
+}