Install this version:
emerge -a =games-emulation/gngb-20060309-r2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =games-emulation/gngb-20060309-r2
Or alternatively:
emerge --autounmask-write -a =games-emulation/gngb-20060309-r2
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools flag-o-matic
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="~amd64 ~x86"
IUSE="opengl"
RDEPEND="
app-arch/bzip2:=
media-libs/libsdl[sound,joystick,video]
virtual/zlib:=
opengl? ( media-libs/libglvnd[X] )"
DEPEND="${RDEPEND}"
PATCHES=(
# From Debian
"${FILESDIR}"/${P}-amd64.patch
"${FILESDIR}"/${P}-gcc34.patch
"${FILESDIR}"/${P}-gcc5.patch
"${FILESDIR}"/${P}-gcc7.patch
"${FILESDIR}"/${P}-inline.patch
"${FILESDIR}"/${P}-joystick.patch
"${FILESDIR}"/${P}-qwerty.patch
# Ours
"${FILESDIR}"/${P}-gcc10.patch
"${FILESDIR}"/${P}-gentoo-zlib.patch
"${FILESDIR}"/${P}-clang16.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
append-cflags -std=gnu89 # old codebase, incompatible with c2x
econf $(use_enable opengl gl)
}
Manage flags for this package:
euse -i <flag> -p games-emulation/gngb |
euse -E <flag> -p games-emulation/gngb |
euse -D <flag> -p games-emulation/gngb
app-arch/bzip2:= media-libs/libsdl[sound,joystick,video] virtual/zlib:= opengl? ( media-libs/libglvnd[X] )
app-arch/bzip2:= media-libs/libsdl[sound,joystick,video] virtual/zlib:= opengl? ( media-libs/libglvnd[X] )