Install this version:
emerge -a =games-action/heroes-0.21
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =games-action/heroes-0.21
Or alternatively:
emerge --autounmask-write -a =games-action/heroes-0.21
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools desktop
DESCRIPTION="Heroes Enjoy Riding Over Empty Slabs: similar to Tron and Nibbles"
HOMEPAGE="https://heroes.sourceforge.net/"
SRC_URI="
https://downloads.sourceforge.net/${PN}/${P}.tar.bz2
https://downloads.sourceforge.net/${PN}/${PN}-data-1.5.tar.bz2
https://downloads.sourceforge.net/${PN}/${PN}-sound-tracks-1.0.tar.bz2
https://downloads.sourceforge.net/${PN}/${PN}-sound-effects-1.0.tar.bz2
https://distfiles.gentoo.org/pub/dev/ionen@gentoo.org/${PN}.png"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ggi nls +sdl"
REQUIRED_USE="^^ ( ggi sdl )"
RESTRICT="test"
RDEPEND="
ggi? (
media-libs/libggi
media-libs/libgii
media-libs/libmikmod
)
nls? ( virtual/libintl )
sdl? (
media-libs/libsdl[joystick,sound,video]
media-libs/sdl-mixer[mod]
)"
DEPEND="${RDEPEND}"
BDEPEND="nls? ( sys-devel/gettext )"
PATCHES=(
"${FILESDIR}"/${P}-autotools.patch
"${FILESDIR}"/${P}-gcc4.patch
"${FILESDIR}"/${P}-cvs-segfault-fix.patch
"${FILESDIR}"/${P}-compilation.patch
"${FILESDIR}"/${P}-gcc10.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
local econfargs=(
$(use_enable nls)
$(use_with ggi mikmod)
$(use_with ggi)
$(use_with sdl sdl-mixer)
$(use_with sdl)
--disable-heroes-debug
--disable-optimizations
)
local pkg
for pkg in ${A% *}; do
cd "${WORKDIR}"/${pkg%.tar.bz2} || die
econf "${econfargs[@]}"
done
}
src_install() {
local pkg
for pkg in ${A% *}; do
emake -C "${WORKDIR}"/${pkg%.tar.bz2} DESTDIR="${D}" install
done
einstalldocs
doicon "${DISTDIR}"/${PN}.png
make_desktop_entry ${PN} Heroes
}
Manage flags for this package:
euse -i <flag> -p games-action/heroes |
euse -E <flag> -p games-action/heroes |
euse -D <flag> -p games-action/heroes
ggi? ( media-libs/libggi media-libs/libgii media-libs/libmikmod ) nls? ( virtual/libintl ) sdl? ( media-libs/libsdl[joystick,sound,video] media-libs/sdl-mixer[mod] )
ggi? ( media-libs/libggi media-libs/libgii media-libs/libmikmod ) nls? ( virtual/libintl ) sdl? ( media-libs/libsdl[joystick,sound,video] media-libs/sdl-mixer[mod] )
nls? ( sys-devel/gettext )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | heroes-0.21.tar.bz2 | 709079 bytes | https://downloads.sourceforge.net/heroes/heroes-0.21.tar.bz2 |
| DIST | heroes-data-1.5.tar.bz2 | 391970 bytes | https://downloads.sourceforge.net/heroes/heroes-data-1.5.tar.bz2 |
| DIST | heroes-sound-effects-1.0.tar.bz2 | 389883 bytes | https://downloads.sourceforge.net/heroes/heroes-sound-effects-1.0.tar.bz2 |
| DIST | heroes-sound-tracks-1.0.tar.bz2 | 1245613 bytes | https://downloads.sourceforge.net/heroes/heroes-sound-tracks-1.0.tar.bz2 |
| DIST | heroes.png | 5131 bytes | https://distfiles.gentoo.org/pub/dev/ionen@gentoo.org/heroes.png |