games-action/nighthawk: remove deprecated games eclass
authorAustin English <wizardedit@gentoo.org>
Wed, 27 Jul 2016 16:53:27 +0000 (11:53 -0500)
committerAustin English <wizardedit@gentoo.org>
Wed, 27 Jul 2016 16:55:33 +0000 (11:55 -0500)
Also update to EAPI 6

Gentoo-Bug: https://bugs.gentoo.org/574082

Package-Manager: portage-2.3.0

games-action/nighthawk/files/nighthawk-2.2-gcc42.patch
games-action/nighthawk/nighthawk-2.2-r1.ebuild [new file with mode: 0644]

index 619acd37f71f644d7eb9d7adc0f2d020b5fb4ad2..a9ad8c98484a12522baa08e74d6a60de9076debd 100644 (file)
@@ -1,5 +1,5 @@
---- src_sound/dsp_mixxer.c
-+++ src_sound/dsp_mixxer.c
+--- a/src_sound/dsp_mixxer.c
++++ b/src_sound/dsp_mixxer.c
 @@ -302,10 +302,8 @@
    for(sample_no = 0;sample_no < mix_buffer_size;sample_no++)
    {
diff --git a/games-action/nighthawk/nighthawk-2.2-r1.ebuild b/games-action/nighthawk/nighthawk-2.2-r1.ebuild
new file mode 100644 (file)
index 0000000..40f9521
--- /dev/null
@@ -0,0 +1,29 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="A tribute to Paradroid by Andrew Braybrook"
+HOMEPAGE="http://night-hawk.sourceforge.net/nighthawk.html"
+SRC_URI="ftp://metalab.unc.edu/pub/Linux/games/arcade/${P}-1.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="x11-libs/libXpm"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/nighthawk.patch
+       "${FILESDIR}"/${P}-gcc42.patch
+)
+
+src_prepare() {
+       default
+
+       sed -i -e 's:AC_FD_MSG:6:g' configure || die #218936
+       sed -i -e '/LDFLAGS = /d' src/Makefile.in || die
+}