summaryrefslogtreecommitdiff
path: root/games-puzzle/braincurses
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/braincurses
reinit the tree, so we can have metadata
Diffstat (limited to 'games-puzzle/braincurses')
-rw-r--r--games-puzzle/braincurses/Manifest7
-rw-r--r--games-puzzle/braincurses/braincurses-0.5b.ebuild32
-rw-r--r--games-puzzle/braincurses/files/braincurses-0.5b-as-needed.patch27
-rw-r--r--games-puzzle/braincurses/files/braincurses-0.5b-gcc43.patch10
-rw-r--r--games-puzzle/braincurses/metadata.xml12
5 files changed, 88 insertions, 0 deletions
diff --git a/games-puzzle/braincurses/Manifest b/games-puzzle/braincurses/Manifest
new file mode 100644
index 000000000000..cb3e94060885
--- /dev/null
+++ b/games-puzzle/braincurses/Manifest
@@ -0,0 +1,7 @@
+AUX braincurses-0.5b-as-needed.patch 692 SHA256 4d6009661e02f2826fe6f408a82063ac3193f3841e3c1d19de5d72ef78e35323 SHA512 d4067011081e587ccc07baf6dd6597bfbdd8d118e14b0a1b8c83d8384332132edd21d079a2f60ea1003f588a88191662f6445e047bb9121141b2b83856051855 WHIRLPOOL 032254ac7f9295ffe6d5d55c955cb15a87e3853129332688cf242577f19f5864ab131876ddc06bfe2336fc90e92719f5c75ad053b0f1690aed1f766e2f454957
+AUX braincurses-0.5b-gcc43.patch 188 SHA256 eeadca86a1cc9512f1fef8af180ea30cde7e08b36e925beefee9904457091932 SHA512 212165591b422cde8c9aebbe7fb14b34903e7fff0a6fee4310c953b11154ae1900d8444fbbc6f37c2accff4023f5fca87a50121d9abe51b7d634001d1301758f WHIRLPOOL 5faa0290c3edb98ae04801bdf77d7f146fb9710d6d1425ec79c6a0f7bc72707124628fe61ee5972189b6be6f3a71d4ca9cec3ede9d16ca0c974e3876bc5c6e48
+DIST braincurses-0.5b.tar.gz 18487 SHA256 c9adc662a30fdc51b36467e536ff5222b769ec73b35c7bddbd0ed4772c05f332 SHA512 7f90da3a5c480e0bf736dd4a53efc08abeb85969e727882e3d06f888b2a4b6002f9fd9bc1554ac2256c9821dea5fabf2638eba4a672046a09c1adb8690803a0e WHIRLPOOL 97829b1602e353714ec085a9ea635557c01911c935e0b6a13728d633026958ee9dd2e3903ca801cb2e24297c4702a325ace1d32908873cec985882a61edcb332
+EBUILD braincurses-0.5b.ebuild 693 SHA256 6a5d5bf2de1c4d20a211393626cd35b7f4f5501d6f22f7d652c4f23bae954406 SHA512 d27d4c60cc1e235ecc5455406550693c18d86c7a759fb84b3a85dac3ad44e7d3dfd263298dd11cdacaf7e1e21ab3832211fac21c961422d60815ffc760cd384f WHIRLPOOL d3873168843392e27fefd1859b5ff13f36addec8ad69e7ec9e3a487bd7f892213012abaf3ab15cedea8cfd0a627b764c10817caeccdfbf1be785fe64110b4788
+MISC ChangeLog 2521 SHA256 5885b9b01fb6df0d388e094e3c26f6fb25d517a4c0ed11ac9892f95123909974 SHA512 b255c68933ddd1a42ebb35652c3308360a817979010f838b1626807d78a02a834929ce0124a21426d03ba6dd81fb0a775e51b595827e506ea34784e1a1053159 WHIRLPOOL 046aed39ec6c64df15550a2a9d5c655330172195f873d8c2940754c3a688bacabe35f5e3e77b745dd6f5a71d39dde15fc8aa9d584e3386b9ed9cd77d807067a9
+MISC ChangeLog-2015 1559 SHA256 5847788f0446ada25e8780b8ac9ad6aaa6aa900c25e2c1719848f185596fd632 SHA512 a369e0ba4159c1e77bc98c9455b84c9e37c4c1b3d2acce0a60cbeece32443c2fcd8a2bf8f11669a4791a5d90bfd9887bab0509f843b262ca98c5131389e488a6 WHIRLPOOL 6d76642f975241aeb5ddc6f61bdd065ada4fb068e346ad92bb1f8d825b17638039fb712fcb9d87369d291deacf436d6aec779f731a1249e27a3534c44eeda74c
+MISC metadata.xml 388 SHA256 10c4634c4dec94df7cd2f22ecbfbb20307f5e47bde4de1325e7db4f4674f5c5f SHA512 22fb2671d0f2029bea4e513d469b2d9940fef9a5ed6a6d9b47dfc80aae50b41bae3d89a620ff4be028ab46ab2dcca801a4653e95feca142c3b2921d436e2e6c0 WHIRLPOOL a7482848f1fc69f8b9dc331d778099b1a183341bd5a5dc9a526f51598690beed92cf9942e0bcbeb1a1803b73ece7df59de33246a074d1647e474b2b68f73e887
diff --git a/games-puzzle/braincurses/braincurses-0.5b.ebuild b/games-puzzle/braincurses/braincurses-0.5b.ebuild
new file mode 100644
index 000000000000..cc858a722222
--- /dev/null
+++ b/games-puzzle/braincurses/braincurses-0.5b.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="An ncurses-based mastermind clone"
+HOMEPAGE="http://freshmeat.net/projects/braincurses/"
+SRC_URI="mirror://sourceforge/braincurses/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc43.patch \
+ "${FILESDIR}"/${P}-as-needed.patch
+ # fix buffer overflow (bug #301033)
+ sed -i \
+ -e 's/guessLabel\[2/guessLabel[3/' \
+ curses/windows.cpp \
+ || die 'sed failed'
+}
+
+src_install() {
+ dogamesbin braincurses
+ dodoc README THANKS Changelog
+ prepgamesdirs
+}
diff --git a/games-puzzle/braincurses/files/braincurses-0.5b-as-needed.patch b/games-puzzle/braincurses/files/braincurses-0.5b-as-needed.patch
new file mode 100644
index 000000000000..d1f36152403f
--- /dev/null
+++ b/games-puzzle/braincurses/files/braincurses-0.5b-as-needed.patch
@@ -0,0 +1,27 @@
+--- Makefile.old 2009-02-09 16:04:47.000000000 +0100
++++ Makefile 2009-02-09 16:14:41.000000000 +0100
+@@ -1,22 +1,9 @@
+ # Makefile for braincurses game
+ # written by Brian Derr
+
+-CC=g++
+-CFLAGS=-Wall
+-CURSES_LIBS=-lncurses
++LDLIBS=-lncurses
+
+-ncurses: curses/windows.o braincurses.o
+- ${CC} ${CURSES_LIBS} ${CFLAGS} -o braincurses curses/windows.o \
+- braincurses.o
+-
+-windows.o: windows.cpp
+- ${CC} ${CFLAGS} -c curses/windows.cpp
+-
+-braincurses.o: braincurses.cpp
+- ${CC} ${CFLAGS} -c braincurses.cpp
+-
+-#top_scores.o: top_scores.cpp
+-# ${CC} ${CFLAGS} -c top_scores.cpp
++braincurses: curses/windows.cpp braincurses.cpp
+
+ install:
+ install -o root -g root braincurses /usr/local/bin/
diff --git a/games-puzzle/braincurses/files/braincurses-0.5b-gcc43.patch b/games-puzzle/braincurses/files/braincurses-0.5b-gcc43.patch
new file mode 100644
index 000000000000..eafa39e4b9b8
--- /dev/null
+++ b/games-puzzle/braincurses/files/braincurses-0.5b-gcc43.patch
@@ -0,0 +1,10 @@
+--- braincurses.h
++++ braincurses.h
+@@ -12,6 +12,7 @@
+ #include <cstddef>
+ #include <cstdlib>
+ #include <ctime>
++#include <cstring>
+ #include <iostream>
+ #include <map>
+ #include <string>
diff --git a/games-puzzle/braincurses/metadata.xml b/games-puzzle/braincurses/metadata.xml
new file mode 100644
index 000000000000..8444fd297f54
--- /dev/null
+++ b/games-puzzle/braincurses/metadata.xml
@@ -0,0 +1,12 @@
+<?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>
+ <upstream>
+ <remote-id type="sourceforge">braincurses</remote-id>
+ <remote-id type="freshmeat">braincurses</remote-id>
+ </upstream>
+</pkgmetadata>