diff options
Diffstat (limited to 'games-arcade')
-rw-r--r-- | games-arcade/ninvaders/files/ninvaders-0.1.1-compile.patch | 11 | ||||
-rw-r--r-- | games-arcade/ninvaders/ninvaders-0.1.1.ebuild | 8 |
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 \ |