summaryrefslogtreecommitdiff
path: root/games-action/nighthawk
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-action/nighthawk
reinit the tree, so we can have metadata
Diffstat (limited to 'games-action/nighthawk')
-rw-r--r--games-action/nighthawk/Manifest8
-rw-r--r--games-action/nighthawk/files/nighthawk-2.2-gcc42.patch24
-rw-r--r--games-action/nighthawk/files/nighthawk.patch46
-rw-r--r--games-action/nighthawk/metadata.xml11
-rw-r--r--games-action/nighthawk/nighthawk-2.2-r1.ebuild28
-rw-r--r--games-action/nighthawk/nighthawk-2.2.ebuild30
6 files changed, 147 insertions, 0 deletions
diff --git a/games-action/nighthawk/Manifest b/games-action/nighthawk/Manifest
new file mode 100644
index 000000000000..e0d19eb0923a
--- /dev/null
+++ b/games-action/nighthawk/Manifest
@@ -0,0 +1,8 @@
+AUX nighthawk-2.2-gcc42.patch 670 SHA256 d52062d0dcd962447eb773975d2de23fbfc9a8136f339d32a577590658f426d2 SHA512 f23188baa922881b36c45900e34bcaaa04b9c9752c52c13d5c03454e46853aae6c5f50375e87785b4d9866a0156b697b9dbfac0eb4f54aaa92fec5c5185686b1 WHIRLPOOL 1b6d73c37ba0636a865cde3c0beefbfce2c7740edc982630e29b3f7793111f606b82826c4979d206d7f0cac060eb67a9e0e24d72730b54239badd94ed4f94b51
+AUX nighthawk.patch 1235 SHA256 f19d57d8cbf53300b46c3dc853b2d5af039ab403fb16c39466307327c0fd179d SHA512 6362d1188c857f5b1236b5ca9e04e00d8eb85eb1a7e2efaa588c1b8cdcfd11f61a914e0db8f5bffd377c495b1464e7060c79d9205abbe84bfa24112c4be4e237 WHIRLPOOL 6c8ae24c018748ed9408877cb380967be712e7020576783257a933d67d2beb2e024ecce62cc9dd789a68f63a25073a9b75035ed59acffb154ef6a82f567dd01d
+DIST nighthawk-2.2-1.tar.gz 1079706 SHA256 739f154f7c2118879d9d7f5dc0c7d98e1564dc9ae79c864be5e3c04688820bf3 SHA512 dca5d0c01ed651dee0c29b939c832ae343ca70ff0eb7779e7c13007881cf75d96cadafbbac6b431cd473ce9b9e1347dd4ba90502627059439b5a9a557cbc3fcf WHIRLPOOL 2ffeb8de46bb77aa23bec66be4413ffd46c22a793662294316dd5fee2d309d76cc65eb68a4ec06f629dfe9e0accf9eb822c3275b932a3f6432ab5fc6e6dd944f
+EBUILD nighthawk-2.2-r1.ebuild 614 SHA256 1b38cb24012e4df0243e1fe6027824d9beca49173f6e2c476c594610b91c409b SHA512 f83933b6464b23625ec8395a1b2c2fc45b2229addc2a88c8fe8c9630e45b4ec85ef0cd59a0bc242e2966158e091e4a9e7ca8fc17505d2a8ed8eab3694b3245ec WHIRLPOOL 761eeec44c521d313675150c114b2047ee41feb4c3330ccfdb9860e6b777c140e4b165d675299cb505f21e4e55a4beb25302e2f77a9205531fdf367a7dee877b
+EBUILD nighthawk-2.2.ebuild 668 SHA256 8f152825b51fbaf424a5be54710e0d881ce8a16332689489e33beba388f711d9 SHA512 6b732719ccfeb97fffbf86f932a6cf83b6a8e7ec0ffcbb9ea5dfd88af53bb1b67ecdc219a5a1814068115594c8e6545ed963bf0e43eafaba763c0fb48f26f73c WHIRLPOOL 6b463f8f2fc0bf128d1801fef63d30efb6108476d74370681341e1ced43123ded8f4ecbf1ac6b4f1dd21cbac5ea1e90c27dff410c45d2912b0ed7b8e2752d5c7
+MISC ChangeLog 3448 SHA256 90aa3718eac897c807083d2643d4d6ecf27a26f6381cfe5e7b44dc910fff6a59 SHA512 fa06234cc36c0892abb73c6f1d8a05922289853940c3ce96a94f188d076be1680377ad3a847146222869c0a1063191146e5eaf78202f9f03b597a563a0029f6d WHIRLPOOL 53fedfb0c3d9e0a5d42246839ea4443c91325d106327f3447a814395ba8b0610c382bb5fc796b65b75ed510e4feb2759f9913fa5505db1449f7cb0e7b7f7c11e
+MISC ChangeLog-2015 1977 SHA256 81936b46ff778a261db22d37b18f8574b4cdad291b2266421340e8485c47eb36 SHA512 e1b7da68256a8bad89a0c675ddb7602754e52033bd89038de2ea153c9ab3187f2cda73511818be0f3193b418ffd3f722b274071af1d9bab4ef2813b8c12e0307 WHIRLPOOL 01512784758af19c899fd75a23895bae06be7c0d00b20572ac84d94dd8688340974e9ef39f3e01dcbb49c2328699e1cdffbb8e9e5b1ac152043a8845e7fa2cd1
+MISC metadata.xml 333 SHA256 ccd3988b3c4bca00d43240fc0df3403eb761e3d3edc391fdb31977bbc462ad53 SHA512 336358437939bf16817128792faf057aaf920f5530ca57ba425b9ac67ed0599ebfb2b1a21faecf1836f89be85a9a0b2751287ba625b4a4606c669c2192116ad4 WHIRLPOOL a365dbc6f7348cd66dbe548cc4cecb5ba64892aa92a79f199e621b6b69cb34e526de89189fdef2ff60ce77513fbfc435c1196bb5eef381c5c8ca43f6543a3187
diff --git a/games-action/nighthawk/files/nighthawk-2.2-gcc42.patch b/games-action/nighthawk/files/nighthawk-2.2-gcc42.patch
new file mode 100644
index 000000000000..a9ad8c98484a
--- /dev/null
+++ b/games-action/nighthawk/files/nighthawk-2.2-gcc42.patch
@@ -0,0 +1,24 @@
+--- 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++)
+ {
+ if(chmix[chan_no].funkctrl & 0x2)
+-#pragma pack(1)
+ sam = *((sDB *)chmix[chan_no].sample_addr +
+ (unsigned long)chmix[chan_no].sample_ptr);
+-#pragma pack()
+ else
+ sam = 0;
+
+@@ -364,10 +362,8 @@
+ for(sample_no = 0;sample_no < mix_buffer_size;sample_no++)
+ {
+ if(chmix[chan_no].funkctrl & 0x2)
+-#pragma pack(1)
+ sam = *((sDW *)chmix[chan_no].sample_addr +
+ (unsigned long)chmix[chan_no].sample_ptr);
+-#pragma pack()
+ else
+ sam = 0;
+ #ifdef DIGITAL_ECHOING
diff --git a/games-action/nighthawk/files/nighthawk.patch b/games-action/nighthawk/files/nighthawk.patch
new file mode 100644
index 000000000000..accef759e682
--- /dev/null
+++ b/games-action/nighthawk/files/nighthawk.patch
@@ -0,0 +1,46 @@
+diff -c -3 -r nighthawk-2.2/src/nighthawk.cc nighthawk.orig/src/nighthawk.cc
+*** nighthawk-2.2/src/nighthawk.cc Sun May 23 01:10:59 1999
+--- nighthawk.orig/src/nighthawk.cc Fri Jul 12 04:18:38 2002
+***************
+*** 20,25 ****
+--- 20,26 ----
+ #include <string.h>
+ #include <signal.h>
+ #include <pwd.h>
++ #include <time.h>
+ #include <sys/types.h>
+ #include <sys/file.h>
+ #include <sys/stat.h>
+diff -c -3 -r nighthawk-2.2/src_sound/Make.common nighthawk.orig/src_sound/Make.common
+*** nighthawk-2.2/src_sound/Make.common Sat May 1 18:04:08 1999
+--- nighthawk.orig/src_sound/Make.common Fri Jul 12 04:23:51 2002
+***************
+*** 10,16 ****
+ endif
+ endif
+
+! HOST_SAFE = 0
+
+ ifeq ($(HOSTTYPE),i386)
+ HOST_SAFE = 1
+--- 10,16 ----
+ endif
+ endif
+
+! HOST_SAFE = 1
+
+ ifeq ($(HOSTTYPE),i386)
+ HOST_SAFE = 1
+*** nighthawk-2.2/src/object.cc Mon Sep 30 21:54:56 2002
+--- nighthawk-orig/src/object.cc Mon Sep 30 21:55:05 2002
+***************
+*** 32,37 ****
+--- 32,39 ----
+ #include "tdroid_8xx.h"
+ #include "tdroid_9xx.h"
+
++ #include <string.h>
++
+ /***************************************************************************
+ *
+ ***************************************************************************/
diff --git a/games-action/nighthawk/metadata.xml b/games-action/nighthawk/metadata.xml
new file mode 100644
index 000000000000..e90f5a7f5e60
--- /dev/null
+++ b/games-action/nighthawk/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">night-hawk</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/nighthawk/nighthawk-2.2-r1.ebuild b/games-action/nighthawk/nighthawk-2.2-r1.ebuild
new file mode 100644
index 000000000000..bba6757c9e18
--- /dev/null
+++ b/games-action/nighthawk/nighthawk-2.2-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 ~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
+}
diff --git a/games-action/nighthawk/nighthawk-2.2.ebuild b/games-action/nighthawk/nighthawk-2.2.ebuild
new file mode 100644
index 000000000000..718ad4382d1c
--- /dev/null
+++ b/games-action/nighthawk/nighthawk-2.2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+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 x86"
+IUSE=""
+
+DEPEND="x11-libs/libXpm"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/nighthawk.patch \
+ "${FILESDIR}"/${P}-gcc42.patch
+ sed -i -e 's:AC_FD_MSG:6:g' configure || die #218936
+ sed -i -e '/LDFLAGS = /d' src/Makefile.in || die
+}
+
+src_install () {
+ default
+ prepgamesdirs
+}