summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-04-23 19:49:28 +0200
committerPacho Ramos <pacho@gentoo.org>2018-04-23 21:16:50 +0200
commit4a050985978d50294711b04561d802d1d8d534b2 (patch)
treeb854f9c6bf85b5b88130eb1d5f30f924a1cfd23e /games-arcade/ninvaders
parentgames-arcade/netris: Drop old (diff)
downloadgentoo-4a050985978d50294711b04561d802d1d8d534b2.tar.gz
gentoo-4a050985978d50294711b04561d802d1d8d534b2.tar.bz2
gentoo-4a050985978d50294711b04561d802d1d8d534b2.zip
games-arcade/ninvaders: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-arcade/ninvaders')
-rw-r--r--games-arcade/ninvaders/files/ninvaders-0.1.1-compile.patch4
-rw-r--r--games-arcade/ninvaders/ninvaders-0.1.1-r1.ebuild30
2 files changed, 32 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
index c949d4327083..768ffccc6530 100644
--- a/games-arcade/ninvaders/files/ninvaders-0.1.1-compile.patch
+++ b/games-arcade/ninvaders/files/ninvaders-0.1.1-compile.patch
@@ -1,5 +1,5 @@
---- aliens.c.orig 2016-01-21 13:21:51.730154342 -0500
-+++ aliens.c 2016-01-21 13:22:09.488543075 -0500
+--- a/aliens.c.orig 2016-01-21 13:21:51.730154342 -0500
++++ b/aliens.c 2016-01-21 13:22:09.488543075 -0500
@@ -163,7 +163,7 @@
aliens.right=-1;
aliens.bottom=-1;
diff --git a/games-arcade/ninvaders/ninvaders-0.1.1-r1.ebuild b/games-arcade/ninvaders/ninvaders-0.1.1-r1.ebuild
new file mode 100644
index 000000000000..84d3b0553b62
--- /dev/null
+++ b/games-arcade/ninvaders/ninvaders-0.1.1-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs
+
+DESCRIPTION="ASCII space invaders clone"
+HOMEPAGE="http://ninvaders.sourceforge.net/"
+SRC_URI="mirror://sourceforge/ninvaders/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="sys-libs/ncurses:0="
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-compile.patch )
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ newbin nInvaders ninvaders
+ einstalldocs
+}