+++ /dev/null
---- src/serial.c.old 2010-10-28 14:40:23.000000000 +0200
-+++ src/serial.c 2010-10-28 14:41:07.000000000 +0200
-@@ -302,11 +302,11 @@
- /* Gbserial_read: Read a byte on the serial
- This is a block function */
- Uint8 gbserial_read(void) {
-- Uint8 b;
-+ Uint8 b[2];
-
- gbserial.ready2read=0;
-- if ((read(dest_socket,&b,2))<=0) return 0xFF;
-- return b;
-+ if ((read(dest_socket,b,2))<=0) return 0xFF;
-+ return b[0];
- }
-
- /* Gbserial_write: Write a byte on the serial
+++ /dev/null
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit autotools eutils games
-
-DESCRIPTION="Gameboy / Gameboy Color emulator"
-HOMEPAGE="http://m.peponas.free.fr/gngb/"
-SRC_URI="http://m.peponas.free.fr/gngb/download/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~amd64-linux ~x86-linux ~ppc-macos"
-IUSE="opengl"
-
-DEPEND="media-libs/libsdl[sound,joystick,video]
- sys-libs/zlib
- app-arch/bzip2
- opengl? ( virtual/opengl )"
-RDEPEND=${DEPEND}
-
-src_prepare() {
- epatch "${FILESDIR}"/${P}-ovflfix.patch
- sed -i -e '70i#define OF(x) x' src/unzip.h || die
- eautoreconf
-}
-
-src_configure() {
- egamesconf $(use_enable opengl gl)
-}
-
-src_install() {
- default
- prepgamesdirs
-}