diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-emulation/gnuboy |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-emulation/gnuboy')
-rw-r--r-- | games-emulation/gnuboy/Manifest | 8 | ||||
-rw-r--r-- | games-emulation/gnuboy/files/gnuboy-1.0.3-exec-stack.patch | 27 | ||||
-rw-r--r-- | games-emulation/gnuboy/files/gnuboy-1.0.3-include.patch | 14 | ||||
-rw-r--r-- | games-emulation/gnuboy/files/gnuboy-1.0.3-linux-headers.patch | 93 | ||||
-rw-r--r-- | games-emulation/gnuboy/gnuboy-1.0.3-r1.ebuild | 57 | ||||
-rw-r--r-- | games-emulation/gnuboy/metadata.xml | 11 |
6 files changed, 210 insertions, 0 deletions
diff --git a/games-emulation/gnuboy/Manifest b/games-emulation/gnuboy/Manifest new file mode 100644 index 000000000000..716a8a32b701 --- /dev/null +++ b/games-emulation/gnuboy/Manifest @@ -0,0 +1,8 @@ +AUX gnuboy-1.0.3-exec-stack.patch 475 SHA256 4c296ec67b0667d6422a961d3bb213c008d2bd33ebb2572aaca2063fbb622cd3 SHA512 801d217cb8dbe4fb6957e6acc31658bbfa90843178a7343cf52d84f1464787da67f6f579f6dcb1ab2c54fef50289d181014f8b179dfcac6c32949ccaeaaca364 WHIRLPOOL a521d00e922bcd380e233eeff67f84d80ecf4511311c00a49483978721b6a1c3b13bea298a36bcc07d98a61c9740c310e26f016e1efae70b04f5658816e29882 +AUX gnuboy-1.0.3-include.patch 350 SHA256 151281d690102f613231a39f8f3702c182af9a2743e958b993be08807f607ef5 SHA512 9815515c39bf0a387b32e0038a050dd7ca51b5b47d539ee39fcb77b1908735890aac9abfd7d1fe03733d7c9359398b1688f401aa2170ac48d0ed6d2d50acf04d WHIRLPOOL b4030664db7db79bf7d8d8988e3c3ff47695f0e265dff2e1986e1550f326ce5860a4634667f6673643ffa56f8f55fa1b7f6794460db9b58851a66d1c687ca33f +AUX gnuboy-1.0.3-linux-headers.patch 1685 SHA256 c9b8d177c31ce4531dcd3c055c5e4ebd3a0ad65dcf515ce439f143239e77407e SHA512 2cf51c37d7d4cfc230a7ec032c62c22c6fb33c6f05b78e38b8bd033cbcde37b45ab8bef68bfa72374fdcf85139c2504c808516648ae435f7f8f26efa9bd2a56e WHIRLPOOL f6f5db0fc5de6220139750e635f886f2a8d674693b7b2d45ec208427c254e61cb5fc09b03a817218d996223340e1482aa27d061cbda451e31c398d193103d1f9 +DIST gnuboy-1.0.3.tar.gz 187627 SHA256 f0022db824b920054a42690322932cf582e0a9995961124586f054503a0f8072 SHA512 89e8075dac5ec17b375a5739367b46c55130211fb487a052be1cca49a5d86cc1a7f1619b2b2473d744fbe3c51fdb1a11110b15836cc9cc9de588932b91d258e6 WHIRLPOOL e42e4598fef51bbb190a0317767f6faa3dfd49ad701bd44f54b8488fd0d72f2bd6568fceb5baca9079ea18a4f6732333ba3a62d928c11eeb310e305f83d0ea7d +EBUILD gnuboy-1.0.3-r1.ebuild 1073 SHA256 c11e977b2f9eb434e7b555ee464a341d3bcd7f0d108064e6f7cf8377899fe084 SHA512 e85c05a57383b510759de9a6ca11ed27159a8b08364de8e1df327f82633bb7554ea26f7c960901ed08beda0fe23b32c7beb8a2b0b0924f873d3d33c63b776c7d WHIRLPOOL d06653366811fb9948fc3115765ddbbb3aea8fc360d66f8061efacbbe29b6295a7c387d10e8b0b6bd03e7eae9e3a5b697f2232bfeebab6fbce2475843626b7e1 +MISC ChangeLog 3543 SHA256 cdf92fc53874053db20d860e06919813f1d84c37e8be6f4cd6b643bdcfb178d5 SHA512 6b9ac9eae6f3f388722da165b550fc83e944b7d0133d90928f89a790b7c6c8a77adf28d3d164971a6960de743377fa484563be467f891db90ac3b2df3f49a9d2 WHIRLPOOL a7845c23f0cf23c169d66df31a73b407158f576c9065f2250a78943c5e4842ab2cccc05f33a90ed0937f571446a1a166798692d21b4025422a988d19c1f51837 +MISC ChangeLog-2015 2016 SHA256 b09c5644c4f12eea515a04fddb907459b8c22b704325fb1534af6af0e7f3c53c SHA512 32034c105efbdaa00969314116eee6200481d997b5861e4baa177631affbd7369cc15f226b826896fae2a5793d32c9030a1e49a358dc4bb7fa83dd322ac6a9ba WHIRLPOOL 2cb6c0faf88e30de61f852b002e0215bdedd87ea4528e70c8d5c8dfcc19c4d22c0275b017c00f4e8d2c421ad75f9021f311156ae29c4757e05aed6a533aaead8 +MISC metadata.xml 329 SHA256 f9dff2d3bf5536c41989e490f3033a67878badb6425b9b103ff251b19655a63b SHA512 79c14f0442b618a82acc9b067360ef978d009fb61a44d869d0c6b4df375b005bc721ce8b90ac80be2bdb8e40e95e111b941a5ac9f006470eefc3b41459b52463 WHIRLPOOL d12bd231c524349aedba36a3d1c55741ccf60f9bd9fdcfe9c641adf5e39f72f76ec2d1a862abd43a32169bec4be970945ec7cfa2952d2b6016dd7afac976a9ee diff --git a/games-emulation/gnuboy/files/gnuboy-1.0.3-exec-stack.patch b/games-emulation/gnuboy/files/gnuboy-1.0.3-exec-stack.patch new file mode 100644 index 000000000000..b8059f915f6f --- /dev/null +++ b/games-emulation/gnuboy/files/gnuboy-1.0.3-exec-stack.patch @@ -0,0 +1,27 @@ +--- asm/i386/cpu.s ++++ asm/i386/cpu.s +@@ -2428,3 +2428,6 @@ + + + ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif +--- asm/i386/lcd.s ++++ asm/i386/lcd.s +@@ -288,3 +288,6 @@ + + + ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif +--- asm/i386/refresh.s ++++ asm/i386/refresh.s +@@ -283,3 +283,6 @@ + + + ++#if defined(__linux__) && defined(__ELF__) ++.section .note.GNU-stack,"",%progbits ++#endif diff --git a/games-emulation/gnuboy/files/gnuboy-1.0.3-include.patch b/games-emulation/gnuboy/files/gnuboy-1.0.3-include.patch new file mode 100644 index 000000000000..15573000511e --- /dev/null +++ b/games-emulation/gnuboy/files/gnuboy-1.0.3-include.patch @@ -0,0 +1,14 @@ +diff -ru gnuboy-1.0.3.orig/defs.h gnuboy-1.0.3/defs.h +--- gnuboy-1.0.3.orig/defs.h 2001-01-23 07:04:22.000000000 -0500 ++++ gnuboy-1.0.3/defs.h 2014-07-04 03:56:46.685149736 -0400 +@@ -4,6 +4,10 @@ + #ifndef __DEFS_H__ + #define __DEFS_H__ + ++#include <stdlib.h> ++#include <string.h> ++#include <unistd.h> ++#include <ctype.h> + + + #ifdef IS_LITTLE_ENDIAN diff --git a/games-emulation/gnuboy/files/gnuboy-1.0.3-linux-headers.patch b/games-emulation/gnuboy/files/gnuboy-1.0.3-linux-headers.patch new file mode 100644 index 000000000000..b0dd24a8e50e --- /dev/null +++ b/games-emulation/gnuboy/files/gnuboy-1.0.3-linux-headers.patch @@ -0,0 +1,93 @@ +# -ansi breaks <linux/joystick.h> + +--- configure.in ++++ configure.in +@@ -133,7 +133,7 @@ + if test "$enable_warnings" = yes ; then + case "$CC" in *gcc*) + AC_MSG_RESULT(enabling selected compiler warnings) +-CFLAGS="$CFLAGS -ansi -pedantic -Wall -Wno-implicit -Wno-long-long" ;; ++CFLAGS="$CFLAGS -Wall -Wno-implicit -Wno-long-long" ;; + *) + AC_MSG_RESULT(disabling warnings for non-gcc compiler) ;; + esac +--- loader.c ++++ loader.c +@@ -11,7 +11,6 @@ + #include <stdlib.h> + #include <string.h> + +-char *strdup(); + + static int mbc_table[256] = + { +--- main.c ++++ main.c +@@ -8,7 +8,6 @@ + #include <stdlib.h> + #include <string.h> + +-char *strdup(); + + #include <stdarg.h> + #include <signal.h> +--- path.c ++++ path.c +@@ -5,7 +5,6 @@ + #include <stdlib.h> + #include <string.h> + +-char *strdup(); + + #ifdef ALT_PATH_SEP + #define SEP ';' +--- rckeys.c ++++ rckeys.c +@@ -4,7 +4,6 @@ + #include <stdlib.h> + #include <string.h> + +-char *strdup(); + + #include "defs.h" + #include "rc.h" +--- rcvars.c ++++ rcvars.c +@@ -5,7 +5,6 @@ + #include <stdlib.h> + #include <string.h> + +-char *strdup(); + + #include "defs.h" + #include "rc.h" +--- sys/linux/fbdev.c ++++ sys/linux/fbdev.c +@@ -10,7 +10,6 @@ + + #include <stdlib.h> + #include <string.h> +-char *strdup(); + #include <unistd.h> + #include <sys/mman.h> + #include <linux/fb.h> +--- sys/linux/joy.c ++++ sys/linux/joy.c +@@ -2,7 +2,6 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +-char *strdup(); + #include <linux/joystick.h> + #include <sys/types.h> + #include <sys/stat.h> +--- sys/oss/oss.c ++++ sys/oss/oss.c +@@ -2,7 +2,6 @@ + + #include <stdlib.h> + #include <string.h> +-char *strdup(); + #include <sys/types.h> + #include <sys/stat.h> + #include <fcntl.h> diff --git a/games-emulation/gnuboy/gnuboy-1.0.3-r1.ebuild b/games-emulation/gnuboy/gnuboy-1.0.3-r1.ebuild new file mode 100644 index 000000000000..bf9075ce8b7d --- /dev/null +++ b/games-emulation/gnuboy/gnuboy-1.0.3-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils games + +DESCRIPTION="Gameboy emulator with multiple renderers" +HOMEPAGE="https://sourceforge.net/projects/gnuboy/" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="X sdl" + +RDEPEND="sdl? ( media-libs/libsdl ) + !X? ( media-libs/libsdl ) + X? ( x11-libs/libXext )" +DEPEND="${RDEPEND} + X? ( x11-proto/xextproto + x11-proto/xproto )" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-exec-stack.patch \ + "${FILESDIR}"/${P}-linux-headers.patch \ + "${FILESDIR}"/${P}-include.patch + + eautoreconf +} + +src_configure() { + local myconf + + if ! use X ; then + myconf="--with-sdl" + fi + + egamesconf \ + $(use_with X x) \ + $(use_with sdl) \ + $(use_enable x86 asm) \ + ${myconf} \ + --disable-arch \ + --disable-optimize +} + +src_install() { + for f in sdlgnuboy xgnuboy + do + if [[ -f ${f} ]] ; then + dogamesbin ${f} + fi + done + dodoc README docs/{CHANGES,CONFIG,CREDITS,FAQ,HACKING,WHATSNEW} + prepgamesdirs +} diff --git a/games-emulation/gnuboy/metadata.xml b/games-emulation/gnuboy/metadata.xml new file mode 100644 index 000000000000..3e42cc8d1267 --- /dev/null +++ b/games-emulation/gnuboy/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">gnuboy</remote-id> + </upstream> +</pkgmetadata> |