From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- games-emulation/gnuboy/Manifest | 1 + .../gnuboy/files/gnuboy-1.0.3-exec-stack.patch | 27 +++++++ .../gnuboy/files/gnuboy-1.0.3-include.patch | 14 ++++ .../gnuboy/files/gnuboy-1.0.3-linux-headers.patch | 93 ++++++++++++++++++++++ games-emulation/gnuboy/gnuboy-1.0.3-r1.ebuild | 58 ++++++++++++++ games-emulation/gnuboy/metadata.xml | 5 ++ 6 files changed, 198 insertions(+) create mode 100644 games-emulation/gnuboy/Manifest create mode 100644 games-emulation/gnuboy/files/gnuboy-1.0.3-exec-stack.patch create mode 100644 games-emulation/gnuboy/files/gnuboy-1.0.3-include.patch create mode 100644 games-emulation/gnuboy/files/gnuboy-1.0.3-linux-headers.patch create mode 100644 games-emulation/gnuboy/gnuboy-1.0.3-r1.ebuild create mode 100644 games-emulation/gnuboy/metadata.xml (limited to 'games-emulation/gnuboy') diff --git a/games-emulation/gnuboy/Manifest b/games-emulation/gnuboy/Manifest new file mode 100644 index 000000000000..30456abbe4e1 --- /dev/null +++ b/games-emulation/gnuboy/Manifest @@ -0,0 +1 @@ +DIST gnuboy-1.0.3.tar.gz 187627 SHA256 f0022db824b920054a42690322932cf582e0a9995961124586f054503a0f8072 SHA512 89e8075dac5ec17b375a5739367b46c55130211fb487a052be1cca49a5d86cc1a7f1619b2b2473d744fbe3c51fdb1a11110b15836cc9cc9de588932b91d258e6 WHIRLPOOL e42e4598fef51bbb190a0317767f6faa3dfd49ad701bd44f54b8488fd0d72f2bd6568fceb5baca9079ea18a4f6732333ba3a62d928c11eeb310e305f83d0ea7d 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 ++#include ++#include ++#include + + + #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 + +--- 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 + #include + +-char *strdup(); + + static int mbc_table[256] = + { +--- main.c ++++ main.c +@@ -8,7 +8,6 @@ + #include + #include + +-char *strdup(); + + #include + #include +--- path.c ++++ path.c +@@ -5,7 +5,6 @@ + #include + #include + +-char *strdup(); + + #ifdef ALT_PATH_SEP + #define SEP ';' +--- rckeys.c ++++ rckeys.c +@@ -4,7 +4,6 @@ + #include + #include + +-char *strdup(); + + #include "defs.h" + #include "rc.h" +--- rcvars.c ++++ rcvars.c +@@ -5,7 +5,6 @@ + #include + #include + +-char *strdup(); + + #include "defs.h" + #include "rc.h" +--- sys/linux/fbdev.c ++++ sys/linux/fbdev.c +@@ -10,7 +10,6 @@ + + #include + #include +-char *strdup(); + #include + #include + #include +--- sys/linux/joy.c ++++ sys/linux/joy.c +@@ -2,7 +2,6 @@ + #include + #include + #include +-char *strdup(); + #include + #include + #include +--- sys/oss/oss.c ++++ sys/oss/oss.c +@@ -2,7 +2,6 @@ + + #include + #include +-char *strdup(); + #include + #include + #include 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..58834b279a4f --- /dev/null +++ b/games-emulation/gnuboy/gnuboy-1.0.3-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils games + +DESCRIPTION="Gameboy emulator with multiple renderers" +HOMEPAGE="http://code.google.com/p/gnuboy/" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc 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..d3c2cc926f0b --- /dev/null +++ b/games-emulation/gnuboy/metadata.xml @@ -0,0 +1,5 @@ + + + +games + -- cgit v1.2.3-65-gdbad