* [gentoo-commits] repo/gentoo:master commit in: games-puzzle/braincurses/, games-puzzle/braincurses/files/
@ 2018-04-14 21:40 Pacho Ramos
0 siblings, 0 replies; only message in thread
From: Pacho Ramos @ 2018-04-14 21:40 UTC (permalink / raw
To: gentoo-commits
commit: ff0e1f5ae5bbc1f8d08732ba9fc96975b67157b9
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 14 21:40:05 2018 +0000
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sat Apr 14 21:40:05 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff0e1f5a
games-puzzle/braincurses: Stop using games.eclass
Package-Manager: Portage-2.3.28, Repoman-2.3.9
.../braincurses/braincurses-0.5b-r1.ebuild | 34 ++++++++++++++++++++++
.../files/braincurses-0.5b-as-needed.patch | 4 +--
.../braincurses/files/braincurses-0.5b-gcc43.patch | 4 +--
3 files changed, 38 insertions(+), 4 deletions(-)
diff --git a/games-puzzle/braincurses/braincurses-0.5b-r1.ebuild b/games-puzzle/braincurses/braincurses-0.5b-r1.ebuild
new file mode 100644
index 00000000000..609bfa21830
--- /dev/null
+++ b/games-puzzle/braincurses/braincurses-0.5b-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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() {
+ default
+
+ eapply "${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() {
+ dobin braincurses
+ einstalldocs
+}
diff --git a/games-puzzle/braincurses/files/braincurses-0.5b-as-needed.patch b/games-puzzle/braincurses/files/braincurses-0.5b-as-needed.patch
index d1f36152403..2101602c637 100644
--- a/games-puzzle/braincurses/files/braincurses-0.5b-as-needed.patch
+++ b/games-puzzle/braincurses/files/braincurses-0.5b-as-needed.patch
@@ -1,5 +1,5 @@
---- Makefile.old 2009-02-09 16:04:47.000000000 +0100
-+++ Makefile 2009-02-09 16:14:41.000000000 +0100
+--- a/Makefile.old 2009-02-09 16:04:47.000000000 +0100
++++ b/Makefile 2009-02-09 16:14:41.000000000 +0100
@@ -1,22 +1,9 @@
# Makefile for braincurses game
# written by Brian Derr
diff --git a/games-puzzle/braincurses/files/braincurses-0.5b-gcc43.patch b/games-puzzle/braincurses/files/braincurses-0.5b-gcc43.patch
index eafa39e4b9b..6fa5509a778 100644
--- a/games-puzzle/braincurses/files/braincurses-0.5b-gcc43.patch
+++ b/games-puzzle/braincurses/files/braincurses-0.5b-gcc43.patch
@@ -1,5 +1,5 @@
---- braincurses.h
-+++ braincurses.h
+--- a/braincurses.h
++++ b/braincurses.h
@@ -12,6 +12,7 @@
#include <cstddef>
#include <cstdlib>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-04-14 21:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-14 21:40 [gentoo-commits] repo/gentoo:master commit in: games-puzzle/braincurses/, games-puzzle/braincurses/files/ Pacho Ramos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox