summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2016-01-21 13:33:38 -0500
committerMichael Sterrett <mr_bones_@gentoo.org>2016-01-21 13:35:45 -0500
commitcdb23c75c666d2a8e1de086373cd18b5248727eb (patch)
tree25583d6ea1d603e6fbe525646352d7f6de3bb6a5 /games-arcade
parentprofiles/prefix/make.defaults: add python3_5 to PYTHON_TARGETS (diff)
downloadgentoo-cdb23c75c666d2a8e1de086373cd18b5248727eb.tar.gz
gentoo-cdb23c75c666d2a8e1de086373cd18b5248727eb.tar.bz2
gentoo-cdb23c75c666d2a8e1de086373cd18b5248727eb.zip
games-arcade/ninvaders: fix compile warning and maybe fix bug #554674
Package-Manager: portage-2.2.26
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/ninvaders/files/ninvaders-0.1.1-compile.patch11
-rw-r--r--games-arcade/ninvaders/ninvaders-0.1.1.ebuild8
2 files changed, 17 insertions, 2 deletions
diff --git a/games-arcade/ninvaders/files/ninvaders-0.1.1-compile.patch b/games-arcade/ninvaders/files/ninvaders-0.1.1-compile.patch
new file mode 100644
index 000000000000..c949d4327083
--- /dev/null
+++ b/games-arcade/ninvaders/files/ninvaders-0.1.1-compile.patch
@@ -0,0 +1,11 @@
+--- aliens.c.orig 2016-01-21 13:21:51.730154342 -0500
++++ aliens.c 2016-01-21 13:22:09.488543075 -0500
+@@ -163,7 +163,7 @@
+ aliens.right=-1;
+ aliens.bottom=-1;
+ shipnum=0;
+- for (k=0;k<11;k++) {
++ for (k=0;k<ALIENS_MAX_NUMBER_X;k++) {
+ lowest_ship[k]=-1;
+ }
+
diff --git a/games-arcade/ninvaders/ninvaders-0.1.1.ebuild b/games-arcade/ninvaders/ninvaders-0.1.1.ebuild
index 2a12d90bf766..205ce4619399 100644
--- a/games-arcade/ninvaders/ninvaders-0.1.1.ebuild
+++ b/games-arcade/ninvaders/ninvaders-0.1.1.ebuild
@@ -3,7 +3,7 @@
# $Id$
EAPI=5
-inherit toolchain-funcs games
+inherit eutils toolchain-funcs games
DESCRIPTION="ASCII space invaders clone"
HOMEPAGE="http://ninvaders.sourceforge.net/"
@@ -15,7 +15,11 @@ KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
IUSE=""
DEPEND="sys-libs/ncurses:0"
-RDEPEND="${DEPEND}"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-compile.patch
+}
src_compile() {
emake \